Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#3166)
Browse files Browse the repository at this point in the history
updates:
- [github.com/tox-dev/pyproject-fmt: 1.5.1 → 1.5.3](tox-dev/pyproject-fmt@1.5.1...1.5.3)
- [github.com/pre-commit/mirrors-prettier: v3.1.0 → v4.0.0-alpha.3](pre-commit/mirrors-prettier@v3.1.0...v4.0.0-alpha.3)

Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] committed Dec 9, 2023
1 parent d38c0e4 commit 383845a
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 44 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/check.yml
@@ -1,7 +1,9 @@
name: check
on:
workflow_dispatch:
push:
tags-ignore: ["**"]
branches: "main"
tags-ignore: [ "**" ]
pull_request:
schedule:
- cron: "0 8 * * *"
Expand All @@ -18,7 +20,7 @@ jobs:
fail-fast: false
matrix:
py:
- "3.12.0-rc.1"
- "3.12"
- "3.11"
- "3.10"
- "3.9"
Expand All @@ -31,7 +33,7 @@ jobs:
- name: Setup python for tox
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.12"
- uses: actions/checkout@v4
with:
fetch-depth: 0
Expand Down Expand Up @@ -70,10 +72,10 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python 3.11
- name: Setup Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.12"
- name: Install self-tox
run: python -m pip install .
- name: Run check for ${{ matrix.tox_env }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup python to build package
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.12"
- name: Install build
run: python -m pip install build
- uses: actions/checkout@v4
Expand Down
15 changes: 5 additions & 10 deletions .pre-commit-config.yaml
Expand Up @@ -5,7 +5,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
rev: v0.1.7
hooks:
- id: ruff-format
- repo: https://github.com/codespell-project/codespell
Expand All @@ -21,22 +21,17 @@ repos:
- id: tox-ini-fmt
args: ["-p", "fix"]
- repo: https://github.com/tox-dev/pyproject-fmt
rev: 1.5.1
rev: 1.5.3
hooks:
- id: pyproject-fmt
additional_dependencies: ["tox>=4.11.3"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
args: ["--print-width=120", "--prose-wrap=always"]
additional_dependencies: ["tox>=4.11.4"]
- repo: https://github.com/asottile/blacken-docs
rev: 1.16.0
hooks:
- id: blacken-docs
additional_dependencies: [black==23.10.1]
additional_dependencies: [black==23.11]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
rev: v0.1.7
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --unsafe-fixes]
Expand Down
44 changes: 22 additions & 22 deletions pyproject.toml
@@ -1,7 +1,7 @@
[build-system]
build-backend = "hatchling.build"
requires = [
"hatch-vcs>=0.3",
"hatch-vcs>=0.4",
"hatchling>=1.18",
]

Expand Down Expand Up @@ -47,47 +47,47 @@ dynamic = [
"version",
]
dependencies = [
"cachetools>=5.3.1",
"cachetools>=5.3.2",
"chardet>=5.2",
"colorama>=0.4.6",
"filelock>=3.12.3",
'importlib-metadata>=6.8; python_version < "3.8"',
"packaging>=23.1",
"platformdirs>=3.10",
"filelock>=3.13.1",
'importlib-metadata>=7; python_version < "3.8"',
"packaging>=23.2",
"platformdirs>=4.1",
"pluggy>=1.3",
"pyproject-api>=1.6.1",
'tomli>=2.0.1; python_version < "3.11"',
'typing-extensions>=4.7.1; python_version < "3.8"',
"virtualenv>=20.24.3",
'typing-extensions>=4.8; python_version < "3.8"',
"virtualenv>=20.25",
]
optional-dependencies.docs = [
"furo>=2023.8.19",
"sphinx>=7.2.4",
"furo>=2023.9.10",
"sphinx>=7.2.6",
"sphinx-argparse-cli>=1.11.1",
"sphinx-autodoc-typehints!=1.23.4,>=1.24",
"sphinx-autodoc-typehints!=1.23.4,>=1.25.2",
"sphinx-copybutton>=0.5.2",
"sphinx-inline-tabs>=2023.4.21",
"sphinxcontrib-towncrier>=0.2.1a0",
"towncrier>=23.6",
"towncrier>=23.11",
]
optional-dependencies.testing = [
"build[virtualenv]>=0.10",
"build[virtualenv]>=1.0.3",
"covdefaults>=2.3",
"detect-test-pollution>=1.1.1",
"detect-test-pollution>=1.2",
"devpi-process>=1",
"diff-cover>=7.7",
"diff-cover>=8.0.1",
"distlib>=0.3.7",
"flaky>=3.7",
"hatch-vcs>=0.3",
"hatch-vcs>=0.4",
"hatchling>=1.18",
"psutil>=5.9.5",
"pytest>=7.4",
"psutil>=5.9.6",
"pytest>=7.4.3",
"pytest-cov>=4.1",
"pytest-mock>=3.11.1",
"pytest-xdist>=3.3.1",
"pytest-mock>=3.12",
"pytest-xdist>=3.5",
"re-assert>=1.1",
'time-machine>=2.12; implementation_name != "pypy"',
"wheel>=0.41.2",
'time-machine>=2.13; implementation_name != "pypy"',
"wheel>=0.42",
]
urls.Documentation = "https://tox.wiki"
urls.Homepage = "http://tox.readthedocs.org"
Expand Down
10 changes: 4 additions & 6 deletions tox.ini
Expand Up @@ -8,7 +8,6 @@ env_list =
py310
py39
py38
py37
cov
type
docs
Expand Down Expand Up @@ -52,16 +51,15 @@ commands =
[testenv:type]
description = run type check on code base
deps =
mypy==1.6.1
types-cachetools>=5.3.0.6
mypy==1.7.1
types-cachetools>=5.3.0.7
types-chardet>=5.0.4.6
commands =
mypy src/tox
mypy tests

[testenv:docs]
description = build documentation
base_python = python3.11
extras =
docs
commands =
Expand All @@ -74,7 +72,7 @@ description = check that the long description is valid
skip_install = true
deps =
build[virtualenv]>=1.0.3
check-wheel-contents>=0.5
check-wheel-contents>=0.6
twine>=4.0.2
commands =
python -m build -o {envtmpdir} -s -w .
Expand All @@ -87,7 +85,7 @@ skip_install = true
deps =
gitpython>=3.1.40
packaging>=23.2
towncrier>=23.10
towncrier>=23.11
commands =
python {toxinidir}/tasks/release.py --version {posargs}

Expand Down

0 comments on commit 383845a

Please sign in to comment.