diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..be74db4 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,59 @@ +# https://beta.ruff.rs/docs/configuration/#using-rufftoml +[tool.ruff] +select = ["F", "E", "W", "I001"] +line-length = 90 +show-fixes = false +target-version = "py311" +task-tags = ["TODO", "FIXME"] +exclude = [ + ".bzr", + ".direnv", + ".eggs", + ".git", + ".ruff_cache", + ".svn", + ".tox", + ".venv", + "__pypackages__", + "_build", + "buck-out", + "build", + "dist", + "node_modules", + "venv", +] + +[tool.ruff.isort] +known-first-party = [] +known-third-party = [] +section-order = [ + "future", + "standard-library", + "third-party", + "first-party", + "local-folder", +] +combine-as-imports = true +split-on-trailing-comma = false +lines-between-types = 1 + +# https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html +[tool.black] +line-length = 90 +target-version = ["py311"] +include = '\.pyi?$' +exclude = ''' +( + /( + \.direnv + | \.eggs + | \.git + | \.tox + | \.venv + | _build + | build + | dist + | venv + )/ +) +'''