Skip to content

Commit

Permalink
CI: use the latest black formatter version (bloomberg#355)
Browse files Browse the repository at this point in the history
* CI: use the latest black formatter version

* CI: install python3.12 via action

Signed-off-by: Evgeny Malygin <emalygin@bloomberg.net>
  • Loading branch information
678098 authored and alexander-e1off committed Oct 24, 2024
1 parent fbf1c05 commit 84652f7
Show file tree
Hide file tree
Showing 3 changed files with 244 additions and 425 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/formatting-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: black style check
run: |
sudo apt-get install black
pip3 install git+https://github.com/psf/black
black .
git diff -q | tee format_diff.txt
if [ -s format_diff.txt ]; then exit 1; fi
20 changes: 8 additions & 12 deletions src/python/blazingmq/dev/configurator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,32 +355,28 @@ class Site(abc.ABC):
configurator: "Configurator"

@abc.abstractmethod
def __str__(self) -> str:
...
def __str__(self) -> str: ...

@abc.abstractmethod
def install(self, from_path: Union[str, Path], to_path: Union[str, Path]) -> None:
...
def install(
self, from_path: Union[str, Path], to_path: Union[str, Path]
) -> None: ...

@abc.abstractmethod
def create_file(self, path: Union[str, Path], content: str, mode=None) -> None:
...
def create_file(self, path: Union[str, Path], content: str, mode=None) -> None: ...

@abc.abstractmethod
def mkdir(self, path: Union[str, Path]) -> None:
...
def mkdir(self, path: Union[str, Path]) -> None: ...

@abc.abstractmethod
def rmdir(self, path: Union[str, Path]) -> None:
...
def rmdir(self, path: Union[str, Path]) -> None: ...

@abc.abstractmethod
def create_json_file(
self,
path: Union[str, Path],
content,
) -> None:
...
) -> None: ...


def _cluster_definition_partial_prototype(partition_config: mqbcfg.PartitionConfig):
Expand Down
Loading

0 comments on commit 84652f7

Please sign in to comment.