File: ruff.toml

package info (click to toggle)
switchbot-api 2.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 316 kB
  • sloc: python: 656; makefile: 15
file content (15 lines) | stat: -rw-r--r-- 497 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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", # Use of assert detected. As these are tests...
  "S105", # Detection of passwords...
  "S106", # Detection of passwords...
  "SLF001", # Tests will access private/protected members...
  "TC002", # pytest doesn't like this one...
  "PLR0913", # we're overwriting function that has many arguments
]