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 59e0e63
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .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 Expand Up @@ -56,8 +56,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: hynek/setup-cached-uv@v1
- uses: medyagh/setup-minikube@master
- uses: azure/[email protected]
- uses: medyagh/setup-minikube@master
with:
mount-path: ${{ github.workspace }}:/mnt/src
- uses: actions/download-artifact@v4
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 59e0e63

Please sign in to comment.