@@ -246,60 +246,29 @@ ignore = ["W002"] # Triggers on __init__.py's
246246exclude = [" src/scikit_build_core/_vendor/*" ]
247247
248248[tool .ruff .lint ]
249- extend-select = [
250- " ANN" , # flake8-annotations
251- " ARG" , # flake8-unused-arguments
252- " B" , # flake8-bugbear
253- " BLE" , # flake8-blind-except
254- " C4" , # flake8-comprehensions
255- " DTZ" , # flake8-datetimez
256- " EM" , # flake8-errmsg
257- " EXE" , # flake8-executable
258- " FA" , # flake8-future-annotations
259- " FBT" , # flake8-boolean-trap
260- " FLY" , # flynt
261- " FURB" , # refurb
262- " G" , # flake8-logging-format
263- " I" , # isort
264- " ICN" , # flake8-import-conventions
265- " ISC" , # flake8-implicit-str-concat
266- " LOG" , # flake8-logging
267- " N" , # flake8-naming
268- " PERF" , # perflint
269- " PGH" , # pygrep-hooks
270- " PIE" , # flake8-pie
271- " PL" , # pylint
272- " PT" , # flake8-pytest-style
273- " PTH" , # flake8-use-pathlib
274- " PYI" , # flake8-pyi
275- " Q" , # flake8-quotes
276- " RET" , # flake8-return
277- " RSE" , # flake8-raise
278- " RUF" , # Ruff-specific
279- " S" , # eval -> literal_eval
280- " SIM" , # flake8-simplify
281- " SLOT" , # flake8-slots
282- " T10" , # flake8-debugger
283- " T20" , # flake8-print
284- " TC" , # flake8-type-checking
285- " TID251" , # flake8-tidy-imports.banned-api
286- " TRY" , # tryceratops
287- " UP" , # pyupgrade
288- " YTT" , # flake8-2020
289- ]
249+ select = [" ALL" ]
290250ignore = [
291- " ANN401" , # Disallow dynamically typed expressions
251+ " A" , # Okay to shadow builtins
252+ " ANN401" , # Disallow Any
253+ " C90" , # Complexity
254+ " COM" , # Trailing commas teach the formatter
255+ " D" , # Too many doc requests
256+ " E501" , # Line too long
257+ " ERA" , # Commented out code
258+ " FIX" , # Hacks and todos
292259 " PLC0415" , # Import should be at top of file
293260 " PLE1205" , # Format check doesn't work with our custom logger
294261 " PLR09" , # Too many ...
295262 " PLR2004" , # Magic value used in comparison
296263 " PT013" , # It's correct to import classes for typing!
297- " PYI025" , # Wants Set to be renamed AbstractSet
298- " RUF009" , # Too easy to get a false positive
264+ " RUF009" , # Too easy to get a false positive (function call in dataclass defaults)
299265 " S101" , # Use of assert detected
300266 " S404" , # subprocess module is possibly insecure
301267 " S603" , # subprocess untrusted input
302268 " S607" , # subprocess call
269+ " SLF001" , # Private members are okay to access
270+ " TD" , # Todo format
271+ " TID252" , # Relative imports are fine
303272]
304273typing-modules = [" scikit_build_core._compat.typing" ]
305274
@@ -328,7 +297,7 @@ known-local-folder = ["pathutils"]
328297
329298
330299[tool .ruff .lint .per-file-ignores ]
331- "tests/**" = [" T20" , " ANN" , " FBT001" ]
300+ "tests/**" = [" T20" , " ANN" , " FBT001" , " INP " ]
332301"noxfile.py" = [" T20" , " TID251" ]
333302"src/scikit_build_core/resources/*.py" = [" PTH" , " ARG002" , " FBT" , " TID251" ]
334303"src/scikit_build_core/_compat/**.py" = [" TID251" ]
@@ -337,6 +306,7 @@ known-local-folder = ["pathutils"]
337306"tests/conftest.py" = [" TID251" ]
338307"tests/packages/**.py" = [" TID251" ]
339308"tests/test_settings.py" = [" FA" ]
309+ "docs/**" = [" INP" ]
340310"docs/conf.py" = [" TID251" ]
341311"docs/examples/**" = [" ANN" ]
342312"src/scikit_build_core/file_api/model/*.py" = [" N" ]
0 commit comments