Skip to content

Commit 84310f3

Browse files
committed
ruff check
1 parent de2b4e5 commit 84310f3

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

pygit2/__init__.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,15 @@
2323
# the Free Software Foundation, 51 Franklin Street, Fifth Floor,
2424
# Boston, MA 02110-1301, USA.
2525

26+
# ruff: noqa: F401 F403 F405
27+
2628
# Standard Library
2729
import functools
28-
from os import PathLike
30+
import os
2931
import typing
3032

3133
# Low level API
3234
from ._pygit2 import *
33-
from ._pygit2 import _cache_enums
3435

3536
# High level API
3637
from . import enums
@@ -66,7 +67,7 @@
6667

6768

6869
def init_repository(
69-
path: typing.Union[str, bytes, PathLike, None],
70+
path: typing.Union[str, bytes, os.PathLike, None],
7071
bare: bool = False,
7172
flags: enums.RepositoryInitFlag = enums.RepositoryInitFlag.MKPATH,
7273
mode: typing.Union[

pygit2/ffi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@
2424
# Boston, MA 02110-1301, USA.
2525

2626
# Import from pygit2
27-
from ._libgit2 import ffi, lib as C
27+
from ._libgit2 import ffi, lib as C # noqa: F401

0 commit comments

Comments
 (0)