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

CI: use the latest black formatter version #355

Merged
merged 11 commits into from
Jul 12, 2024
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
Loading