Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ doc = [
check = [
"pytest-checkdocs >= 2.4",
"pytest-ruff >= 0.2.1; sys_platform != 'cygwin'",
# Deprecated rules must now be selected by exact rule code
"ruff >= 0.13; sys_platform != 'cygwin'",
Comment on lines +54 to +55
Copy link
Contributor Author

@Avasam Avasam Oct 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively, this can be set directly in ruff.toml with required-version. The UX is not great as it fails at runtime w/o telling you to bust your cache, also astral-sh/ruff#19922

]

cover = [
Expand Down
18 changes: 4 additions & 14 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,25 @@ extend-select = [
"FA", # flake8-future-annotations
"F404", # late-future-import
"PYI", # flake8-pyi
"UP006", # non-pep585-annotation
"UP007", # non-pep604-annotation
"UP010", # unnecessary-future-import
"UP035", # deprecated-import
"UP037", # quoted-annotation
"UP043", # unnecessary-default-type-args

# Code modernization (strings, annotations, conditions, ...)
"UP", # pyupgrade
Copy link
Contributor Author

@Avasam Avasam Oct 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively:

	"C901", # complex-structure
	"I", # isort
	"PERF401", # manual-list-comprehension
	"UP", # pyupgrade (Code modernization for strings, annotations, conditions, ...)
	
	# Ensure modern type annotation syntax and best practices
	# Not including those covered by type-checkers or exclusive to Python 3.11+
	"FA", # flake8-future-annotations
	"F404", # late-future-import
	"PYI", # flake8-pyi


# local
]
ignore = [
# upstream
"UP015", # redundant-open-modes, explicit is preferred

# Typeshed rejects complex or non-literal defaults for maintenance and testing reasons,
# irrelevant to this project.
"PYI011", # typed-argument-default-in-stub
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"W191",
"E111",
"E114",
"E117",
"D206",
"D300",
"Q000",
"Q001",
"Q002",
"Q003",
"COM812",
"COM819",

# local
]

Expand Down
Loading