Skip to content

Commit

Permalink
Replace autopep8 runner with reusable-ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
garlic-os committed Jul 9, 2024
1 parent 438362d commit dd03b0c
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 34 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/autopep8.yml

This file was deleted.

7 changes: 7 additions & 0 deletions .github/workflows/reusable-ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: Static analysis

on: push

jobs:
call-ruff-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-ruff.yml@v0.11.2
24 changes: 24 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,27 @@ multi_line_output = 5
default_section = "THIRDPARTY"

[tool.setuptools_scm]

[tool.ruff]
line-length = 120
src = ["tools", "test"]

[tool.ruff.format]
indent-style = "space"
quote-style = "single"

[tool.ruff.lint]
extend-select = [
"I", # isort: https://docs.astral.sh/ruff/rules/#isort-i
"UP", # pyupgrade: https://docs.astral.sh/ruff/rules/#pyupgrade-up
"D", # pydocstyle: https://docs.astral.sh/ruff/rules/#pydocstyle-d
"ANN", # annotations: https://docs.astral.sh/ruff/rules/#flake8-annotations-ann
"PTH", # use-pathlib-pth: https://docs.astral.sh/ruff/rules/#flake8-use-pathlib-pth
]

[tool.ruff.lint.pydocstyle]
convention = "google"

[tool.ruff.lint.isort]
case-sensitive = true
lines-after-imports = 2

0 comments on commit dd03b0c

Please sign in to comment.