Skip to content

Commit 26d94b6

Browse files
committed
run ruff on tests
1 parent a268bbf commit 26d94b6

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.builds/qbpm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ tasks:
1212
$NIX develop .#ci -c black --diff --check qbpm tests
1313
- ruff: |
1414
cd qbpm
15-
$NIX develop .#ci -c ruff qbpm
15+
$NIX develop .#ci -c ruff qbpm tests
1616
- mypy: |
1717
cd qbpm
1818
$NIX develop .#ci -c mypy qbpm tests

ruff.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ ignore = [
66
"ANN102", # annotate cls
77
"ANN401", # ban Any
88
]
9+
10+
[per-file-ignores]
11+
"tests/test_main.py" = [ "S101", "ANN201"]
12+
"tests/test_profiles.py" = [ "S101", "ANN201"]

tests/test_profiles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def test_overwrite_config(tmp_path: Path):
7171
for line in conf:
7272
if url in line:
7373
return
74-
assert False
74+
raise AssertionError()
7575

7676

7777
def test_ensure_profile_exists_exists(tmp_path: Path):

0 commit comments

Comments
 (0)