summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-01-14 13:49:52 +0100
committerFlorian Bruhin <me@the-compiler.org>2021-01-14 13:51:18 +0100
commit47eb949b3162638ff49d20cd61aaf9ff560bd6b1 (patch)
treee58f9d5272d1d3c88a5f751f3230f71d7ec2fb20
parent957c99b859eeab890bc300106fcdd68869ca46d4 (diff)
downloadqutebrowser-47eb949b3162638ff49d20cd61aaf9ff560bd6b1.tar.gz
qutebrowser-47eb949b3162638ff49d20cd61aaf9ff560bd6b1.zip
ci: Add check for attrs
-rw-r--r--scripts/dev/misc_checks.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/dev/misc_checks.py b/scripts/dev/misc_checks.py
index 5c654235c..afbb5e791 100644
--- a/scripts/dev/misc_checks.py
+++ b/scripts/dev/misc_checks.py
@@ -214,6 +214,10 @@ def check_spelling(args: argparse.Namespace) -> Optional[bool]:
re.compile(r'Q_(ENUM|FLAG)'),
"Q_ENUM and Q_FLAG are removed in PyQt 6",
),
+ (
+ re.compile(r'attr\.(s|ib)($|\()'),
+ "attrs have been replaced by dataclasses in qutebrowser.",
+ ),
]
# Files which should be ignored, e.g. because they come from another