switch to ruff

This commit is contained in:
ali asaria
2025-02-04 14:01:00 -05:00
parent c264dc2f3c
commit c302951e2a
2 changed files with 34 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{ {
"[python]": { "[python]": {
"editor.defaultFormatter": "ms-python.autopep8", "editor.defaultFormatter": "charliermarsh.ruff",
"editor.formatOnSave": true "editor.formatOnSave": true
}, },
"python.testing.pytestArgs": ["test"], "python.testing.pytestArgs": ["test"],

33
ruff.toml Normal file
View File

@@ -0,0 +1,33 @@
# 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 = 120
indent-width = 4