diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 33648c0e..bbc8b99e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -125,7 +125,7 @@ jobs: continue-on-error: false run: | target_version='py312' - ignore_csv_list='E701,E722,E731' + ignore_csv_list='C408,E701,E722,E731,I001,UP017,UP018' cd tubesync # output formats: # "full" | "concise" | "grouped" | @@ -148,7 +148,7 @@ jobs: ruff check --exit-zero \ --target-version "${target_version}" \ --output-format "${fmt}" \ - --extend-select RUF100 \ + --extend-select 'E4,E7,E9,F,RUF100' \ --ignore "${ignore_csv_list}" echo '' echo '```' @@ -161,6 +161,7 @@ jobs: ruff check \ --target-version "${target_version}" \ --output-format github \ + --select 'E4,E7,E9,F' \ --ignore "${ignore_csv_list}" - name: Run Django tests timeout-minutes: 5 diff --git a/tubesync/ruff.toml b/tubesync/ruff.toml new file mode 100644 index 00000000..a1544f15 --- /dev/null +++ b/tubesync/ruff.toml @@ -0,0 +1,3 @@ +[lint.per-file-ignores] +"**/management/commands/*.py" = ["N999"] +"**/migrations/0*.py" = ["I001", "RUF012"]