From f202af6beda4797106b1ed8b129eaf0c946619ef Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Tue, 17 Oct 2023 07:46:07 +0300 Subject: [PATCH] .pre-commit-config.yaml: adjust comments including black line length/args & use Python line length in .editorconfig --- .editorconfig | 4 +--- .pre-commit-config.yaml | 7 +++++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.editorconfig b/.editorconfig index aee83500..35a406b0 100644 --- a/.editorconfig +++ b/.editorconfig @@ -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] diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ef620521..5e0d8529 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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