diff --git a/.dockerignore b/.dockerignore
index d6aca9a..f4cc4f6 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -1,2 +1,2 @@
client/dist
-client/node_modules
\ No newline at end of file
+client/node_modules
diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml
index 70d2803..40d75a8 100644
--- a/.github/workflows/integration-test.yml
+++ b/.github/workflows/integration-test.yml
@@ -8,6 +8,16 @@ on:
- master
jobs:
+ style:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ - uses: actions/setup-python@v4
+ with:
+ python-version: "3.9"
+ - run: pip install pre-commit==3.3.2
+ - run: pre-commit run --all-files
build:
runs-on: ubuntu-latest
steps:
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644
index 0000000..ef44ade
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,18 @@
+repos:
+ - repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v3.3.0
+ hooks:
+ - id: trailing-whitespace
+ - id: end-of-file-fixer
+ - id: check-yaml
+ - id: check-added-large-files
+ - id: check-case-conflict
+ - id: check-merge-conflict
+ - repo: https://github.com/psf/black
+ rev: 23.3.0
+ hooks:
+ - id: black
+ - repo: https://github.com/astral-sh/ruff-pre-commit
+ rev: v0.0.270
+ hooks:
+ - id: ruff
diff --git a/LICENSE b/LICENSE
index 7b56a82..ed89c2f 100644
--- a/LICENSE
+++ b/LICENSE
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
\ No newline at end of file
+SOFTWARE.
diff --git a/client/.gitignore b/client/.gitignore
index 24cdedf..4d29575 100644
--- a/client/.gitignore
+++ b/client/.gitignore
@@ -20,4 +20,4 @@
npm-debug.log*
yarn-debug.log*
-yarn-error.log*
\ No newline at end of file
+yarn-error.log*
diff --git a/client/.npmrc b/client/.npmrc
index acb88cc..5aec391 100644
--- a/client/.npmrc
+++ b/client/.npmrc
@@ -1,2 +1,2 @@
legacy-peer-deps=true
-strict-peer-dependencies=false
\ No newline at end of file
+strict-peer-dependencies=false
diff --git a/client/public/favicon.svg b/client/public/favicon.svg
index 078bd12..99415c5 100644
--- a/client/public/favicon.svg
+++ b/client/public/favicon.svg
@@ -29,4 +29,4 @@
-
\ No newline at end of file
+
diff --git a/client/public/images/flags/en.svg b/client/public/images/flags/en.svg
index 76b1056..79ff4af 100644
--- a/client/public/images/flags/en.svg
+++ b/client/public/images/flags/en.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
diff --git a/client/src/icon.svg b/client/src/icon.svg
index 078bd12..99415c5 100644
--- a/client/src/icon.svg
+++ b/client/src/icon.svg
@@ -29,4 +29,4 @@
-
\ No newline at end of file
+
diff --git a/migrations/README b/migrations/README
index e0d0858..a23d4fb 100644
--- a/migrations/README
+++ b/migrations/README
@@ -1 +1 @@
-Generic single-database configuration with an async dbapi.
\ No newline at end of file
+Generic single-database configuration with an async dbapi.
diff --git a/requirements_dev.txt b/requirements_dev.txt
index 1202aca..32a76ec 100644
--- a/requirements_dev.txt
+++ b/requirements_dev.txt
@@ -1,2 +1,3 @@
-ruff
-black
\ No newline at end of file
+ruff==0.0.270
+black==23.3.0
+pre-commit==3.3.2