Skip to content
Snippets Groups Projects
Commit b30a7eb3 authored by Ashwin Kumar Karnad's avatar Ashwin Kumar Karnad
Browse files

switch the ci to use precommit

parent 490c853b
No related branches found
No related tags found
1 merge request!79switch the ci to use precommit
Pipeline #373173 canceled
...@@ -15,7 +15,7 @@ stages: ...@@ -15,7 +15,7 @@ stages:
- ls -l - ls -l
- pip install -U pip - pip install -U pip
- pip --version - pip --version
- pip install pytest black ruff pydocstyle - pip install pytest black ruff pydocstyle pre-commit rstcheck
- pytest --version - pytest --version
- cat /etc/issue - cat /etc/issue
...@@ -75,15 +75,7 @@ style: ...@@ -75,15 +75,7 @@ style:
image: python:latest image: python:latest
script: script:
- *prepare_style - *prepare_style
- black --version - pre-commit run --all-files
- 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
test-bullseye: test-bullseye:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment