Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions template/.config/ruff.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Support Python 3.12+
# Support Python 3.12+.
target-version = "py312"

# In addition to the default formatters/linters, add these as well.
Expand All @@ -10,19 +10,25 @@ extend-select = [
"D",
# Add isort to list.
"I",
# Check for unused arguments
# Check for unused arguments.
"ARG",
]
# Ignore missing docstring at the top of files
ignore = ["D100"]
ignore = [
# Ignore missing docstring at the top of files.
"D100",
# Use `Optional[]` typing.
"UP045",
]

[lint.pydocstyle]
convention = "google"

[format]
docstring-code-format = true

[lint.per-file-ignores]
# ignore "Module imported but unused" error in all init files
# Ignore "Module imported but unused" error in all init files.
"__init__.py" = ["F401"]
"**/tests/*" = ["D"]
# Don't require docstrings and ignore unused arguments in test files.
# Must move up from the `.config/` directory to the root of the project.
"../**/tests/*" = ["D", "ARG"]

[format]
docstring-code-format = true
Loading