[fix] Pre-commit CI

This commit is contained in:
Zeva Rose 2024-03-17 00:11:11 -06:00
parent cd6aa668a0
commit f6868b024f
4 changed files with 6 additions and 5 deletions

2
.gitignore vendored
View file

@ -146,6 +146,8 @@ config.yaml
# VSCode
.vscode/
.ruff_cache/
# Custom NAFF versions
naff/

View file

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

View file

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

View file

@ -0,0 +1 @@
pre-commit==3.6.2