Skip to content

Commit

Permalink
chore: reformat using Black 2024 style
Browse files Browse the repository at this point in the history
  • Loading branch information
layday authored and gaborbernat committed Mar 11, 2024
1 parent 08cdb76 commit 24c513d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/build/_ctx.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@


class _Logger(typing.Protocol): # pragma: no cover
def __call__(self, message: str, *, origin: tuple[str, ...] | None = None) -> None:
...
def __call__(self, message: str, *, origin: tuple[str, ...] | None = None) -> None: ...


_package_name = __spec__.parent # type: ignore[name-defined]
Expand Down
9 changes: 3 additions & 6 deletions src/build/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,12 @@ class _EnvBackend(typing.Protocol): # pragma: no cover
python_executable: str
scripts_dir: str

def create(self, path: str) -> None:
...
def create(self, path: str) -> None: ...

def install_requirements(self, requirements: Collection[str]) -> None:
...
def install_requirements(self, requirements: Collection[str]) -> None: ...

@property
def display_name(self) -> str:
...
def display_name(self) -> str: ...


class _PipBackend(_EnvBackend):
Expand Down
1 change: 1 addition & 0 deletions tests/packages/legacy/legacy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
"""
legacy - Example legacy package
"""

__version__ = '1.0.0'
1 change: 1 addition & 0 deletions tests/packages/test-flit/test_flit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
"""
test_flit - Example flit package
"""

__version__ = '1.0.0'

0 comments on commit 24c513d

Please sign in to comment.