Skip to content

Commit

Permalink
fix skip
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Feb 19, 2024
1 parent 13e45d3 commit 699f176
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
target-version = "py312"
line-length = 120
# Skipping b/c These notebooks mix R and Python and
# will return false positive for "F821 Undefined name.""
exclude = [
"2017-11-30-rerddap.ipynb",
"2018-02-20-obis.ipynb"
]
select = [
lint.select = [
"F", # flakes
"I", # import sorting
"U", # upgrade
Expand All @@ -15,3 +9,14 @@ select = [
lint.ignore = [
"E402", # Module level import not at top of file
]

# Skipping b/c These notebooks mix R and Python
# NB: nbqa-ruff acts on converted .py so we cannot glob .ipynb :-/
# https://github.com/nbQA-dev/nbQA/issues/823
[lint.extend-per-file-ignores]
"jupyterbook/content/code_gallery/data_access_notebooks/2017-11-30-rerddap*" = [
"F821", # Undefined name
]
"jupyterbook/content/code_gallery/data_access_notebooks/2018-02-20-obis*" = [
"F821", # Undefined name
]

0 comments on commit 699f176

Please sign in to comment.