We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 973946b commit f21ff5eCopy full SHA for f21ff5e
.pre-commit-config.yaml
@@ -14,14 +14,14 @@ repos:
14
- id: trailing-whitespace
15
16
- repo: https://github.com/astral-sh/ruff-pre-commit
17
- rev: v0.4.10
+ rev: v0.5.0
18
hooks:
19
- id: ruff
20
args: ["--fix", "--show-fixes"]
21
- id: ruff-format
22
23
- repo: https://github.com/pre-commit/mirrors-mypy
24
- rev: v1.10.0
+ rev: v1.10.1
25
26
- id: mypy
27
name: mypy 3.8 on cibuildwheel/
cibuildwheel/projectfiles.py
@@ -39,10 +39,8 @@ def is_main(parent: ast.AST | None) -> bool:
39
if len(mains) != 1:
40
return False
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
45
- return True
+ return len(consts) == 1
46
47
48
class Analyzer(ast.NodeVisitor):
0 commit comments