Skip to content

Commit d8763b0

Browse files
Merge pull request #71 from Deepak8858/fix/issue-67-ruff-warnings
fix: address ruff linter warnings
2 parents 2adb545 + 0215327 commit d8763b0

6 files changed

Lines changed: 12 additions & 12 deletions

File tree

‎ics_query/__init__.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
from .version import __version__, __version_tuple__, version, version_tuple
1818

1919
__all__ = [
20-
"cli",
21-
"app",
2220
"__version__",
23-
"version",
2421
"__version_tuple__",
25-
"version_tuple",
22+
"app",
23+
"cli",
2624
"main",
25+
"version",
26+
"version_tuple",
2727
]

‎ics_query/cli.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from __future__ import annotations
1919

2020
import functools
21-
import os # noqa: TCH003
21+
import os # noqa: TC003
2222
import sys
2323
import typing as t
2424
import zoneinfo
@@ -788,4 +788,4 @@ def main():
788788
cli(auto_envvar_prefix=ENV_PREFIX)
789789

790790

791-
__all__ = ["main", "ENV_PREFIX", "cli"]
791+
__all__ = ["ENV_PREFIX", "cli", "main"]

‎ics_query/parse.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ def to_time_and_delta(dt: str) -> DateAndDelta:
8484
return datetime.timedelta(**kw)
8585

8686

87-
__all__ = ["to_time", "Date", "to_time_and_delta", "DateAndDelta"]
87+
__all__ = ["Date", "DateAndDelta", "to_time", "to_time_and_delta"]

‎ics_query/tests/conftest.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def io_testcase(request: pytest.FixtureRequest) -> IOTestCase:
120120
return IOTestCase.from_path(path, binary)
121121

122122

123-
@pytest.fixture()
123+
@pytest.fixture
124124
def run(request: pytest.FixtureRequest) -> Callable[..., ExampleRun]:
125125
"""Return a runner function."""
126126

@@ -131,4 +131,4 @@ def run(*args, **kw):
131131
return run
132132

133133

134-
__all__ = ["IOTestCase", "ExampleRun"]
134+
__all__ = ["ExampleRun", "IOTestCase"]

‎ics_query/tests/test_issue_40_valid_calendar.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from ics_query.tests.conftest import ExampleRun
1818

1919

20-
@pytest.fixture()
20+
@pytest.fixture
2121
def calendar(run) -> ExampleRun:
2222
"""Return a calendar that is wrapped around the event."""
2323
return run("first", "--as-calendar", "one-event-without-timezone.ics").calendar

‎ics_query/version.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646

4747
__all__ = [
4848
"__version__",
49-
"version",
5049
"__version_tuple__",
51-
"version_tuple",
5250
"cli_version",
51+
"version",
52+
"version_tuple",
5353
]

0 commit comments

Comments
 (0)