From 4981ace849f23f63d416d9172ca5d7179e45df3b Mon Sep 17 00:00:00 2001 From: Dan Yishai Date: Fri, 1 Dec 2023 17:31:32 +0200 Subject: [PATCH] Added pre-commit --- .idea/.name | 2 +- .idea/codeStyles/codeStyleConfig.xml | 2 +- .idea/inspectionProfiles/Project_Default.xml | 2 +- .../inspectionProfiles/profiles_settings.xml | 2 +- .idea/jsLinters/eslint.xml | 2 +- .idea/modules.xml | 2 +- .idea/poetry.xml | 2 +- .idea/prettier.xml | 2 +- .idea/ruff.xml | 2 +- .idea/runConfigurations/build_Dockerfile.xml | 2 +- .idea/runConfigurations/dev.xml | 2 +- .idea/runConfigurations/generate_client.xml | 2 +- .idea/runConfigurations/lint.xml | 2 +- .idea/runConfigurations/lint_fix.xml | 2 +- .idea/runConfigurations/pytest_in_server.xml | 2 +- .idea/runConfigurations/ruff_check.xml | 2 +- .idea/runConfigurations/run_server.xml | 2 +- .idea/vcs.xml | 2 +- .pre-commit-config.yaml | 46 + CONTRIBUTING.md | 21 +- README.md | 8 +- frontend/.eslintrc.json | 2 +- poetry.lock | 946 ++++++++++-------- pyproject.toml | 4 + server/.env.example | 2 +- server/app.py | 2 +- server/events/broadcaster.py | 2 +- server/events/broadcaster_test.py | 14 +- server/loggers_test.py | 5 +- server/logging_config.py | 7 +- server/pagination.py | 8 +- server/run.py | 2 +- server/server_info/__init__.py | 2 - server/server_info/debug_bundle.py | 2 +- server/server_info/debug_bundle_test.py | 7 +- server/server_info/router.py | 4 +- server/tasks/model.py | 4 +- server/tasks/router.py | 5 +- server/workers/models.py | 6 +- server/workers/router.py | 1 - server/ws/models_test.py | 26 +- server/ws/websocket_manager.py | 5 +- server/ws/websocket_manager_test.py | 1 - 43 files changed, 642 insertions(+), 526 deletions(-) create mode 100644 .pre-commit-config.yaml diff --git a/.idea/.name b/.idea/.name index 04c83bd..10111b1 100644 --- a/.idea/.name +++ b/.idea/.name @@ -1 +1 @@ -celery-insights \ No newline at end of file +celery-insights diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml index 79ee123..0f7bc51 100644 --- a/.idea/codeStyles/codeStyleConfig.xml +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -2,4 +2,4 @@ - \ No newline at end of file + diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index 1def8aa..e734784 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -28,4 +28,4 @@ - \ No newline at end of file + diff --git a/.idea/prettier.xml b/.idea/prettier.xml index 8004ceb..357044a 100644 --- a/.idea/prettier.xml +++ b/.idea/prettier.xml @@ -3,4 +3,4 @@ - \ No newline at end of file + diff --git a/.idea/ruff.xml b/.idea/ruff.xml index 4ed968f..d1e628c 100644 --- a/.idea/ruff.xml +++ b/.idea/ruff.xml @@ -3,4 +3,4 @@ - \ No newline at end of file + diff --git a/.idea/runConfigurations/build_Dockerfile.xml b/.idea/runConfigurations/build_Dockerfile.xml index 55762ad..5d24509 100644 --- a/.idea/runConfigurations/build_Dockerfile.xml +++ b/.idea/runConfigurations/build_Dockerfile.xml @@ -17,4 +17,4 @@ - \ No newline at end of file + diff --git a/.idea/runConfigurations/dev.xml b/.idea/runConfigurations/dev.xml index dc795f2..8c8222d 100644 --- a/.idea/runConfigurations/dev.xml +++ b/.idea/runConfigurations/dev.xml @@ -9,4 +9,4 @@ - \ No newline at end of file + diff --git a/.idea/runConfigurations/generate_client.xml b/.idea/runConfigurations/generate_client.xml index 5b9e259..f3cdf66 100644 --- a/.idea/runConfigurations/generate_client.xml +++ b/.idea/runConfigurations/generate_client.xml @@ -9,4 +9,4 @@ - \ No newline at end of file + diff --git a/.idea/runConfigurations/lint.xml b/.idea/runConfigurations/lint.xml index 425915e..0b271cf 100644 --- a/.idea/runConfigurations/lint.xml +++ b/.idea/runConfigurations/lint.xml @@ -9,4 +9,4 @@ - \ No newline at end of file + diff --git a/.idea/runConfigurations/lint_fix.xml b/.idea/runConfigurations/lint_fix.xml index 2f5cb74..f3d2b07 100644 --- a/.idea/runConfigurations/lint_fix.xml +++ b/.idea/runConfigurations/lint_fix.xml @@ -9,4 +9,4 @@ - \ No newline at end of file + diff --git a/.idea/runConfigurations/pytest_in_server.xml b/.idea/runConfigurations/pytest_in_server.xml index 38a7dbc..1fdd9b9 100644 --- a/.idea/runConfigurations/pytest_in_server.xml +++ b/.idea/runConfigurations/pytest_in_server.xml @@ -17,4 +17,4 @@