File tree Expand file tree Collapse file tree 2 files changed +44
-24
lines changed Expand file tree Collapse file tree 2 files changed +44
-24
lines changed Original file line number Diff line number Diff line change 1+ name : Python CI
2+ on : [pull_request, push]
3+ jobs :
4+ lint_python :
5+ runs-on : ubuntu-latest
6+ steps :
7+ - name : Checkout code
8+ uses : actions/checkout@v4
9+
10+ - name : Set up Python
11+ uses : actions/setup-python@v5
12+ with :
13+ python-version : " 3.13"
14+ cache : " pip"
15+ cache-dependency-path : " pyproject.toml"
16+
17+ - name : Install check dependencies
18+ run : |
19+ python -m pip install --upgrade pip wheel
20+ pip install bandit ruff mypy safety codespell
21+
22+ - name : Run Ruff (linting)
23+ run : ruff check . --config pyproject.toml
24+
25+ - name : Run Ruff (formatting check)
26+ run : ruff format --check . --config pyproject.toml || true
27+
28+ - name : Run Bandit
29+ run : bandit --recursive --skip B101 . || true
30+
31+ - name : Run Codespell
32+ run : codespell --config pyproject.toml || true
33+
34+ - name : Run Safety
35+ run : safety check || true
36+
37+ - name : Setup Mypy cache
38+ run : mkdir -p .mypy_cache
39+
40+ - name : Install type stubs
41+ run : mypy --config-file pyproject.toml --install-types --non-interactive
42+
43+ - name : Run Mypy
44+ run : mypy --config-file pyproject.toml
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments