[fix] Pre-commit CI
This commit is contained in:
parent
cd6aa668a0
commit
f6868b024f
4 changed files with 6 additions and 5 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -146,6 +146,8 @@ config.yaml
|
|||
# VSCode
|
||||
.vscode/
|
||||
|
||||
.ruff_cache/
|
||||
|
||||
# Custom NAFF versions
|
||||
naff/
|
||||
|
||||
|
|
|
@ -2,11 +2,9 @@ precommit:
|
|||
stage: test
|
||||
image: python:3.12-bookworm
|
||||
before_script:
|
||||
- apt update && apt install -y --no-install-recommends git
|
||||
- apt-get update && apt-get install -y --no-install-recommends git
|
||||
script:
|
||||
- pip install poetry
|
||||
- poetry install
|
||||
- source `poetry env info --path`/bin/activate
|
||||
- pip install -r requirements.precommit.txt
|
||||
- pre-commit run --all-files
|
||||
rules:
|
||||
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
||||
|
|
|
@ -40,7 +40,7 @@ erapi = { git = "https://git.zevaryx.com/zevaryx-technologies/erapi.git" }
|
|||
pydantic-settings = "^2.2.1"
|
||||
|
||||
[tool.poetry.group.dev.dependencies]
|
||||
pre-commit = "^2.21.0"
|
||||
pre-commit = "^3.6.2"
|
||||
pandas = "^1.5.3"
|
||||
black = "^23.1.0"
|
||||
|
||||
|
|
1
requirements.precommit.txt
Normal file
1
requirements.precommit.txt
Normal file
|
@ -0,0 +1 @@
|
|||
pre-commit==3.6.2
|
Loading…
Add table
Reference in a new issue