Skip to content

Commit

Permalink
Add Ruff exception for notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
jpauwels committed Oct 25, 2024
1 parent e3945b0 commit a4c6837
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Lint with ruff
run: |
# stop the build if there are Python syntax errors or undefined names
ruff --output-format=github --select=E9,F63,F7,F82 .
ruff check --output-format=github --select=E9,F63,F7,F82 .
# default set of ruff rules with GitHub Annotations
ruff check --output-format=github --exit-zero .
- name: Test with pytest
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@ exclude = [
".git",
]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"*.ipynb" = ["E402", "F821"]

0 comments on commit a4c6837

Please sign in to comment.