python-infra: move f2 specific stuff into f2
When extracting a global pyproject.toml from the f2 one, some f2 specific things slipped through and ended up in the global one. This commit moves those parts back where they belong Change-Id: I95706fabec487410717fb362c95bfee900cf5b8c
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
#!@python@
|
#!@python@
|
||||||
|
|
||||||
# ruff: noqa: T201 # Our generated MD file is expected on stdout
|
|
||||||
# This is the only file and is executable
|
# This is the only file and is executable
|
||||||
|
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|||||||
+2
-7
@@ -69,7 +69,6 @@ task-tags = ["TODO", "FIXME", "XXX"]
|
|||||||
# LOG: creation of logger objects
|
# LOG: creation of logger objects
|
||||||
# G: style of logging messages
|
# G: style of logging messages
|
||||||
# PIE: unnecessary providing of stuff (placeholders, definitions, duplicates etc)
|
# PIE: unnecessary providing of stuff (placeholders, definitions, duplicates etc)
|
||||||
# T20: disallow prints in favor of using a logger
|
|
||||||
# PT: pytest formatting things; fixtures, asserts, parametrizastions etc
|
# PT: pytest formatting things; fixtures, asserts, parametrizastions etc
|
||||||
# Q: quote styling
|
# Q: quote styling
|
||||||
# RSE: check on raise statements
|
# RSE: check on raise statements
|
||||||
@@ -140,14 +139,10 @@ task-tags = ["TODO", "FIXME", "XXX"]
|
|||||||
# PGH: things about pygrep, we don't use
|
# PGH: things about pygrep, we don't use
|
||||||
# FURB: covered by other rule sets
|
# FURB: covered by other rule sets
|
||||||
# TRY: try and raise related things, not helpful as we only do testing
|
# TRY: try and raise related things, not helpful as we only do testing
|
||||||
select = ["E4", "E7", "E9", "F", "ERA", "ASYNC", "ANN0", "ANN2", "A", "C4", "ISC", "INP", "LOG", "G", "PIE", "T20", "PT", "Q", "RSE", "RET", "SIM", "TID251", "TD", "ARG", "PTH", "N", "PERF", "PLC", "PLE", "UP", "RUF"]
|
# T20: Scripts usually output to stdout as either they are directly cli or passed into files
|
||||||
|
select = ["E4", "E7", "E9", "F", "ERA", "ASYNC", "ANN0", "ANN2", "A", "C4", "ISC", "INP", "LOG", "G", "PIE", "PT", "Q", "RSE", "RET", "SIM", "TID251", "TD", "ARG", "PTH", "N", "PERF", "PLC", "PLE", "UP", "RUF"]
|
||||||
ignore = ["ANN002", "ANN003", "TD001", "TD003", "PLE1", "RUF005", "RUF003"]
|
ignore = ["ANN002", "ANN003", "TD001", "TD003", "PLE1", "RUF005", "RUF003"]
|
||||||
|
|
||||||
[tool.ruff.lint.per-file-ignores]
|
|
||||||
# ignore open() and os.path.join() calls in test_evil_nars, as that file is working with raw bytes
|
|
||||||
# which pathlib does not support
|
|
||||||
"**/store/test_evil_nars.py" = ["PTH118", "PTH123"]
|
|
||||||
|
|
||||||
[tool.ruff.format]
|
[tool.ruff.format]
|
||||||
indent-style = "space"
|
indent-style = "space"
|
||||||
quote-style = "double"
|
quote-style = "double"
|
||||||
|
|||||||
@@ -39,6 +39,15 @@ norecursedirs = [ '.*' ]
|
|||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
extend = "../../pyproject.toml"
|
extend = "../../pyproject.toml"
|
||||||
|
|
||||||
|
[tool.ruff.lint]
|
||||||
|
# T20: disallow prints in favor of using a logger for better tap compatibility
|
||||||
|
extend-select = ["T20"]
|
||||||
|
|
||||||
|
[tool.ruff.lint.per-file-ignores]
|
||||||
|
# ignore open() and os.path.join() calls in test_evil_nars, as that file is working with raw bytes
|
||||||
|
# which pathlib does not support
|
||||||
|
"**/store/test_evil_nars.py" = ["PTH118", "PTH123"]
|
||||||
|
|
||||||
[tool.ruff.lint.flake8-tidy-imports]
|
[tool.ruff.lint.flake8-tidy-imports]
|
||||||
|
|
||||||
[tool.ruff.lint.flake8-tidy-imports.banned-api]
|
[tool.ruff.lint.flake8-tidy-imports.banned-api]
|
||||||
|
|||||||
Reference in New Issue
Block a user