From 47eb949b3162638ff49d20cd61aaf9ff560bd6b1 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 14 Jan 2021 13:49:52 +0100 Subject: ci: Add check for attrs --- scripts/dev/misc_checks.py | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3-54-g00ecf