Skip to content

Commit 4defa4d

Browse files
authored
Update and rename lint_python.yml to Python CI.yml
1 parent 3d6b6d4 commit 4defa4d

File tree

2 files changed

+44
-24
lines changed

2 files changed

+44
-24
lines changed

.github/workflows/Python CI.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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

.github/workflows/lint_python.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)