Skip to content

Commit

Permalink
Upgrade pre-commit tools; Update black and isort to Python 3.8 profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
medmunds committed Aug 7, 2024
1 parent 66c677e commit ae6d730
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Applied black, doc8, isort, prettier
b4e22c63b38452386746fed19d5defe0797d76a0
# Upgraded black to 24.8
66c677e4ab2633b1f52198597251c47739ba7b93
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -126,4 +125,4 @@ max-line-length = 120
combine_as_imports = true
known_first_party = "anymail"
profile = "black"
py_version = "37"
py_version = "38"

0 comments on commit ae6d730

Please sign in to comment.