mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-29 06:39:22 +01:00
move black configuration from .pre-commit-config.yaml to pyproject.toml
This commit is contained in:
parent
1125b69a9e
commit
3788a5c581
@ -86,7 +86,8 @@ repos:
|
|||||||
rev: 23.10.0
|
rev: 23.10.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
args: ["--line-length", "79", "--target-version", "py310"]
|
#Refer to pyproject.toml
|
||||||
|
#args: ["--line-length", "79", "--target-version", "py310"]
|
||||||
#- id: black-jupyter
|
#- id: black-jupyter
|
||||||
- repo: https://github.com/scop/pre-commit-shfmt
|
- repo: https://github.com/scop/pre-commit-shfmt
|
||||||
rev: v3.7.0-1
|
rev: v3.7.0-1
|
||||||
|
22
pyproject.toml
Normal file
22
pyproject.toml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
# When changing this file, read also .pre-commit-config.yaml
|
||||||
|
|
||||||
|
[tool.black]
|
||||||
|
line-length = 79
|
||||||
|
target-version = ['py310']
|
||||||
|
|
||||||
|
[tool.mypy]
|
||||||
|
#python-executable = 'pypy3'
|
||||||
|
python-version = 3.10
|
||||||
|
|
||||||
|
# https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html
|
||||||
|
|
||||||
|
# No need to have it uncommented since 79 is the standard.
|
||||||
|
#[tool.pylint.format]
|
||||||
|
#max-line-length = 79
|
||||||
|
|
||||||
|
# Not actually used here, see .pre-commit-config.yaml for reorder-python-imports
|
||||||
|
# that does the same thing.
|
||||||
|
#[tool.isort]
|
||||||
|
#profile = "black"
|
||||||
|
|
||||||
|
# copy-pasted comments end.
|
Loading…
Reference in New Issue
Block a user