diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index f0af539..d0bd912 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -34,8 +34,8 @@ jobs: # FIXME VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'push'}} VALIDATE_ALL_CODEBASE: true LINTER_RULES_PATH: . - ENABLE_LINTERS: PYTHON_FLAKE8 - PYTHON_FLAKE8_CONFIG_FILE: tox.ini + ENABLE_LINTERS: PYTHON_RUFF + PYTHON_RUFF_CONFIG_FILE: pyproject.toml # Make workflow fail even on non blocking errors FORMATTERS_DISABLE_ERRORS: false diff --git a/pyproject.toml b/pyproject.toml index 6a7cc2e..1205d01 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,3 +41,10 @@ include = [ [tool.setuptools_scm] write_to = "src/zinolib/version.py" + +[tool.ruff] +line-length = 120 +target-version = "py39" + +[tool.ruff.lint] +select = ["E9", "F63", "F7", "F82"] \ No newline at end of file