Skip to content

Commit

Permalink
DEV: Upgrade black settings through precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
scottclowe committed Sep 13, 2024
1 parent a833c32 commit dbfce02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
16 changes: 2 additions & 14 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,14 @@ repos:
hooks:
- id: black
args:
- "--target-version=py27"
- "--target-version=py35"
- "--target-version=py36"
- "--target-version=py37"
- "--target-version=py38"
- "--target-version=py39"
- "--target-version=py310"
types: [python]

- repo: https://github.com/asottile/blacken-docs
rev: 1.18.0
hooks:
- id: blacken-docs
additional_dependencies: [black==21.12b0]
additional_dependencies: [black==24.8.0]

- repo: https://github.com/kynan/nbstripout
rev: 0.7.1
Expand All @@ -42,14 +36,8 @@ repos:
- id: nbqa-black
args:
- "--nbqa-mutate"
- "--target-version=py27"
- "--target-version=py35"
- "--target-version=py36"
- "--target-version=py37"
- "--target-version=py38"
- "--target-version=py39"
- "--target-version=py310"
additional_dependencies: [black==21.12b0]
additional_dependencies: [black==24.8.0]
- id: nbqa-flake8

- repo: https://github.com/pre-commit/pygrep-hooks
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
black==21.12b0; python_version>='3.6'
black==24.8.0; python_version>='3.6'
pre-commit

0 comments on commit dbfce02

Please sign in to comment.