Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#3300)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Jul 3, 2024
1 parent 264d44f commit b12fa62
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.5
rev: 0.28.6
hooks:
- id: check-github-workflows
args: [ "--verbose" ]
Expand All @@ -20,17 +20,17 @@ repos:
- id: tox-ini-fmt
args: ["-p", "fix"]
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "2.1.3"
rev: "2.1.4"
hooks:
- id: pyproject-fmt
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.4.10"
rev: "v0.5.0"
hooks:
- id: ruff-format
- id: ruff
args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"]
- repo: https://github.com/asottile/blacken-docs
rev: 1.16.0
rev: 1.18.0
hooks:
- id: blacken-docs
additional_dependencies: [black==24.4.2]
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def setup(app: Sphinx) -> None:
root, exe = here.parent, Path(sys.executable)
towncrier = exe.with_name(f"towncrier{exe.suffix}")
cmd = [str(towncrier), "build", "--draft", "--version", "NEXT"]
new = check_output(cmd, cwd=root, text=True, stderr=subprocess.DEVNULL) # noqa: S603
new = check_output(cmd, cwd=root, text=True, stderr=subprocess.DEVNULL)
(root / "docs" / "_draft.rst").write_text("" if "No significant changes" in new else new)

class PatchedPythonDomain(PythonDomain):
Expand Down
9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,11 @@ dependencies = [
"chardet>=5.2",
"colorama>=0.4.6",
"filelock>=3.15.4",
"importlib-metadata>=7.2; python_version<'3.8'",
"packaging>=24.1",
"platformdirs>=4.2.2",
"pluggy>=1.5",
"pyproject-api>=1.7.1",
"tomli>=2.0.1; python_version<'3.11'",
"typing-extensions>=4.12.2; python_version<'3.8'",
"virtualenv>=20.26.3",
]
optional-dependencies.docs = [
Expand All @@ -78,7 +76,7 @@ optional-dependencies.testing = [
"covdefaults>=2.3",
"detect-test-pollution>=1.2",
"devpi-process>=1",
"diff-cover>=9",
"diff-cover>=9.1",
"distlib>=0.3.8",
"flaky>=3.8.1",
"hatch-vcs>=0.4",
Expand All @@ -89,8 +87,8 @@ optional-dependencies.testing = [
"pytest-mock>=3.14",
"pytest-xdist>=3.6.1",
"re-assert>=1.1",
"setuptools>=70.1",
"time-machine>=2.14.1; implementation_name!='pypy'",
"setuptools>=70.2",
"time-machine>=2.14.2; implementation_name!='pypy'",
"wheel>=0.43",
]
urls.Documentation = "https://tox.wiki"
Expand Down Expand Up @@ -136,6 +134,7 @@ lint.ignore = [
"PLR0917", ## Too many positional arguments
"S104", # Possible binding to all interfaces
"S404", # Using subprocess is alright.
"S603", # Using subprocess is alright.
]
lint.per-file-ignores."tests/**/*.py" = [
"D", # don't care about documentation in tests
Expand Down
2 changes: 1 addition & 1 deletion src/tox/execute/local_sub_process/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def __enter__(self) -> ExecuteStatus:
stdout, stderr = self.get_stream_file_no("stdout"), self.get_stream_file_no("stderr")
try:
self.process = process = Popen(
self.cmd, # noqa: S603
self.cmd,
stdout=next(stdout),
stderr=next(stderr),
stdin={StdinSource.USER: None, StdinSource.OFF: DEVNULL, StdinSource.API: PIPE}[self.request.stdin],
Expand Down
2 changes: 1 addition & 1 deletion tasks/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def get_upstream(repo: Repo) -> Remote:

def release_changelog(repo: Repo, version: Version) -> Commit:
print("generate release commit") # noqa: T201
check_call(["towncrier", "build", "--yes", "--version", version.public], cwd=str(ROOT_SRC_DIR)) # noqa: S607, S603
check_call(["towncrier", "build", "--yes", "--version", version.public], cwd=str(ROOT_SRC_DIR)) # noqa: S607
return repo.index.commit(f"release {version}")


Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ commands =
[testenv:type]
description = run type check on code base
deps =
mypy==1.10
mypy==1.10.1
types-cachetools>=5.3.0.7
types-chardet>=5.0.4.6
commands =
Expand All @@ -73,7 +73,7 @@ skip_install = true
deps =
build[virtualenv]>=1.2.1
check-wheel-contents>=0.6
twine>=5.1
twine>=5.1.1
commands =
python -m build -o {envtmpdir} -s -w .
twine check {envtmpdir}{/}*
Expand Down

0 comments on commit b12fa62

Please sign in to comment.