Merge ~lgp171188/launchpad:pin-black-version-used-by-blackdoc into launchpad:master

Proposed by Guruprasad
Status: Merged
Approved by: Guruprasad
Approved revision: 745988aedd48b6936f731dee6510f0a8e4ff7fa4
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~lgp171188/launchpad:pin-black-version-used-by-blackdoc
Merge into: launchpad:master
Diff against target: 24 lines (+6/-0)
1 file modified
.pre-commit-config.yaml (+6/-0)
Reviewer Review Type Date Requested Status
Ines Almeida Approve
Review via email: mp+459576@code.launchpad.net

Commit message

Pin the version of black used by the blackdoc pre-commit hook

... to the same version as the one used by the black pre-commit
hook.

To post a comment you must log in.
745988a... by Guruprasad

Pin the version of black used by the blackdoc pre-commit hook

... to the same version as the one used by the black pre-commit
hook.

Revision history for this message
Ines Almeida (ines-almeida) wrote :

Nice one, thanks for handling it so quick 👍

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
2index 05418f1..6a72ffa 100644
3--- a/.pre-commit-config.yaml
4+++ b/.pre-commit-config.yaml
5@@ -36,6 +36,8 @@ repos:
6 |utilities/community-contributions\.py
7 )$
8 - repo: https://github.com/psf/black-pre-commit-mirror
9+ # Update the pinned version of black below used by
10+ # blackdoc when updating this version.
11 rev: 23.10.1
12 hooks:
13 - id: black
14@@ -73,6 +75,10 @@ repos:
15 - id: blackdoc
16 args: ["-l", "78"]
17 exclude: ^doc/.*
18+ additional_dependencies:
19+ # Update this pinned version too when updating the black pre-commit
20+ # hook's version above.
21+ - black==23.10.1
22 - repo: https://git.launchpad.net/lp-lint-doctest
23 rev: '0.5'
24 hooks:

Subscribers

People subscribed via source and target branches

to status/vote changes: