Skip to content

Instantly share code, notes, and snippets.

@maxpagels
Created October 3, 2025 08:49
Show Gist options
  • Select an option

  • Save maxpagels/1d3548684d649eb8dd3f5a7bf6ef99dd to your computer and use it in GitHub Desktop.

Select an option

Save maxpagels/1d3548684d649eb8dd3f5a7bf6ef99dd to your computer and use it in GitHub Desktop.
pyproject.toml
[tool.ruff]
# Target Python version
target-version = "py310"
# Enable linting rules (selective or all)
# See https://docs.astral.sh/ruff/rules/
extend-select = [
"E", # pycodestyle errors
"F", # pyflakes errors
"B", # flake8-bugbear warnings
"C", # McCabe complexity
"D", # docstring style (pydocstyle)
"I", # import conventions
]
# Ignore rules that are too noisy or conflict with formatting
ignore = [
"E203", # whitespace before ':', conflicts with black
]
# Maximum line length
line-length = 88
# Exclude directories
exclude = [
".git",
"__pycache__",
"build",
"dist",
".venv",
]
# Enable automatic formatting where safe
fix = true
# Treat all violations as errors in CI
# Uncomment for CI/CD strictness
# select = ["ALL"]
[tool.ruff.per-file-ignores]
# Allow unused imports in __init__.py (common pattern)
"__init__.py" = ["F401"]
# Ignore docstring warnings in tests
"tests/*" = ["D"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment