mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-04-28 03:32:18 +00:00
chore: re-enable pre-commit
This commit is contained in:
parent
bdd0bb7425
commit
a45c07d2ad
@ -17,13 +17,13 @@ repos:
|
||||
hooks:
|
||||
- id: black
|
||||
name: Formatting (black)
|
||||
entry: black
|
||||
entry: make format
|
||||
language: system
|
||||
types: [python]
|
||||
stages: [commit]
|
||||
- id: ruff
|
||||
name: Linter (ruff)
|
||||
entry: ruff
|
||||
entry: make lint
|
||||
language: system
|
||||
types: [python]
|
||||
stages: [commit]
|
||||
@ -40,4 +40,4 @@ repos:
|
||||
pass_filenames: false
|
||||
language: system
|
||||
types: [python]
|
||||
stages: [push]
|
||||
stages: [push]
|
||||
|
13
Makefile
13
Makefile
@ -12,20 +12,23 @@ 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:
|
||||
poetry run black . --check
|
||||
PYTHONPATH=. poetry run black . --check
|
||||
|
||||
ruff:
|
||||
poetry run ruff check private_gpt tests
|
||||
PYTHONPATH=. poetry run ruff check private_gpt tests
|
||||
|
||||
format:
|
||||
poetry run black .
|
||||
poetry run ruff check private_gpt tests --fix
|
||||
PYTHONPATH=. poetry run black .
|
||||
|
||||
lint:
|
||||
PYTHONPATH=. poetry run ruff check private_gpt tests --fix
|
||||
|
||||
mypy:
|
||||
poetry run mypy private_gpt
|
||||
PYTHONPATH=. poetry run mypy private_gpt
|
||||
|
||||
check:
|
||||
make format
|
||||
make lint
|
||||
make mypy
|
||||
|
||||
########################################################################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user