Skip to content

Commit

Permalink
Merge d412462 into 5725d72
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jan 1, 2024
2 parents 5725d72 + d412462 commit 8f04fca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Expand Up @@ -8,12 +8,12 @@ ci:

repos:
- repo: https://github.com/repo-helper/pyproject-parser
rev: v0.9.0
rev: v0.9.1
hooks:
- id: reformat-pyproject

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-ast
Expand Down Expand Up @@ -43,13 +43,13 @@ repos:
- id: bind-requirements

- repo: https://github.com/domdfcoding/flake8-dunder-all
rev: v0.3.0
rev: v0.3.1
hooks:
- id: ensure-dunder-all
files: ^whey/.*\.py$

- repo: https://github.com/domdfcoding/flake2lint
rev: v0.4.2
rev: v0.4.3
hooks:
- id: flake2lint

Expand All @@ -62,32 +62,32 @@ repos:
- id: rst-inline-touching-normal

- repo: https://github.com/asottile/pyupgrade
rev: v2.12.0
rev: v3.15.0
hooks:
- id: pyupgrade
args:
- --py36-plus
- --keep-runtime-typing

- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.1
rev: v1.5.4
hooks:
- id: remove-crlf
- id: forbid-crlf

- repo: https://github.com/python-formate/snippet-fmt
rev: v0.1.4
rev: v0.1.5
hooks:
- id: snippet-fmt

- repo: https://github.com/python-formate/formate
rev: v0.5.0
rev: v0.7.0
hooks:
- id: formate
exclude: ^(doc-source/conf|__pkginfo__|setup)\.(_)?py$

- repo: https://github.com/domdfcoding/dep_checker
rev: v0.7.1
rev: v0.8.0
hooks:
- id: dep_checker
args:
Expand Down
10 changes: 2 additions & 8 deletions tests/test_config.py
Expand Up @@ -227,10 +227,7 @@ def test_parse_valid_config(
if "dependencies" in config:
config["dependencies"] = list(map(str, config["dependencies"]))
if "optional-dependencies" in config:
config["optional-dependencies"] = {
k: list(map(str, v))
for k, v in config["optional-dependencies"].items()
}
config["optional-dependencies"] = {k: list(map(str, v)) for k, v in config["optional-dependencies"].items()}

check_config(config, advanced_data_regression)

Expand Down Expand Up @@ -300,10 +297,7 @@ def test_pep621_class_valid_config(
if "dependencies" in config:
config["dependencies"] = list(map(str, config["dependencies"]))
if "optional-dependencies" in config:
config["optional-dependencies"] = {
k: list(map(str, v))
for k, v in config["optional-dependencies"].items()
}
config["optional-dependencies"] = {k: list(map(str, v)) for k, v in config["optional-dependencies"].items()}

if "requires-python" in config and config["requires-python"] is not None:
config["requires-python"] = str(config["requires-python"])
Expand Down

0 comments on commit 8f04fca

Please sign in to comment.