Skip to content

Commit

Permalink
run ruff on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pvsr committed Mar 6, 2023
1 parent a268bbf commit 26d94b6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .builds/qbpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tasks:
$NIX develop .#ci -c black --diff --check qbpm tests
- ruff: |
cd qbpm
$NIX develop .#ci -c ruff qbpm
$NIX develop .#ci -c ruff qbpm tests
- mypy: |
cd qbpm
$NIX develop .#ci -c mypy qbpm tests
Expand Down
4 changes: 4 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ ignore = [
"ANN102", # annotate cls
"ANN401", # ban Any
]

[per-file-ignores]
"tests/test_main.py" = [ "S101", "ANN201"]
"tests/test_profiles.py" = [ "S101", "ANN201"]
2 changes: 1 addition & 1 deletion tests/test_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def test_overwrite_config(tmp_path: Path):
for line in conf:
if url in line:
return
assert False
raise AssertionError()


def test_ensure_profile_exists_exists(tmp_path: Path):
Expand Down

0 comments on commit 26d94b6

Please sign in to comment.