Skip to content

Commit 7996bd1

Browse files
committed
update ruff exclusions in pyproject.toml: allow D301 for CLI files
1 parent bb79dd3 commit 7996bd1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ ignore = [
125125
"tests/*" = ["S101", "PLR2004"] # allow assertions and magic value comparison
126126
"tests/integration/test_segy_import_export_masked.py" = ["E501"] # allow long lines for readibility
127127
"docs/tutorials/*.ipynb" = ["S101"] # allow assertions
128-
"src/mdio/commands/*.py" = ["PLC0415"] # allow lazy import for CLI performance
128+
"src/mdio/commands/*.py" = ["PLC0415", "D301"] # allow delayed import and \b without raw strings
129129

130130
[tool.ruff.lint.flake8-annotations]
131131
mypy-init-return = true

src/mdio/commands/segy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def segy_export( # noqa: PLR0913
270270
\b
271271
Example (will error until implemented):
272272
- mdio segy export input.mdio output.segy --segy-spec segy_spec.json
273-
""" # noqa: D301
273+
"""
274274
if storage_input is not None:
275275
input_path = UPath(input_path, storage_options=storage_input)
276276

0 commit comments

Comments
 (0)