Skip to content

Instantly share code, notes, and snippets.

@simicd
Created January 15, 2024 15:59
Show Gist options
  • Save simicd/3ca994364bd3b2ab495f846ae371395a to your computer and use it in GitHub Desktop.
Save simicd/3ca994364bd3b2ab495f846ae371395a to your computer and use it in GitHub Desktop.
[tool. Ruff]
line-length = 88
target-version = "py310"
# See https://beta.ruff.rs/docs/rules/
select = [
"F", # Pyflakes
"E", # pycodestyle (Errors)
"W", # pycodestyle (Warnings)
"I", # isort
"PL", # Pylint
"N", # pep8-naming
"D", # pydocstyle
"UP", # pyupgrade
"ANN", # flake8-annotations
"S", # flake8-bandit
"B", # flake8-bugbear
"A", # flake8-builtins
"C4", # flake8-comprehensions
"EM", # flake8-errmsg
"ISC", # flake8-implicit-str-concat
"ICN", # flake8-import-conventions
"G", # flake8-logging-format
"PIE", # flake8-pie
"T20", # flake8-print
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"SLF", # flake8-self
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"TCH", # flake8-type-checking
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"TD", # flake8-todos
"RUF", # Ruff-specific rules
]
ignore = [
"PLR0913", # Too many arguments
"PLR2004", # Magic value
"S101", # Use of assert detected
"E501", # Line too long
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
# The following rules are skipped because they might interfere with Ruff's formatter
# See: https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"W191", # Indentation contains tabs
"E111", # Indentation is not a multiple of four
"E114", # Indentation is not a multiple of four (comment)
"E117", # Over-indented
"D206", # Indent with spaces
"D300", # Triple single quotes
"Q000", # Bad quotes inline-string
"Q001", # Bad quotes multiline-string
"Q002", # Bad quotes docstring
"Q003", # Avoidable escaped quote
"COM812", # Missing trailing comma
"COM819", # Prohibited trailing comma
"ISC001", # Single-line implicit string concatenation
"ISC002", # Multi-line implicit string concatenation
]
[tool.ruff.pydocstyle]
convention = "google"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment