mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 13:55:41 +01:00
parent
29cf41a23f
commit
c8aeb09c57
2 changed files with 8 additions and 11 deletions
|
|
@ -17,13 +17,13 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
name: Formatting (black)
|
name: Formatting (black)
|
||||||
entry: make format
|
entry: black
|
||||||
language: system
|
language: system
|
||||||
types: [python]
|
types: [python]
|
||||||
stages: [commit]
|
stages: [commit]
|
||||||
- id: ruff
|
- id: ruff
|
||||||
name: Linter (ruff)
|
name: Linter (ruff)
|
||||||
entry: make lint
|
entry: ruff
|
||||||
language: system
|
language: system
|
||||||
types: [python]
|
types: [python]
|
||||||
stages: [commit]
|
stages: [commit]
|
||||||
|
|
@ -40,4 +40,4 @@ repos:
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
language: system
|
language: system
|
||||||
types: [python]
|
types: [python]
|
||||||
stages: [push]
|
stages: [push]
|
||||||
13
Makefile
13
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
|
PYTHONPATH=. poetry run pytest tests --cov private_gpt --cov-report term --cov-report=html --cov-report xml --junit-xml=tests-results.xml
|
||||||
|
|
||||||
black:
|
black:
|
||||||
PYTHONPATH=. poetry run black . --check
|
poetry run black . --check
|
||||||
|
|
||||||
ruff:
|
ruff:
|
||||||
PYTHONPATH=. poetry run ruff check private_gpt tests
|
poetry run ruff check private_gpt tests
|
||||||
|
|
||||||
format:
|
format:
|
||||||
PYTHONPATH=. poetry run black .
|
poetry run black .
|
||||||
|
poetry run ruff check private_gpt tests --fix
|
||||||
lint:
|
|
||||||
PYTHONPATH=. poetry run ruff check private_gpt tests --fix
|
|
||||||
|
|
||||||
mypy:
|
mypy:
|
||||||
PYTHONPATH=. poetry run mypy private_gpt
|
poetry run mypy private_gpt
|
||||||
|
|
||||||
check:
|
check:
|
||||||
make format
|
make format
|
||||||
make lint
|
|
||||||
make mypy
|
make mypy
|
||||||
|
|
||||||
########################################################################################################################
|
########################################################################################################################
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue