You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pyproject.toml 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. [tool.ruff]
  2. # Exclude a variety of commonly ignored directories.
  3. exclude = [
  4. ".bzr",
  5. ".direnv",
  6. ".eggs",
  7. ".git",
  8. ".git-rewrite",
  9. ".hg",
  10. ".ipynb_checkpoints",
  11. ".mypy_cache",
  12. ".nox",
  13. ".pants.d",
  14. ".pyenv",
  15. ".pytest_cache",
  16. ".pytype",
  17. ".ruff_cache",
  18. ".svn",
  19. ".tox",
  20. ".venv",
  21. ".vscode",
  22. "__pypackages__",
  23. "_build",
  24. "buck-out",
  25. "build",
  26. "dist",
  27. "node_modules",
  28. "site-packages",
  29. "venv",
  30. ]
  31. respect-gitignore = true
  32. # Black line length is 88
  33. line-length = 100
  34. indent-width = 4
  35. [tool.ruff.lint]
  36. # Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
  37. # Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
  38. # McCabe complexity (`C901`) by default.
  39. select = ["ALL"]
  40. ignore = ["ANN002", "ANN003", "RET504", "ERA001", "E741", "N812", "D", "PLR0913", "T201", "FBT001", "FBT002", "PLW0602", "PLW0603", "PTH", "C901", "PLR2004", "UP006", "UP035", "G004", "N803", "N806", "ARG002"]
  41. [tool.ruff.lint.per-file-ignores]
  42. "__init__.py" = ["E", "F", "I", "N"]
  43. # Allow fix for all enabled rules (when `--fix`) is provided.
  44. fixable = ["ALL"]
  45. unfixable = []
  46. # Allow unused variables when underscore-prefixed.
  47. #dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
  48. [tool.ruff.format]
  49. # Like Black, use double quotes for strings.
  50. quote-style = "double"
  51. # Like Black, indent with spaces, rather than tabs.
  52. indent-style = "space"
  53. # Like Black, respect magic trailing commas.
  54. skip-magic-trailing-comma = false
  55. # Like Black, automatically detect the appropriate line ending.
  56. line-ending = "auto"
  57. # Enable auto-formatting of code examples in docstrings. Markdown,
  58. # reStructuredText code/literal blocks and doctests are all supported.
  59. #
  60. # This is currently disabled by default, but it is planned for this
  61. # to be opt-out in the future.
  62. docstring-code-format = false
  63. # Set the line length limit used when formatting code snippets in
  64. # docstrings.
  65. #
  66. # This only has an effect when the `docstring-code-format` setting is
  67. # enabled.
  68. docstring-code-line-length = "dynamic"
  69. [tool.pyright]
  70. typeCheckingMode = "off"