Skip to content

Commit

Permalink
Use ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrist committed Oct 24, 2023
1 parent 31b3fb3 commit 60d4755
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
9 changes: 4 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.275
rev: v0.1.2
hooks:
- id: ruff
language_version: python3

- repo: https://github.com/psf/black
rev: 22.10.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.2
hooks:
- id: black
language_version: python3
- id: ruff-format

- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ exclude = [
ignore = [
"E721", # Comparing types instead of isinstance
"E741", # Ambiguous variable names
"E501", # Conflicts with ruff format
"W191", # Conflicts with ruff format
]
select = [
"E", # PEP8 Errors
"F", # Pyflakes
"W", # PEP8 Warnings
]
line-length = 100
line-length = 88

[tool.ruff.isort]
combine-as-imports = true
3 changes: 1 addition & 2 deletions tests/test_inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ class Example(msgspec.Struct, **kw):
default_factory=factory,
),
),
**kw
**kw,
)
assert mi.type_info(Example) == sol

Expand Down Expand Up @@ -766,7 +766,6 @@ def test_metadata():


def test_inspect_with_unhashable_metadata():

typ = Annotated[int, {"unhashable"}]

assert mi.type_info(typ) == mi.IntType()
Expand Down

0 comments on commit 60d4755

Please sign in to comment.