Skip to content

Commit 3ae8761

Browse files
Upgrade pre-commit dependencies
* chore: hande upgrades Was originally in sigmavirus24#1172 Also: - [x] remove safe option from pyproject black config - it is the default, so no need to state, stop config error notification - `fast` is the non-default option and works when added to config without error ([docs](https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#fast-safe)) - [x] add venv to excluding directories (most devs set their virtualenv to venv or .venv) Signed-off-by: jmeridth <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Signed-off-by: jmeridth <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 442d783 commit 3ae8761

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ repos:
1818
hooks:
1919
- id: isort
2020
- repo: https://github.com/psf/black
21-
rev: 23.12.1
21+
rev: 24.3.0
2222
hooks:
2323
- id: black
2424
- repo: https://github.com/asottile/pyupgrade
25-
rev: v3.15.0
25+
rev: v3.15.1
2626
hooks:
2727
- id: pyupgrade
2828
args: [--py37-plus]
2929
- repo: https://github.com/pre-commit/mirrors-mypy
30-
rev: v1.8.0
30+
rev: v1.9.0
3131
hooks:
3232
- id: mypy
3333
additional_dependencies:

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ Source = "https://github.com/sigmavirus24/github3.py"
7070
[tool.black]
7171
line-length = 78
7272
target-version = ['py37']
73-
safe = true
7473
exclude = '''
7574
(
7675
/(
@@ -83,6 +82,7 @@ exclude = '''
8382
| _build
8483
| build
8584
| dist
85+
| venv
8686
)/
8787
)
8888
'''

src/github3/repos/branch.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ def protect(
154154
if allow_deletions is not None:
155155
edit["allow_deletions"] = allow_deletions
156156
if required_conversation_resolution is not None:
157-
edit[
158-
"required_conversation_resolution"
159-
] = required_conversation_resolution
157+
edit["required_conversation_resolution"] = (
158+
required_conversation_resolution
159+
)
160160
url = self._build_url("protection", base_url=self._api)
161161
resp = self._put(url, json=edit)
162162
json = self._json(resp, 200)

0 commit comments

Comments
 (0)