Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase the isort line length #255

Merged
merged 1 commit into from
Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ reportPrivateUsage = "none"
reportUnnecessaryTypeIgnoreComment = "warning"

[tool.ruff]
line-length = 88 # for import sorting
line-length = 100
select = [
"E", # pycodestyle
"F", # pyflakes
Expand Down
1 change: 1 addition & 0 deletions ranzen/torch/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class Subset(Generic[D]):
r"""
Subset of a dataset at specified indices.
"""

dataset: D
indices: Sequence[int]

Expand Down
10 changes: 1 addition & 9 deletions ranzen/types.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
from __future__ import annotations
from dataclasses import Field
from typing import (
Any,
ClassVar,
Protocol,
TypedDict,
TypeVar,
get_type_hints,
runtime_checkable,
)
from typing import Any, ClassVar, Protocol, TypedDict, TypeVar, get_type_hints, runtime_checkable
from typing_extensions import Self, TypeGuard

__all__ = ["Addable", "DataclassInstance", "Sized", "is_td_instance"]
Expand Down