File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 # get all branches
2121 fetch-depth: 0
2222
23+ - name: Lint commit messages
24+ uses: wagoid/commitlint-github-action@v5
25+
2326 - name: Set up Python ${{ env.PYTHON_VERSION }}
2427 uses: actions/setup-python@v5
2528 with:
@@ -32,11 +35,10 @@ jobs:
3235 - name: Install deps
3336 run: |
3437 cd python_coderunner
35- uv pip install --system --group dev --requirements= pyproject.toml
38+ uv pip install --system --group pre-commit --requirements pyproject.toml
3639
3740 - name: Run pre-commit
3841 run: |
39- commitlint --from origin/${{ github.base_ref }} --to HEAD
4042 pre-commit run --all-files
4143
4244 tests:
5860 - name: Install deps
5961 run: |
6062 cd python_coderunner
61- uv pip install --system --group dev --requirements= pyproject.toml
63+ uv pip install --system --group test --requirements pyproject.toml
6264
6365 - name: Run tests
6466 run: |
Original file line number Diff line number Diff line change @@ -18,6 +18,18 @@ dev = [
1818 "pytest-mock>=3.5.1",
1919 "ruff>=0.12.0",
2020]
21+ pre-commit = [
22+ "isort>=4.3.21",
23+ "mypy>=0.910",
24+ "pre-commit>=1.21.0",
25+ "pylint>=2.6.2",
26+ "ruff>=0.12.0",
27+ ]
28+ test = [
29+ "pytest>=6.1.2,<8.0.0",
30+ "pytest-lazy-fixture>=0.6.3",
31+ "pytest-mock>=3.5.1",
32+ ]
2133
2234[tool.pytest.ini_options]
2335pythonpath = ["."] # to run without python -m, otherwise there will be no src in the path
You can’t perform that action at this time.
0 commit comments