Skip to content

Commit

Permalink
Ignore I002 for code-examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jleibs committed Jun 16, 2023
1 parent 2f84f80 commit dc3c4b1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rerun_py/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ extend-exclude = [
# Copied from https://github.com/colmap/colmap/blob/bf3e19140f491c3042bfd85b7192ef7d249808ec/scripts/python/read_write_model.py
"examples/python/structure_from_motion/read_write_model.py",
]

ignore = [
# Missing docstring in public function - TODO(emilk): enable for SDK but not for examples
"D1",
Expand All @@ -79,6 +80,7 @@ ignore = [
"D415",
"D416",
]

line-length = 120
select = [
"D", # pydocstyle codes https://www.pydocstyle.org/en/latest/error_codes.html
Expand All @@ -89,6 +91,9 @@ select = [
"W", # pycodestyle warning codes: https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes
]

[tool.ruff.per-file-ignores]
"docs/code-examples/*" = ["I002"]

[tool.ruff.flake8-tidy-imports]
ban-relative-imports = "all"

Expand Down

0 comments on commit dc3c4b1

Please sign in to comment.