Skip to content

Commit

Permalink
added file specific ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
ESadek-MO committed Nov 21, 2024
1 parent c0eeb80 commit dd417ef
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,8 @@ ignore = [
# NOTE: This rule may cause conflicts when used with "ruff format".
"ISC001", # Implicitly concatenate string literals on one line.


# TODO: exceptions that still need investigating are below. Might be fixable, or might become permanent (above):
"ERA001", # Has commented out code
"EXE001", # Shebang is present but file is not executable

"INP001", # File `` is part of an implicit namespace package. Add an `__init__.py`.

]
Expand All @@ -161,19 +159,23 @@ ignore = [

[tool.ruff.lint.isort]
force-sort-within-sections = true
# Change to match specific package name:
known-first-party = ["iris"]
known-first-party = ["tephi"]

[tool.ruff.lint.per-file-ignores]
# All test scripts

# Change to match specific package path:
"lib/iris/tests/*.py" = [
"tephi/tests/*.py" = [
# https://docs.astral.sh/ruff/rules/undocumented-public-module/
"D100", # Missing docstring in public module
"D205", # 1 blank line required between summary line and description
"D401", # 1 First line of docstring should be in imperative mood
]
"setup.py" = [
"EXE001", # Shebang is present but file is not executable
]
"docs/source/conf.py" = [
"ERA001", # Has commented out code
]


[tool.ruff.lint.pydocstyle]
convention = "numpy"

0 comments on commit dd417ef

Please sign in to comment.