Skip to content

Commit 820da4b

Browse files
authored
Update to Ruff 0.8 (#120)
1 parent 82ccbbc commit 820da4b

11 files changed

+344
-338
lines changed

Diff for: noxfile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ def type_check(s: Session):
3333

3434
@session(venv_backend="none")
3535
def format(s: Session):
36-
s.run("ruff", "check", ".", "--select", "I", "--fix")
36+
s.run("ruff", "check", ".", "--select", "I", "--select", "RUF022", "--fix")
3737
s.run("ruff", "format", ".")

Diff for: poetry.lock

+334-328
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pytest-cov = "*"
2929
pytest-timeout = "*"
3030

3131
# Lint
32-
ruff = "^0.6"
32+
ruff = "^0.8"
3333

3434
# Type checking
3535
mypy = "^1"

Diff for: src/parsita/metaclasses.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
__all__ = ["ForwardDeclaration", "fwd", "ParserContext"]
3+
__all__ = ["ForwardDeclaration", "ParserContext", "fwd"]
44

55
import builtins
66
import inspect

Diff for: src/parsita/parsers/_alternative.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__all__ = ["FirstAlternativeParser", "first", "LongestAlternativeParser", "longest"]
1+
__all__ = ["FirstAlternativeParser", "LongestAlternativeParser", "first", "longest"]
22

33
from typing import Generic, Optional, Sequence, Union, overload
44

Diff for: src/parsita/parsers/_repeated.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__all__ = ["RepeatedOnceParser", "rep1", "RepeatedParser", "rep"]
1+
__all__ = ["RepeatedOnceParser", "RepeatedParser", "rep", "rep1"]
22

33
from typing import Generic, Optional, Sequence, Union, overload
44

Diff for: src/parsita/parsers/_repeated_seperated.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__all__ = ["RepeatedSeparatedParser", "repsep", "RepeatedOnceSeparatedParser", "rep1sep"]
1+
__all__ = ["RepeatedOnceSeparatedParser", "RepeatedSeparatedParser", "rep1sep", "repsep"]
22

33
from typing import Generic, Optional, Sequence, Union, overload
44

Diff for: src/parsita/parsers/_sequential.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__all__ = ["SequentialParser", "DiscardLeftParser", "DiscardRightParser"]
1+
__all__ = ["DiscardLeftParser", "DiscardRightParser", "SequentialParser"]
22

33
from typing import Any, Generic, Optional, Sequence
44

Diff for: src/parsita/parsers/_success.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__all__ = ["SuccessParser", "success", "FailureParser", "failure"]
1+
__all__ = ["FailureParser", "SuccessParser", "failure", "success"]
22

33
from typing import Generic, NoReturn, TypeVar
44

Diff for: src/parsita/state/_result.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__all__ = ["Result", "Success", "Failure"]
1+
__all__ = ["Failure", "Result", "Success"]
22

33
from typing import TypeVar
44

Diff for: src/parsita/state/_state.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
__all__ = ["State", "Continue", "Input", "Output", "Element"]
3+
__all__ = ["Continue", "Element", "Input", "Output", "State"]
44

55
from dataclasses import dataclass
66
from typing import TYPE_CHECKING, Any, Generic, Optional, TypeVar

0 commit comments

Comments
 (0)