Created
October 3, 2025 08:49
-
-
Save maxpagels/1d3548684d649eb8dd3f5a7bf6ef99dd to your computer and use it in GitHub Desktop.
pyproject.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [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