Skip to content

Commit

Permalink
Use ruff instead of flake8 to lint files
Browse files Browse the repository at this point in the history
  • Loading branch information
johannaengland committed Sep 3, 2024
1 parent 2ca0fdd commit 0ca3ac3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 0ca3ac3

Please sign in to comment.