diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b5805d7e..2c36c395 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -54,3 +54,11 @@ repos: args: - --jobs=1 - --extend-ignore=W503,E203,E501 + - repo: https://github.com/charliermarsh/ruff-pre-commit + # Ruff version. + rev: 'v0.0.265' + hooks: + - id: ruff + args: + - --fix + - --exit-non-zero-on-fix \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 8848df9c..dec8f4a2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,6 +52,10 @@ plugins = ['sqlalchemy.ext.mypy.plugin'] [tool.isort] profile = "black" +[tool.ruff] +select = ["ALL"] +target-version = "py37" + [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api"