Skip to content

Commit

Permalink
Adjusted codestyle check to use ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
david-zwicker committed Aug 17, 2024
1 parent 7e1f6a4 commit 0b2df5c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions scripts/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,8 @@ def test_codestyle(*, verbose: bool = True) -> int:
print(f"Checking codestyle in folder {folder}...")
path = PACKAGE_PATH / folder

# format imports
result = sp.run(["isort", "--diff", path])
retcodes.append(result.returncode)
# format rest
result = sp.run(["black", "--check", path])
# check format
result = sp.run(["ruff", "check", path])
retcodes.append(result.returncode)

return _most_severe_exit_code(retcodes)
Expand Down

0 comments on commit 0b2df5c

Please sign in to comment.