diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-02-28 13:14:51 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-03-01 13:34:28 +0100 |
| commit | 32f224e359c68e70e3f9a230be0265dcd6677079 (patch) | |
| tree | f1f83e61d5f4888e3728c217b4c6c20441952914 /.pre-commit-config.yaml | |
| parent | 8d2ac000e43c1cfa3d331a1580525ead3d5f32d7 (diff) | |
[4.2.x] Refs #34140 -- Added configurations to run blacken-docs linter and adjusted docs.
This adds:
- GitHub actions,
- tox configuration,
- pre-commit hook, and
- makefile rules
to run blacken-docs linter.
Co-authored-by: David Smith <smithdc@gmail.com>
Backport of 6015bab80e28aef2669f6fac53423aa65f70cb08 from main
Diffstat (limited to '.pre-commit-config.yaml')
| -rw-r--r-- | .pre-commit-config.yaml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f12d7fc766..1d480fc1ab 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,6 +4,12 @@ repos: hooks: - id: black exclude: \.py-tpl$ + - repo: https://github.com/adamchainz/blacken-docs + rev: 1.13.0 + hooks: + - id: blacken-docs + additional_dependencies: + - black==23.1.0 - repo: https://github.com/PyCQA/isort rev: 5.12.0 hooks: |
