ci: replace pylint with pre-commit
pylint has been replaced by ruff
This commit is contained in:
parent
9b04a100db
commit
93b7e2a44c
|
@ -15,19 +15,24 @@ stages:
|
|||
lint:
|
||||
stage: test
|
||||
|
||||
variables:
|
||||
PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit
|
||||
|
||||
cache:
|
||||
paths:
|
||||
- .cache/pip
|
||||
- .venv/
|
||||
- ${PRE_COMMIT_HOME}
|
||||
|
||||
before_script:
|
||||
- apt-get update && apt-get install -y --no-install-recommends git
|
||||
- python --version
|
||||
- python -m venv .venv
|
||||
- source .venv/bin/activate
|
||||
- pip install -r requirements-dev.txt -U
|
||||
|
||||
script:
|
||||
- pylint $(find -type f -name "*.py" ! -path "./.venv/**" ! -path "./lib/**")
|
||||
- pre-commit run --all-files
|
||||
|
||||
build:
|
||||
stage: build
|
||||
|
|
Loading…
Reference in New Issue