Skip to content

Commit 33afb66

Browse files
committed
refact: Disable UP007 Linting Rule
UP007 is related to a change in typing detailed in PEP604. Typing Unions can now be written as `X | Y` instead of `Union[int, str]`. There is no deprecation for this feature, and a significant amount of legacy code needs to be updated.
1 parent d96b77b commit 33afb66

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ select = [
8787
"YTT", # flake8-2020 (Detects outdated Python 2/3 compatibility issues)
8888
"FLY", # flynt (Converts old-style string formatting to f-strings)
8989
"PIE", # flake8-pie
90-
"NPY201", # numpy2-deprecations
90+
"NPY201", # numpy2-deprecations
9191
# "PL", # pylint
9292
# "RUF", # Ruff-specific rules (Additional optimizations and best practices)
9393
]
@@ -98,6 +98,7 @@ ignore = [
9898
"S311", # [suspicious-non-cryptographic-random-usage](https://docs.astral.sh/ruff/rules/suspicious-non-cryptographic-random-usage/)
9999
"S404", # [suspicious-subprocess-import](https://docs.astral.sh/ruff/rules/suspicious-subprocess-import/)
100100
"S603", # [subprocess-without-shell-equals-true](https://docs.astral.sh/ruff/rules/subprocess-without-shell-equals-true/)
101+
"UP007", # [non-pep604-annotation-union](https://docs.astral.sh/ruff/rules/non-pep604-annotation-union/#non-pep604-annotation-union-up007)
101102
]
102103

103104
[tool.ruff.lint.per-file-ignores]

0 commit comments

Comments
 (0)