From b50be98dea148e5cca450a30cf1ae8a7669c2589 Mon Sep 17 00:00:00 2001 From: Jarrod Millman Date: Tue, 9 Aug 2022 21:44:57 -0700 Subject: Update precommit hooks (#5923) --- .pre-commit-config.yaml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to '.pre-commit-config.yaml') 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] -- cgit v1.2.1