.pre-commit-config.yaml: adjust comments including black line length/args & use Python line length in .editorconfig

This commit is contained in:
Aminda Suomalainen 2023-10-17 07:46:07 +03:00
parent 6f189cba9e
commit f202af6bed
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 6 additions and 5 deletions

View File

@ -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]

View File

@ -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