Revert "chore: re-enable pre-commit"

This reverts commit a45c07d2ad.
This commit is contained in:
Javier Martinez 2024-08-02 09:07:39 +02:00
parent 29cf41a23f
commit c8aeb09c57
No known key found for this signature in database
2 changed files with 8 additions and 11 deletions

View File

@ -17,13 +17,13 @@ repos:
hooks:
- id: black
name: Formatting (black)
entry: make format
entry: black
language: system
types: [python]
stages: [commit]
- id: ruff
name: Linter (ruff)
entry: make lint
entry: ruff
language: system
types: [python]
stages: [commit]
@ -40,4 +40,4 @@ repos:
pass_filenames: false
language: system
types: [python]
stages: [push]
stages: [push]

View File

@ -12,23 +12,20 @@ test-coverage:
PYTHONPATH=. poetry run pytest tests --cov private_gpt --cov-report term --cov-report=html --cov-report xml --junit-xml=tests-results.xml
black:
PYTHONPATH=. poetry run black . --check
poetry run black . --check
ruff:
PYTHONPATH=. poetry run ruff check private_gpt tests
poetry run ruff check private_gpt tests
format:
PYTHONPATH=. poetry run black .
lint:
PYTHONPATH=. poetry run ruff check private_gpt tests --fix
poetry run black .
poetry run ruff check private_gpt tests --fix
mypy:
PYTHONPATH=. poetry run mypy private_gpt
poetry run mypy private_gpt
check:
make format
make lint
make mypy
########################################################################################################################