ci: replace pylint with pre-commit

pylint has been replaced by ruff
This commit is contained in:
Ming Di Leom 2023-11-11 04:47:56 +00:00
parent 9b04a100db
commit 93b7e2a44c
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 6 additions and 1 deletions

View File

@ -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