Skip to content

Commit

Permalink
Suggest to move config to pyproject (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasericsson authored Sep 2, 2024
1 parent ee00600 commit 99edf75
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ jobs:
id: ruff
run: |
# It would be nice to push the changes back to the PR branch, but that's difficult to do with forks
ruff check --select I --exit-non-zero-on-fix --output-format=github
ruff format
# Run lint check
ruff check --exit-non-zero-on-fix
# Run format check, non-zero exit code if there are any changes
ruff format --check
coverage:
runs-on: ubuntu-latest
Expand Down
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[tool.pytest.ini_options]
pythonpath = ["src"]

[tool.ruff]
output-format = "github"

[tool.ruff.lint]
select = ["I"]

0 comments on commit 99edf75

Please sign in to comment.