diff --git a/backend/.pre-commit-config.yaml b/backend/.pre-commit-config.yaml new file mode 100644 index 00000000..fbd27e2b --- /dev/null +++ b/backend/.pre-commit-config.yaml @@ -0,0 +1,15 @@ +repos: + - repo: local + hooks: + - id: ruff-check + name: ruff linting check + entry: ruff check + language: system + types: [python] + always_run: true + - id: pyright + name: pyright linting check + entry: pyright + language: system + types: [python] + always_run: true \ No newline at end of file diff --git a/backend/requirements.txt b/backend/requirements.txt index dbd63a55..66727a6a 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -8,10 +8,11 @@ greenlet==3.0.3 h11==0.14.0 idna==3.6 nodeenv==1.8.0 +pre-commit==3.6.2 psycopg2-binary==2.9.9 pydantic==2.6.3 pydantic_core==2.16.3 -pyright==1.1.351 +pyright==1.1.352 ruff==0.2.2 setuptools==69.1.1 sniffio==1.3.1