diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index 407b176b2c..9efa9c0972 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -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 diff --git a/.ruff.toml b/.ruff.toml index e1f7953802..084fc2badc 100644 --- a/.ruff.toml +++ b/.ruff.toml @@ -82,6 +82,7 @@ exclude = [ "build", "dist", "node_modules", + "pyipv8", "src/tribler/ui", "venv", ] @@ -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