diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-01-14 13:49:52 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-01-14 13:51:18 +0100 |
commit | 47eb949b3162638ff49d20cd61aaf9ff560bd6b1 (patch) | |
tree | e58f9d5272d1d3c88a5f751f3230f71d7ec2fb20 | |
parent | 957c99b859eeab890bc300106fcdd68869ca46d4 (diff) | |
download | qutebrowser-47eb949b3162638ff49d20cd61aaf9ff560bd6b1.tar.gz qutebrowser-47eb949b3162638ff49d20cd61aaf9ff560bd6b1.zip |
ci: Add check for attrs
-rw-r--r-- | scripts/dev/misc_checks.py | 4 |
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 |