Skip to content

Commit

Permalink
updating black due to introduced bug on older versions (#71)
Browse files Browse the repository at this point in the history
* updating black due to introduced bug on older versions

* fix precommit black version
  • Loading branch information
bjornaer authored Mar 30, 2022
1 parent 97bfb17 commit 48b3f3b
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/prod-wf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
- uses: actions/checkout@v2
- uses: psf/black@stable
with:
version: 21.12b0
version: 22.3.0

test:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/psf/black
rev: 22.1.0
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
Expand Down
2 changes: 1 addition & 1 deletion examples/basic_maths/basic_maths.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

@pipeline_function
def square(a: float) -> float:
return a ** 2
return a**2


@pipeline_function
Expand Down
42 changes: 30 additions & 12 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pydantic = "^1.8.2"
requests = "^2.26.0"
pyhumps = "^3.0.2"
pytest = "^6.2.5"
black = "^21.12b0"
black = "^22.3.0"
pre-commit = "^2.16.0"
flake8 = "^4.0.1"
isort = "^5.10.1"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pipeline_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def add(f_1: float, f_2: float) -> float:

@pipeline_function
def square(f_1: float) -> float:
return f_1 ** 2
return f_1**2

with Pipeline("test") as my_pipeline:
in_1 = Variable(float, is_input=True)
Expand Down

0 comments on commit 48b3f3b

Please sign in to comment.