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 05c3552 commit 1f61111Copy full SHA for 1f61111
.github/workflows/build.yml
@@ -25,6 +25,25 @@ jobs:
25
pip install setuptools==69.5.1 wheel
26
pip install -r requirements.txt
27
28
+ # Static analysis tools
29
+ - name: Install static analysis tools
30
+ if: runner.os == 'Linux'
31
+ run: |
32
+ pip install mypy==1.8.0
33
+ pip install flake8==7.0.0
34
+ pip install black==24.1.1
35
+
36
+ - name: Run static code analysis
37
38
39
+ # Critical checks
40
+ mypy lean/ --ignore-missing-imports --check-untyped-defs
41
+ flake8 lean/ --select=F821 --ignore=ALL
42
43
+ # Warning checks (don't fail the build)
44
+ flake8 lean/ --select=F401 --ignore=ALL --exit-zero
45
+ black --check lean/ --quiet || true
46
47
- name: Run tests
48
run: python -m pytest -s -rs
49
0 commit comments