diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..16540c45 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,8 @@ +repos: +- repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.15.5 + hooks: + - id: ruff-check + args: [ --fix ] + # Run the formatter. + - id: ruff-format \ No newline at end of file diff --git a/TEKDB/requirements.txt b/TEKDB/requirements.txt index 9a0cf228..8e5cec16 100644 --- a/TEKDB/requirements.txt +++ b/TEKDB/requirements.txt @@ -35,4 +35,6 @@ ipython # Serve static files in production containers whitenoise>=6.0.0,<7.0.0 # FORMATTING AND LINTING -ruff \ No newline at end of file +ruff +#pre-commit +pre-commit \ No newline at end of file