# Install pre-commit hooks via # pre-commit install repos: - repo: https://github.com/psf/black rev: 22.10.0 hooks: - id: black - repo: https://github.com/asottile/pyupgrade rev: v3.2.2 hooks: - id: pyupgrade args: [--py38-plus] - repo: https://github.com/asottile/blacken-docs rev: v1.12.1 hooks: - id: blacken-docs - repo: https://github.com/pycqa/isort rev: 5.10.1 hooks: - 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]