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 64adf48 commit 658fb4b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions fastenv/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
https://github.com/br3ndonland/fastenv
"""

try:
from .cloud.object_storage import ObjectStorageClient, ObjectStorageConfig
except ImportError: # pragma: no cover
Expand Down
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ requires-python = ">=3.8.1,<4"
[project.optional-dependencies]
checks = [
"mypy==1.9.0",
"ruff>=0.1,<0.2",
"ruff>=0.3,<0.4",
]
cloud = [
"httpx>=0.23,<1",
Expand Down Expand Up @@ -124,11 +124,13 @@ minversion = "6.0"
testpaths = ["tests"]

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

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

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

[tool.ruff.lint.isort]
known-first-party = ["fastenv", "tests"]

0 comments on commit 658fb4b

Please sign in to comment.