ruff: enable W, COM, EXE rules

This commit is contained in:
Dima Gerasimov 2024-08-28 03:05:24 +01:00 committed by karlicoss
parent ac08af7aab
commit c5df3ce128
9 changed files with 19 additions and 14 deletions

View file

@ -242,7 +242,7 @@ def test_pure() -> None:
src = Path(__file__).read_text()
# 'import my' is allowed, but
# dont allow anything other HPI modules
assert re.findall('import ' + r'my\.\S+', src, re.M) == []
assert re.findall('import ' + r'my\.\S+', src, re.MULTILINE) == []
assert 'from ' + 'my' not in src