[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
.vscode/ .vscode/
.ruff_cache/
# Custom NAFF versions # Custom NAFF versions
naff/ naff/

View file

@ -2,11 +2,9 @@ precommit:
stage: test stage: test
image: python:3.12-bookworm image: python:3.12-bookworm
before_script: before_script:
- apt update && apt install -y --no-install-recommends git - apt-get update && apt-get install -y --no-install-recommends git
script: script:
- pip install poetry - pip install -r requirements.precommit.txt
- poetry install
- source `poetry env info --path`/bin/activate
- pre-commit run --all-files - pre-commit run --all-files
rules: rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event' - 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" pydantic-settings = "^2.2.1"
[tool.poetry.group.dev.dependencies] [tool.poetry.group.dev.dependencies]
pre-commit = "^2.21.0" pre-commit = "^3.6.2"
pandas = "^1.5.3" pandas = "^1.5.3"
black = "^23.1.0" black = "^23.1.0"

View file

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