Skip to content
Snippets Groups Projects
Commit f2fb2c6d authored by Hans Fangohr's avatar Hans Fangohr
Browse files

Merge branch 'add-pre-commit-hook-to-ci' into 'main'

switch the ci to use precommit

See merge request !79
parents b322f8f3 207f6d95
No related branches found
No related tags found
1 merge request!79switch the ci to use precommit
Pipeline #373395 passed
......@@ -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:
......
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