diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 000000000..bdb086412 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,28 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.3.0 + hooks: + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace + - id: mixed-line-ending + args: [ --fix=lf ] + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.1.6 + hooks: + - id: ruff + args: [ ./machine-learning, --fix ] + - id: ruff-format + args: [ ./machine-learning ] + - repo: https://github.com/pre-commit/mirrors-prettier + rev: v3.1.0 + hooks: + - id: prettier + args: [ ./server, --write ] + - id: prettier + args: [ ./web, --write ] + - repo: https://github.com/python-poetry/poetry + rev: "1.7.1" + hooks: + - id: poetry-lock + args: [ -C, ./machine-learning ] diff --git a/renovate.json b/renovate.json index 7420b7e69..496b980a6 100644 --- a/renovate.json +++ b/renovate.json @@ -38,5 +38,8 @@ "vector_map_tiles", "flutter_map", "flutter_map_heatmap" - ] + ], + "pre-commit": { + "enabled": true + } }