mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-08-20 21:37:20 +02:00
Compare commits
2 Commits
1125b69a9e
...
08c6456e24
Author | SHA1 | Date | |
---|---|---|---|
08c6456e24 | |||
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.
|
@ -1 +1 @@
|
|||||||
Subproject commit 891a61bcf594b0e159a1d376a727b78b926de16e
|
Subproject commit d01ae7bf852c12e7039f889dcd0ac76fd2f5d9af
|
Loading…
x
Reference in New Issue
Block a user