refining ci pipeline
This commit is contained in:
parent
c8e488c0db
commit
57763970f9
@ -30,8 +30,8 @@ lint:
|
|||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- source $VIRTUAL_ENV/bin/activate
|
- source $VIRTUAL_ENV/bin/activate
|
||||||
- pip install flake8
|
- pip install pre-commit # Install pre-commit in the CI environment
|
||||||
- flake8 backend/ # Run linting for code quality
|
- pre-commit run --all-files # Run all pre-commit hooks on the entire codebase
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
12
.pre-commit-config.yaml
Normal file
12
.pre-commit-config.yaml
Normal 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: []
|
Loading…
x
Reference in New Issue
Block a user