Skip to content

Commit

Permalink
Move ruff lint config to the lint section.
Browse files Browse the repository at this point in the history
  • Loading branch information
jg-rp committed Feb 28, 2024
1 parent 971a6d7 commit b2c114a
Showing 1 changed file with 36 additions and 33 deletions.
69 changes: 36 additions & 33 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,38 @@ warn_unreachable = true


[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".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]
select = [
"A",
"ARG",
Expand Down Expand Up @@ -134,52 +166,23 @@ select = [
"TID",
"YTT",
]

ignore = ["S105", "S101", "D107", "D105", "PLR0913", "SIM108"]

fixable = ["I"]
unfixable = []

# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".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

# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"

# Assume Python 3.10.
target-version = "py310"

[tool.ruff.isort]
[tool.ruff.lint.isort]
force-single-line = true

[tool.ruff.pydocstyle]
[tool.ruff.lint.pydocstyle]
convention = "google"


[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"jsonpath/__about__.py" = ["D100"]
"jsonpath/__init__.py" = ["D104"]
"tests/*" = ["D100", "D101", "D104", "D103"]

0 comments on commit b2c114a

Please sign in to comment.