diff options
author | Jarrod Millman <jarrod.millman@gmail.com> | 2022-08-09 21:44:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-09 21:44:57 -0700 |
commit | b50be98dea148e5cca450a30cf1ae8a7669c2589 (patch) | |
tree | 41ee1f75b3e656248035e9bdf81f8aefe80d29d4 /.pre-commit-config.yaml | |
parent | 94a7ce096426462a040ad157cb2f86a07514b72b (diff) | |
download | networkx-b50be98dea148e5cca450a30cf1ae8a7669c2589.tar.gz |
Update precommit hooks (#5923)
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r-- | .pre-commit-config.yaml | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ca7a51af..07671dd1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,23 +2,29 @@ # pre-commit install repos: -- repo: https://github.com/psf/black + - repo: https://github.com/psf/black rev: 22.6.0 hooks: - - id: black -- repo: https://github.com/asottile/pyupgrade - rev: v2.34.0 + - id: black + - repo: https://github.com/asottile/pyupgrade + rev: v2.37.3 hooks: - - id: pyupgrade + - id: pyupgrade args: [--py38-plus] -- repo: https://github.com/asottile/blacken-docs + - repo: https://github.com/asottile/blacken-docs rev: v1.12.1 hooks: - - id: blacken-docs -- repo: https://github.com/pycqa/isort + - id: blacken-docs + - repo: https://github.com/pycqa/isort rev: 5.10.1 hooks: - - id: isort + - id: isort name: isort (python) args: ["--profile", "black", "--filter-files", "--skip", "__init__.py"] files: ^networkx/ + - repo: https://github.com/pre-commit/mirrors-prettier + rev: v2.7.1 + hooks: + - id: prettier + files: \.(html|md|yml|yaml) + args: [--prose-wrap=preserve] |