Skip to content

Commit

Permalink
Update to Ruff 0.3
Browse files Browse the repository at this point in the history
Ruff 0.3 introduces the 2024.2 code style. Note that the `extend-select`
configuration setting moves from `tool.ruff` to `tool.ruff.lint`.

https://docs.astral.sh/ruff/settings/
https://docs.astral.sh/ruff/versioning/
https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md
  • Loading branch information
br3ndonland committed Apr 8, 2024
1 parent 3278036 commit 41b5a68
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ requires-python = ">=3.10,<4"
[project.optional-dependencies]
checks = [
"mypy==1.9.0",
"ruff>=0.1,<0.2",
"ruff>=0.3,<0.4",
]
docs = [
"mkdocs-material>=9,<10",
Expand Down Expand Up @@ -99,11 +99,13 @@ minversion = "6.0"
testpaths = ["tests"]

[tool.ruff]
extend-select = ["I"]
src = ["template_python", "tests"]

[tool.ruff.format]
docstring-code-format = true

[tool.ruff.lint]
extend-select = ["I"]

[tool.ruff.lint.isort]
known-first-party = ["template_python", "tests"]
1 change: 1 addition & 0 deletions template_python/examples/palindrome.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python3
"""Palindromes"""

import re


Expand Down

0 comments on commit 41b5a68

Please sign in to comment.