diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7d4425fd..fc10e87e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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] \ No newline at end of file diff --git a/Makefile b/Makefile index 42d0f7cb..7b9a8469 100644 --- a/Makefile +++ b/Makefile @@ -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 ########################################################################################################################