Upgrade pre-commit tools; Update black and isort to Python 3.8 profiles

This commit is contained in:
Mike Edmunds
2024-08-07 13:27:40 -07:00
parent 66c677e4ab
commit ae6d730c46
3 changed files with 8 additions and 7 deletions

View File

@@ -1,2 +1,4 @@
# Applied black, doc8, isort, prettier # Applied black, doc8, isort, prettier
b4e22c63b38452386746fed19d5defe0797d76a0 b4e22c63b38452386746fed19d5defe0797d76a0
# Upgraded black to 24.8
66c677e4ab2633b1f52198597251c47739ba7b93

View File

@@ -1,14 +1,14 @@
repos: repos:
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 23.1.0 rev: 24.8.0
hooks: hooks:
- id: black - id: black
- repo: https://github.com/pycqa/isort - repo: https://github.com/pycqa/isort
rev: 5.12.0 rev: 5.13.2
hooks: hooks:
- id: isort - id: isort
- repo: https://github.com/pycqa/flake8 - repo: https://github.com/pycqa/flake8
rev: 6.1.0 rev: 7.1.1
hooks: hooks:
- id: flake8 - id: flake8
- repo: https://github.com/pycqa/doc8 - repo: https://github.com/pycqa/doc8
@@ -37,7 +37,7 @@ repos:
- id: rst-directive-colons - id: rst-directive-colons
- id: rst-inline-touching-normal - id: rst-inline-touching-normal
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0 rev: v4.6.0
hooks: hooks:
- id: check-json - id: check-json
- id: check-toml - id: check-toml

View File

@@ -112,8 +112,7 @@ path = "anymail/_version.py"
[tool.black] [tool.black]
force-exclude = '^/tests/test_settings/settings_.*\.py' force-exclude = '^/tests/test_settings/settings_.*\.py'
max-line-length = 88 target-version = ["py38"]
target-version = ["py37"]
[tool.doc8] [tool.doc8]
# for now, Anymail allows longer lines in docs source: # for now, Anymail allows longer lines in docs source:
@@ -126,4 +125,4 @@ max-line-length = 120
combine_as_imports = true combine_as_imports = true
known_first_party = "anymail" known_first_party = "anymail"
profile = "black" profile = "black"
py_version = "37" py_version = "38"