mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-12-22 10:42:55 +01:00
.pre-commit-config.yaml: adjust comments including black line length/args & use Python line length in .editorconfig
This commit is contained in:
parent
6f189cba9e
commit
f202af6bed
@ -58,9 +58,7 @@ max_line_length = 80
|
||||
[*.py]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
#max_line_length = 79
|
||||
# https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#line-length
|
||||
max_line_length = 88
|
||||
max_line_length = 79
|
||||
|
||||
# Ruby
|
||||
#[*.rb]
|
||||
|
@ -67,7 +67,7 @@ repos:
|
||||
|
||||
# Python type checking
|
||||
# - repo: https://github.com/pre-commit/mirrors-mypy
|
||||
# rev: "v1.3.0"
|
||||
# rev: "v1.6.0"
|
||||
# hooks:
|
||||
# - id: mypy
|
||||
|
||||
@ -75,11 +75,13 @@ repos:
|
||||
# rev: v3.15.0
|
||||
# hooks:
|
||||
# - id: pyupgrade
|
||||
# args: [--py311-plus]
|
||||
|
||||
# - repo: https://github.com/asottile/reorder-python-imports
|
||||
# rev: v3.12.0
|
||||
# hooks:
|
||||
# - id: reorder-python-imports
|
||||
# args: [--py311-plus]
|
||||
|
||||
# - repo: https://github.com/asottile/add-trailing-comma
|
||||
# rev: v3.1.0
|
||||
@ -130,9 +132,10 @@ repos:
|
||||
|
||||
# Black, opinionated Python code formatter
|
||||
# - repo: https://github.com/psf/black
|
||||
# rev: 23.3.0
|
||||
# rev: 23.9.1
|
||||
# hooks:
|
||||
# - id: black
|
||||
# args: ["--line-length", "79", "--target-version", "py311"]
|
||||
#- id: black-jupyter
|
||||
|
||||
# Shell code formatter, requires Go
|
||||
|
Loading…
Reference in New Issue
Block a user