From ae6d730c461289fe5b3b8d1915368c51e44360bd Mon Sep 17 00:00:00 2001 From: Mike Edmunds Date: Wed, 7 Aug 2024 13:27:40 -0700 Subject: [PATCH] Upgrade pre-commit tools; Update black and isort to Python 3.8 profiles --- .git-blame-ignore-revs | 2 ++ .pre-commit-config.yaml | 8 ++++---- pyproject.toml | 5 ++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index 49c0655..d26c331 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -1,2 +1,4 @@ # Applied black, doc8, isort, prettier b4e22c63b38452386746fed19d5defe0797d76a0 +# Upgraded black to 24.8 +66c677e4ab2633b1f52198597251c47739ba7b93 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 60c729c..cf1c03a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,14 +1,14 @@ repos: - repo: https://github.com/psf/black - rev: 23.1.0 + rev: 24.8.0 hooks: - id: black - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort - repo: https://github.com/pycqa/flake8 - rev: 6.1.0 + rev: 7.1.1 hooks: - id: flake8 - repo: https://github.com/pycqa/doc8 @@ -37,7 +37,7 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.6.0 hooks: - id: check-json - id: check-toml diff --git a/pyproject.toml b/pyproject.toml index 81c69bc..af1e155 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -112,8 +112,7 @@ path = "anymail/_version.py" [tool.black] force-exclude = '^/tests/test_settings/settings_.*\.py' -max-line-length = 88 -target-version = ["py37"] +target-version = ["py38"] [tool.doc8] # for now, Anymail allows longer lines in docs source: @@ -126,4 +125,4 @@ max-line-length = 120 combine_as_imports = true known_first_party = "anymail" profile = "black" -py_version = "37" +py_version = "38"