Skip to content

Commit

Permalink
style(black): set target version in project config
Browse files Browse the repository at this point in the history
  • Loading branch information
matfax committed Jul 13, 2023
1 parent 1d102a1 commit 93d4570
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ jobs:
- name: check python formatting using black
uses: rickstaa/[email protected]
id: action_black
with:
black_args: "--target-version py38 ."
- name: creating pull request
if: steps.action_black.outputs.is_formatted == 'true' && github.head_ref == ''
uses: peter-evans/[email protected]
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ sphinx = "~6.2.1"
sphinx-rtd-theme = "~1.2.2"
m2r2 = "~0.3.2"

[tool.black]
target-version = ['py38']

[build-system]
requires = ["poetry>=1.2"]
build-backend = "poetry.masonry.api"

0 comments on commit 93d4570

Please sign in to comment.