Skip to content
Snippets Groups Projects

switch the ci to use precommit

Merged Ashwin Kumar Karnad requested to merge add-pre-commit-hook-to-ci into main
1 unresolved thread
+ 2
10
@@ -15,7 +15,7 @@ stages:
- ls -l
- pip install -U pip
- pip --version
- pip install pytest black ruff pydocstyle
- pip install .[dev]
- pytest --version
- cat /etc/issue
@@ -75,15 +75,7 @@ style:
image: python:latest
script:
- *prepare_style
- black --version
- ruff --version
- pydocstyle --version
- ruff .
- black --check --diff .
- pydocstyle src/mpsd_software_manager/mpsd_software.py
- pydocstyle tests/test_mpsd_software.py
# we could also use `ruff --select D` for pycodestyle. But the behaviour is not exactly the same.
- src/mpsd_software_manager/mpsd_software.py --version
- pre-commit run --all-files
test-bullseye:
Loading