Skip to content

Commit

Permalink
Fix all ruff bugs for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
vnmabus committed Jan 19, 2024
1 parent 008e845 commit f07ee27
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ ignore = [
"S310", # URLs in examples have been validated
"T201", # print allowed in examples
]
"plot_cran.py" = [
"SIM117", # multiple with necessary for now
]

[tool.ruff.isort]
combine-as-imports = true
Expand Down
10 changes: 5 additions & 5 deletions rdata/parser/_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __truediv__(
) -> Traversable:
pass

def open( # noqa: A003
def open(
self,
mode: str = "r",
) -> AcceptableFile:
Expand Down Expand Up @@ -200,7 +200,7 @@ class CharFlags(enum.IntFlag):
class RVersions:
"""R versions."""

format: int # noqa: A003
format: int
serialized: int
minimum: int

Expand All @@ -221,8 +221,8 @@ class RExtraInfo:
class RObjectInfo:
"""Internal attributes of a R object."""

type: RObjectType # noqa: A003
object: bool # noqa: A003
type: RObjectType
object: bool
attributes: bool
tag: bool
gp: int
Expand Down Expand Up @@ -343,7 +343,7 @@ class RData:

versions: RVersions
extra: RExtraInfo
object: RObject # noqa: A003
object: RObject

def __str__(self) -> str:
return (
Expand Down

0 comments on commit f07ee27

Please sign in to comment.