diff options
| author | 2024-03-04 04:03:36 +0800 | |
|---|---|---|
| committer | 2024-03-04 04:03:36 +0800 | |
| commit | 1dec684f34ee7d52737cd33fa0a37a0de011894e (patch) | |
| tree | 299f25255852c58c0c6dfe94d26c51c381ea6d9f /pyproject.toml | |
| parent | 861ec02a05c1bcd22d878d2f29b615dc553c3a69 (diff) | |
| download | HydroRoll-1dec684f34ee7d52737cd33fa0a37a0de011894e.tar.gz HydroRoll-1dec684f34ee7d52737cd33fa0a37a0de011894e.zip | |
chore(project): sync cargo and pyproject
Diffstat (limited to 'pyproject.toml')
| -rw-r--r-- | pyproject.toml | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/pyproject.toml b/pyproject.toml index 1a30a46..fa76a64 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,4 +55,66 @@ dev = [ "pip>=24.0", ] +[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. +select = ["E4", "E7", "E9", "F"] +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" |
