Skip to content

Commit

Permalink
fix: more refining of default ruff config (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
hairmare authored Mar 25, 2024
1 parent f32b4dd commit b812f47
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions scaffolder-skeletons/ruff/ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ select = [
"T10", # flake8-debugger
"EM", # flake8-errmsg
"EXE", # flake8-executable
"FA", # flake8-future-annotations
"FA", # flake8-future-annotations
"ISC", # flake8-implicit-str-concat
"ICN", # flake8-import-conventions
"G", # flake8-logging-format
"G", # flake8-logging-format
"INP", # flake8-no-pep420
"PIE", # flake8-pie
"T20", # flake8-print
Expand All @@ -38,7 +38,7 @@ select = [
"RET", # flake8-return
"SLF", # flake8-self
"SLOT", # flake8-slots
"SIM", # flake8-simplify
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"TCH", # flake8-type-checking
"INT", # flake8-gettext
Expand All @@ -55,15 +55,19 @@ select = [
ignore = [
"D203", # we prefer blank-line-before-class (D211) for black compat
"D213", # we prefer multi-line-summary-first-line (D212)
"COM812", # ignore due to conflict with formatter
"ISC001", # ignore due to conflict with formatter
]

[lint.per-file-ignores]
"tests/**/*.py" = [
"D", # pydocstyle is optional for tests
"ANN", # flake8-annotations are optional for tests
"S101", # assert is allow in tests
"S105", # tests may have hardcoded secrets
"S106", # tests may have hardcoded passwords
"S108", # /tmp is allowed in tests since it's expected to be mocked
"DTZ001", # tests often run in UTC
"DTZ00", # tests often run in UTC
"INP001", # tests do not need a dunder init
]
"**/__init__.py" = [
Expand Down

0 comments on commit b812f47

Please sign in to comment.