Skip to content

Commit

Permalink
remove pyproject.toml, add ruff.toml (#9929)
Browse files Browse the repository at this point in the history
  • Loading branch information
cneill authored Apr 16, 2024
1 parent 5193483 commit 17724b9
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 43 deletions.
43 changes: 0 additions & 43 deletions pyproject.toml

This file was deleted.

43 changes: 43 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Same as Black.
line-length = 120

exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
# Not for the dojo specific stuff
"dojo/db_migrations"
]

[lint]
# Enable the pycodestyle (`E`) and Pyflakes (`F`) rules by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
select = ["E", "F", "FLY", "TRY004", "TRY2"]
ignore = ["E501", "E722", "F821"]

# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []

preview = true

per-file-ignores = {}

0 comments on commit 17724b9

Please sign in to comment.