Commit 57f488f 1 parent d4feb5a commit 57f488f Copy full SHA for 57f488f
File tree 5 files changed +8
-8
lines changed
5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 5
5
- id : end-of-file-fixer
6
6
- id : trailing-whitespace
7
7
- repo : https://github.com/python-jsonschema/check-jsonschema
8
- rev : 0.29.4
8
+ rev : 0.30.0
9
9
hooks :
10
10
- id : check-github-workflows
11
11
args : ["--verbose"]
@@ -24,13 +24,13 @@ repos:
24
24
hooks :
25
25
- id : pyproject-fmt
26
26
- repo : https://github.com/astral-sh/ruff-pre-commit
27
- rev : " v0.8.0 "
27
+ rev : " v0.8.1 "
28
28
hooks :
29
29
- id : ruff-format
30
30
- id : ruff
31
31
args : ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"]
32
32
- repo : https://github.com/rbubley/mirrors-prettier
33
- rev : " v3.3.3 " # Use the sha / tag you want to point at
33
+ rev : " v3.4.1 " # Use the sha / tag you want to point at
34
34
hooks :
35
35
- id : prettier
36
36
additional_dependencies :
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ def __call__( # noqa: PLR0913
106
106
if passed_param != set_param
107
107
}
108
108
if not non_matching_params :
109
- return cast (BaseFileLock , instance )
109
+ return cast (" BaseFileLock" , instance )
110
110
111
111
# parameters do not match; raise error
112
112
msg = "Singleton lock instances cannot be initialized with differing arguments"
@@ -136,7 +136,7 @@ def __call__( # noqa: PLR0913
136
136
if is_singleton :
137
137
cls ._instances [str (lock_file )] = instance # type: ignore[attr-defined]
138
138
139
- return cast (BaseFileLock , instance )
139
+ return cast (" BaseFileLock" , instance )
140
140
141
141
142
142
class BaseFileLock (contextlib .ContextDecorator , metaclass = FileLockMeta ):
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ def _release(self) -> None:
56
56
# Do not remove the lockfile:
57
57
# https://github.com/tox-dev/py-filelock/issues/31
58
58
# https://stackoverflow.com/questions/17708885/flock-removing-locked-file-without-race-condition
59
- fd = cast (int , self ._context .lock_file_fd )
59
+ fd = cast (" int" , self ._context .lock_file_fd )
60
60
self ._context .lock_file_fd = None
61
61
fcntl .flock (fd , fcntl .LOCK_UN )
62
62
os .close (fd )
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ def _acquire(self) -> None:
40
40
self ._context .lock_file_fd = fd
41
41
42
42
def _release (self ) -> None :
43
- fd = cast (int , self ._context .lock_file_fd )
43
+ fd = cast (" int" , self ._context .lock_file_fd )
44
44
self ._context .lock_file_fd = None
45
45
msvcrt .locking (fd , msvcrt .LK_UNLCK , 1 )
46
46
os .close (fd )
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ def __call__( # type: ignore[override] # noqa: PLR0913
95
95
run_in_executor = run_in_executor ,
96
96
executor = executor ,
97
97
)
98
- return cast (BaseAsyncFileLock , instance )
98
+ return cast (" BaseAsyncFileLock" , instance )
99
99
100
100
101
101
class BaseAsyncFileLock (BaseFileLock , metaclass = AsyncFileLockMeta ):
You can’t perform that action at this time.
0 commit comments