Skip to content

Commit

Permalink
Updated ruff definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
qstokkink committed Dec 16, 2024
1 parent df081c7 commit 165a1ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
uses: tj-actions/changed-files@v42
with:
files: |
*.py
**/*.py
src/*.py
src/**/*.py
- name: Run ruff
if: steps.changed-py-files.outputs.any_changed == 'true'
run: ruff check ${{ steps.changed-py-files.outputs.all_changed_files }} --force-exclude
3 changes: 2 additions & 1 deletion .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ exclude = [
"build",
"dist",
"node_modules",
"pyipv8",
"src/tribler/ui",
"venv",
]
Expand All @@ -91,7 +92,7 @@ line-length = 120
# Allow unused variables when underscore-prefixed.
lint.dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"

target-version = "py37"
target-version = "py39"

[lint.pylint]
max-args = 6
Expand Down

0 comments on commit 165a1ce

Please sign in to comment.