@@ -28,8 +28,13 @@ ignore = [
2828 " UP038" , # Use `X | Y` in `isinstance` is slower
2929 " S603" , # check for execution of untrusted input
3030 " S105" , # possible hard coded creds
31+ " TID252" , # not for this lib
32+ " TRY003" , # nice but too many to fix,
33+ " G201" , # too noisy
34+ " PLR2004" , # too many to fix
3135]
3236select = [
37+ " ASYNC" , # async rules
3338 " B" , # flake8-bugbear
3439 " D" , # flake8-docstrings
3540 " C4" , # flake8-comprehensions
@@ -40,6 +45,24 @@ select = [
4045 " UP" , # pyupgrade
4146 " I" , # isort
4247 " RUF" , # ruff specific
48+ " FLY" , # flynt
49+ " G" , # flake8-logging-format ,
50+ " PERF" , # Perflint
51+ " PGH" , # pygrep-hooks
52+ " PIE" , # flake8-pie
53+ " PL" , # pylint
54+ " PT" , # flake8-pytest-style
55+ " PTH" , # flake8-pathlib
56+ " PYI" , # flake8-pyi
57+ " RET" , # flake8-return
58+ " RSE" , # flake8-raise ,
59+ " SIM" , # flake8-simplify
60+ " SLF" , # flake8-self
61+ " SLOT" , # flake8-slots
62+ " T100" , # Trace found: {name} used
63+ " T20" , # flake8-print
64+ " TID" , # Tidy imports
65+ " TRY" , # tryceratops
4366]
4467
4568[tool .ruff .lint .per-file-ignores ]
@@ -50,10 +73,15 @@ select = [
5073 " D103" ,
5174 " D104" ,
5275 " S101" ,
76+ " SLF001" ,
77+ " PLR2004" ,
5378]
5479"setup.py" = [" D100" ]
5580"conftest.py" = [" D100" ]
5681"docs/conf.py" = [" D100" ]
82+ "scripts/**/*" = [
83+ " T201"
84+ ]
5785
5886[tool .ruff .lint .isort ]
5987known-first-party = [" pySwitchbot" , " tests" ]
0 commit comments