File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,14 @@ repos:
14
14
- id : trailing-whitespace
15
15
16
16
- repo : https://github.com/astral-sh/ruff-pre-commit
17
- rev : v0.4.10
17
+ rev : v0.5.0
18
18
hooks :
19
19
- id : ruff
20
20
args : ["--fix", "--show-fixes"]
21
21
- id : ruff-format
22
22
23
23
- repo : https://github.com/pre-commit/mirrors-mypy
24
- rev : v1.10.0
24
+ rev : v1.10.1
25
25
hooks :
26
26
- id : mypy
27
27
name : mypy 3.8 on cibuildwheel/
Original file line number Diff line number Diff line change @@ -39,10 +39,8 @@ def is_main(parent: ast.AST | None) -> bool:
39
39
if len (mains ) != 1 :
40
40
return False
41
41
consts = {x for x in values if isinstance (x , ast .Name ) and x .id == "__name__" }
42
- if len (consts ) != 1 :
43
- return False
44
42
45
- return True
43
+ return len ( consts ) == 1
46
44
47
45
48
46
class Analyzer (ast .NodeVisitor ):
You can’t perform that action at this time.
0 commit comments