Ensure configuration files use tool-specific syntax and conventions while leveraging appropriate defaults. Be intentional about version constraints and conditionals in dependency specifications.
Ensure configuration files use tool-specific syntax and conventions while leveraging appropriate defaults. Be intentional about version constraints and conditionals in dependency specifications.
For tool configurations:
pyright: ignore [error_code]
instead of type: ignore [error_code]
).gitignore
files)For dependency specifications:
Example:
# Good: Using tool-specific configuration with appropriate defaults
[tool.ruff]
target-version = "py38"
line-length = 79
# Not duplicating default excludes that already cover .tox, .venv, etc.
# Good: Using specific type ignore syntax
# In Python file: # pyright: ignore [specificError]
# For whole file: # pyright: strict, reportUnusedVariable=none
# Good: Proper dependency versioning with conditionals
dependencies = [
"Deprecated >= 1.2.6",
"importlib-metadata >= 6.0, <= 8.2.0; python_version < '3.10'",
]
Enter the URL of a public GitHub repository