File tree 4 files changed +8
-8
lines changed
4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 16
16
def main ():
17
17
invalid_filenames = [
18
18
filename for filename
19
- in listdir (NEWSFRAGMENTS_FIR )
19
+ in listdir (NEWSFRAGMENTS_FIR ) # noqa: PTH208 # Easier as strings
20
20
if not (NEWS_PATTERN .fullmatch (filename ) or filename .endswith (".gitignore" ))
21
21
]
22
22
Original file line number Diff line number Diff line change 1
1
repos :
2
2
# Workaround for https://github.com/adamchainz/pre-commit-dprint/issues/4
3
3
- repo : https://github.com/pre-commit/pre-commit-hooks
4
- rev : v4.6 .0
4
+ rev : v5.0 .0
5
5
hooks :
6
6
- id : trailing-whitespace
7
7
args : [--markdown-linebreak-ext=md]
30
30
additional_dependencies : ["dprint@~0.46.0"]
31
31
pass_filenames : false # https://github.com/adamchainz/pre-commit-dprint/issues/3#issuecomment-1483410008
32
32
- repo : https://github.com/astral-sh/ruff-pre-commit
33
- rev : " v0.6.2 " # Must match requirements-dev.txt
33
+ rev : " v0.8.1 " # Must match requirements-dev.txt
34
34
hooks :
35
35
- id : ruff
36
36
args : [--fix]
43
43
hooks :
44
44
- id : add-trailing-comma
45
45
- repo : https://github.com/RobertCraigie/pyright-python
46
- rev : " v1.1.377 " # Must match requirements-dev.txt
46
+ rev : " v1.1.389 " # Must match requirements-dev.txt
47
47
hooks :
48
48
- id : pyright
49
49
args : [--threads]
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class Transition(NamedTuple):
20
20
class ExitJSON (TypedDict ):
21
21
area_id : str
22
22
area_name : str
23
- requires : None | list [list [str ]]
23
+ requires : list [list [str ]] | None
24
24
25
25
26
26
class AreaJSON (TypedDict ):
@@ -45,7 +45,7 @@ class AreaJSON(TypedDict):
45
45
class Exit :
46
46
area_id : int
47
47
area_name : str
48
- requires : None | list [list [str ]]
48
+ requires : list [list [str ]] | None
49
49
50
50
51
51
@dataclass (frozen = True )
Original file line number Diff line number Diff line change @@ -2,5 +2,5 @@ pre-commit
2
2
# Below must match .pre-commit-config.yaml, this is handled by Renovate
3
3
add-trailing-comma == 3.1.0
4
4
autopep8 == 2.3.1
5
- pyright == 1.1.377
6
- ruff == 0.6.2
5
+ pyright == 1.1.389
6
+ ruff == 0.8.1
You can’t perform that action at this time.
0 commit comments