Skip to content

Commit d21f7d6

Browse files
authored
Merge pull request #262 from kattni/black-update-patch
Add patch to update Black across the libs.
2 parents a2c4e49 + 865b153 commit d21f7d6

File tree

4 files changed

+29
-3
lines changed

4 files changed

+29
-3
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repos:
66
- id: end-of-file-fixer
77
- id: trailing-whitespace
88
- repo: https://github.com/psf/black
9-
rev: 21.6b0
9+
rev: 22.3.0
1010
hooks:
1111
- id: black
1212
- repo: https://github.com/pycqa/pylint

adabot/circuitpython_bundle.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ def update_bundle(bundle_path):
207207
# They will contain a '-' in the tag, such as '3.0.0-beta.5'.
208208
# --exclude must be before --tags.
209209
# sh fails to find the subcommand so we use subprocess.
210-
subprocess.run( # pylint: disable=subprocess-run-check
210+
211+
subprocess.run( # pylint: disable=subprocess-run-check
211212
shlex.split(
212213
"git submodule foreach 'git checkout -q "
213214
"`git rev-list --exclude='*-*' --tags --max-count=1`'"
+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
From 94efa5385a95c41e2564e9f0a2760728d689eead Mon Sep 17 00:00:00 2001
2+
From: Kattni Rembor <[email protected]>
3+
Date: Mon, 28 Mar 2022 15:52:04 -0400
4+
Subject: [PATCH] Update Black to latest.
5+
6+
---
7+
.pre-commit-config.yaml | 2 +-
8+
1 file changed, 1 insertion(+), 1 deletion(-)
9+
10+
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
11+
index 1b9fadc..7467c1d 100644
12+
--- a/.pre-commit-config.yaml
13+
+++ b/.pre-commit-config.yaml
14+
@@ -4,7 +4,7 @@
15+
16+
repos:
17+
- repo: https://github.com/python/black
18+
- rev: 20.8b1
19+
+ rev: 22.3.0
20+
hooks:
21+
- id: black
22+
- repo: https://github.com/fsfe/reuse-tool
23+
--
24+
2.33.1
25+

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
black==21.6b0
1+
black==22.3.0
22
packaging==20.3
33
pylint
44
pytest

0 commit comments

Comments
 (0)