ruff: enable W, COM, EXE rules
This commit is contained in:
parent
ac08af7aab
commit
c5df3ce128
9 changed files with 19 additions and 14 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue