Skip to content

Commit 1a3014b

Browse files
Turn off flake8-simplify for Python≥3.14 (#7058)
* Turn off flake8-simplify for Python≥3.14 According to flake8-simplify is isn't supported for Python≥3.9, but it works until 3.13. * flake8: ignore new rule B042 See #7059 --------- Co-authored-by: Oliver Sanders <[email protected]>
2 parents 72e9290 + 463be86 commit 1a3014b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ tests =
104104
flake8-debugger>=4.0.0
105105
flake8-implicit-str-concat>=0.4
106106
flake8-mutable>=1.2.0
107-
flake8-simplify>=0.14.0
107+
flake8-simplify>=0.14.0; python_version<"3.14"
108108
flake8-type-checking
109109
flake8>=3.0.0
110110
mypy>=0.910

tox.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ ignore=
1616
SIM9
1717
; explicitly concatenated strings (flake8-implicit-str-concat)
1818
ISC003
19+
; not all exception subclass __init__ args passed to super __init__
20+
; see https://github.com/cylc/cylc-flow/issues/7059
21+
B042
1922

2023
per-file-ignores=
2124
; TYPE_CHECKING block suggestions

0 commit comments

Comments
 (0)