Skip to content

Commit 92997c8

Browse files
committed
identify the rules we are ignoring
1 parent 1a41d3d commit 92997c8

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

pyproject.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ target-version = "py38"
8383
line-length = 105
8484

8585
ignore = [
86-
"F401",
87-
"E501",
88-
"E713",
86+
"F401", # module imported but unused
87+
"E501", # line too long
88+
"E713", # test for membership should be 'not in'
8989
]
9090

9191
exclude = [
@@ -94,13 +94,13 @@ exclude = [
9494

9595
[tool.ruff.per-file-ignores]
9696
"docs/conf.py" = [
97-
"A001",
97+
"A001", # variable is shadowing a python builtin
9898
]
9999
"gsw/_fixed_wrapped_ufuncs.py" = [
100-
"F403",
101-
"F405",
100+
"F403", #'from x import *' used; unable to detect undefined names
101+
"F405", # 'import' may be undefined, or defined from star imports
102102
]
103103

104104
"gsw/_utilities.py" = [
105-
"B904",
105+
"B904", # Within an ``except`` clause, raise exceptions with ``raise ... from err``
106106
]

0 commit comments

Comments
 (0)