refining ci pipeline

This commit is contained in:
GotthardG 2024-12-16 10:33:12 +01:00
parent c8e488c0db
commit 57763970f9
2 changed files with 14 additions and 2 deletions

View File

@ -30,8 +30,8 @@ lint:
stage: test
script:
- source $VIRTUAL_ENV/bin/activate
- pip install flake8
- flake8 backend/ # Run linting for code quality
- pip install pre-commit # Install pre-commit in the CI environment
- pre-commit run --all-files # Run all pre-commit hooks on the entire codebase
deploy:
stage: deploy

12
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,12 @@
repos:
- repo: https://github.com/psf/black
rev: 23.7.0 # Use the latest stable version
hooks:
- id: black
args: [--check, --diff]
- repo: https://github.com/pycqa/flake8
rev: 6.1.0 # Use the latest stable version
hooks:
- id: flake8
args: []