Skip to content

Commit

Permalink
modify ruff format and CI triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
h-mayorquin committed Mar 20, 2024
1 parent 5f1f9cc commit 9d00637
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run_all_tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Run all tests
on:
push:
pull_request:
types: [synchronize, opened, reopened]
schedule:
- cron: '0 5 * * 0' # once every Sunday at midnight ET
workflow_dispatch:
Expand Down
9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ preview = true
exclude = ".git|.mypy_cache|.tox|.venv|venv|.ipynb_checkpoints|_build/|dist/|__pypackages__|.ipynb|docs/"

[tool.ruff]
select = ["E", "F", "T100", "T201", "T203"]
exclude = [
".git",
".tox",
Expand All @@ -106,8 +105,12 @@ exclude = [
]
line-length = 120

[tool.ruff.per-file-ignores]

[tool.ruff.lint]
select = ["E", "F", "T100", "T201", "T203"]

[tool.ruff.lint.per-file-ignores]
"src/spec/create_extension_spec.py" = ["T201"]

[tool.ruff.mccabe]
[tool.ruff.lint.mccabe]
max-complexity = 17

0 comments on commit 9d00637

Please sign in to comment.