File: ruff.toml

package info (click to toggle)
pypaperless 5.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,440 kB
  • sloc: python: 5,607; sh: 26; makefile: 3
file content (13 lines) | stat: -rw-r--r-- 439 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
# This extend our general Ruff rules specifically for tests
extend = "../pyproject.toml"

lint.extend-select = [
  "PT", # Use @pytest.fixture without parentheses
]

lint.extend-ignore = [
  "S101", # As these are tests, the usage of assert could be good practise, no?
  "S105", # Yes, we hardcoded passwords. It will be ok this time.
  "SLF001", # Tests will access private/protected members.
  "TC002", # pytest doesn't like this one.
]