1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- [build-system]
- requires = ['setuptools>=42']
- build-backend = 'setuptools.build_meta'
- [tool.pytest.ini_options]
- markers = [
- "slow: marks tests as slow (deselect with '-m \"not slow\"')",
- ]
- testpaths = [
- "tests"
- ]
- xfail_strict = true
- [tool.ruff]
- # Exclude a variety of commonly ignored directories.
- exclude = [
- ".bzr",
- ".direnv",
- ".eggs",
- ".git",
- ".git-rewrite",
- ".hg",
- ".ipynb_checkpoints",
- ".mypy_cache",
- ".nox",
- ".pants.d",
- ".pyenv",
- ".pytest_cache",
- ".pytype",
- ".ruff_cache",
- ".svn",
- ".tox",
- ".venv",
- ".vscode",
- "__pypackages__",
- "_build",
- "buck-out",
- "build",
- "dist",
- "node_modules",
- "site-packages",
- "venv",
- ]
- # Same as Black.
- line-length = 88
- indent-width = 4
- # Assume Python 3.8
- target-version = "py38"
- [tool.ruff.lint]
- # Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
- # Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
- # McCabe complexity (`C901`) by default.
- select = ["F821", "F822", "E999", "E902", "F401", "F841"]
- ignore = []
- # Allow fix for all enabled rules (when `--fix`) is provided.
- fixable = ["ALL"]
- unfixable = []
- # Allow unused variables when underscore-prefixed.
- dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
- [tool.ruff.format]
- # Like Black, use double quotes for strings.
- quote-style = "double"
- # Like Black, indent with spaces, rather than tabs.
- indent-style = "space"
- # Like Black, respect magic trailing commas.
- skip-magic-trailing-comma = false
- # Like Black, automatically detect the appropriate line ending.
- line-ending = "auto"
|