Skip to content

Commit

Permalink
Merge pull request #64 from ikalnytskyi/chore/ruff-format
Browse files Browse the repository at this point in the history
Use 'ruff format', instead of 'black'
  • Loading branch information
ikalnytskyi authored Nov 17, 2023
2 parents 0116c1b + d5f5f62 commit 9d3e03a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,16 @@ scripts.run = "python -m pytest --strict {args:-vv}"

[tool.hatch.envs.lint]
detached = true
dependencies = [
"black >= 23.9.1",
"ruff == 0.0.292",
]
scripts.run = ["ruff {args:.}", "black --check --diff {args:.}"]
dependencies = ["ruff == 0.1.6"]
scripts.run = ["ruff check {args:.}", "ruff format --check --diff {args:.}"]

[tool.hatch.envs.docs]
dependencies = ["sphinx", "sphinx_rtd_theme"]
scripts.run = "sphinx-build -W -b html docs docs/_build/"

[tool.ruff]
select = ["F", "E", "W", "I", "S", "FBT", "B", "C4", "DTZ", "T10", "ISC", "RET", "SLF", "RUF"]
ignore = ["S101", "B904"]
ignore = ["S101", "B904", "ISC001"]

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

0 comments on commit 9d3e03a

Please sign in to comment.