Skip to content

Commit

Permalink
Bump Ruff version to 0.2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ikalnytskyi committed Feb 3, 2024
1 parent e2f41bf commit 6cc8494
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,17 @@ scripts.run = "python -m pytest --strict-markers {args:-vv}"

[tool.hatch.envs.lint]
detached = true
dependencies = ["ruff == 0.1.*"]
dependencies = ["ruff == 0.2.*"]
scripts.run = ["ruff check {args:.}", "ruff format --check --diff {args:.}"]

[tool.hatch.envs.docs]
pre-install-commands = ["python -m pip install -r docs/requirements.txt"]
scripts.run = "sphinx-build -W -b html docs docs/_build/"

[tool.ruff]
line-length = 100

[tool.ruff.lint]
select = [
"F",
"E",
Expand All @@ -74,11 +77,10 @@ select = [
"RUF",
]
ignore = ["D107", "D203", "D213", "D401", "S101", "B904", "ISC001", "PT011", "SIM117"]
line-length = 100

[tool.ruff.isort]
[tool.ruff.lint.isort]
known-first-party = ["picobox"]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"examples/*" = ["I", "D", "T20"]
"tests/*" = ["D"]

0 comments on commit 6cc8494

Please sign in to comment.