Skip to content

Commit

Permalink
ci: ensure ruff format reads config file and excludes files
Browse files Browse the repository at this point in the history
  • Loading branch information
pinheadmz committed Aug 4, 2024
1 parent 048367a commit 228859e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
# Until this gets updated we need to use this commit hash (or later)
- uses: chartboost/ruff-action@491342200cdd1cf4d5132a30ddc546b3b5bc531b
with:
args: 'format --check'
args: 'format --check --config pyproject.toml'
changed-files: 'true'
build-image:
needs: [ruff, ruff-format]
Expand Down
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,12 @@ where = ["src", "resources"]

[tool.ruff]
extend-exclude = [
"src/test_framework/*.py",
"resources/images/exporter/authproxy.py",
"src/test_framework/*.py"
]
exclude = [
"resources/images/exporter/authproxy.py"
]
force-exclude = true
line-length = 100
indent-width = 4
[tool.ruff.lint]
Expand Down

0 comments on commit 228859e

Please sign in to comment.