Skip to content

Commit

Permalink
Update to newest Ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
leroyvn committed Aug 20, 2024
1 parent f2e3a0a commit 519662e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ testpaths = [
"docs"
]

[tool.ruff]
select = ["I", "E", "D"]
[tool.ruff.lint]
select = ["I", "E", "F"]

[tool.ruff.isort]
[tool.ruff.lint.isort]
relative-imports-order = "closest-to-furthest"

[tool.rye]
Expand Down
3 changes: 2 additions & 1 deletion src/pinttr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from ._next_gen import field

# Package metadata
from ._version import version as __version__
from ._version import version as __version__ # noqa: F401

# Other definitions
ib = attrib
Expand All @@ -30,4 +30,5 @@
"set_unit_registry",
"util",
"validators",
"__version__",
]
1 change: 1 addition & 0 deletions src/pinttr/_next_gen.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
APIs in the style of attrs's next-generation APIs.
"""

from typing import Union

import pint
Expand Down

0 comments on commit 519662e

Please sign in to comment.