Skip to content

Commit

Permalink
moved examples ruff config to examples folder, removed verbose from p…
Browse files Browse the repository at this point in the history
…re-commit hook
  • Loading branch information
lrlunin committed Nov 19, 2024
1 parent 36f3b7a commit 0600a53
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ repos:
- id: jupytext
name: convert .py to .ipynb
args: [--to, ipynb, --update]
verbose: true
files: '^examples/(.*\.py)$'
- repo: https://github.com/mwouts/jupytext
rev: v1.16.4
Expand Down
1 change: 1 addition & 0 deletions examples/ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ lint.extend-ignore = [
"E402", #module-import-not-at-top-of-file
"S101", #assert
"SIM115", #context manager for opening files
"ERA001", #commented out code
]
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,6 @@ inline-quotes = "single"
[tool.ruff.lint.pydocstyle]
convention = "numpy"

[tool.ruff.lint.per-file-ignores]
"examples/**.py" = ["ERA001"] # py:percent preamble handled as commented out code

[tool.ruff.format]
quote-style = "single"
skip-magic-trailing-comma = false
Expand Down

0 comments on commit 0600a53

Please sign in to comment.