Skip to content

Commit

Permalink
add: ruff settings
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-burashnikov committed Oct 22, 2023
1 parent cc272ce commit 092090e
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,49 +16,9 @@ black = "^23.10.0"
ruff = "^0.1.1"

[tool.ruff]
# Exclude a variety of commonly ignored directories.
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",
]

# Same as Black.
line-length = 88

# Assume Python 3.10
target-version = "py310"

[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]+?))$"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

0 comments on commit 092090e

Please sign in to comment.