Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#406)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] and dependabot[bot] committed Dec 9, 2023
1 parent 9fa846f commit 939d512
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 27 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: check
on:
workflow_dispatch:
push:
branches: "main"
tags-ignore: ["**"]
pull_request:
schedule:
Expand All @@ -18,7 +20,7 @@ jobs:
fail-fast: false
matrix:
py:
- "3.12.0-beta.2"
- "3.12"
- "3.11"
- "3.10"
- "3.9"
Expand All @@ -27,7 +29,7 @@ jobs:
- name: Setup python for tox
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.12"
- name: Install tox
run: python -m pip install tox
- uses: actions/checkout@v4
Expand Down Expand Up @@ -76,7 +78,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.12"
- name: Install tox
run: python -m pip install tox
- name: Setup coverage tool
Expand Down Expand Up @@ -112,10 +114,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 tox
run: python -m pip install tox
- name: Setup test suite
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
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
11 changes: 3 additions & 8 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/astral-sh/ruff-pre-commit
rev: "v0.1.6"
rev: "v0.1.7"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand All @@ -19,15 +19,10 @@ 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.8"]
- 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: meta
hooks:
- id: check-hooks-apply
Expand Down
13 changes: 6 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 @@ -41,20 +41,19 @@ dependencies = [
"Sphinx>=7.1.2",
]
optional-dependencies.docs = [
"furo>=2023.7.26",
"sphinx>=7.1.2",
"furo>=2023.9.10",
]
optional-dependencies.numpy = [
"nptyping>=2.5",
]
optional-dependencies.testing = [
"covdefaults>=2.3",
"coverage>=7.3",
"diff-cover>=7.7",
"pytest>=7.4",
"coverage>=7.3.2",
"diff-cover>=8.0.1",
"pytest>=7.4.3",
"pytest-cov>=4.1",
"sphobjinv>=2.3.1",
"typing-extensions>=4.7.1",
"typing-extensions>=4.8",
]
urls.Changelog = "https://github.com/tox-dev/sphinx-autodoc-typehints/blob/main/CHANGELOG.md"
urls.Homepage = "https://github.com/tox-dev/sphinx-autodoc-typehints"
Expand Down
12 changes: 6 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ commands =
description = format the code base to adhere to our styles, and complain about what we cannot do automatically
skip_install = true
deps =
pre-commit>=3.3.3
pre-commit>=3.5
commands =
pre-commit run --all-files --show-diff-on-failure

Expand All @@ -51,8 +51,8 @@ extras =
[testenv:type]
description = run type check on code base
deps =
mypy==1.4.1
types-docutils>=0.20.0.2
mypy==1.7.1
types-docutils>=0.20.0.3
set_env =
{tty:MYPY_FORCE_COLOR = 1}
commands =
Expand All @@ -64,8 +64,8 @@ description = combine coverage files and generate diff (against DIFF_AGAINST def
skip_install = true
deps =
covdefaults>=2.3
coverage>=7.3
diff-cover>=7.7
coverage>=7.3.2
diff-cover>=8.0.1
extras =
parallel_show_output = true
pass_env =
Expand All @@ -90,7 +90,7 @@ depends =
description = check that the long description is valid (need for PyPI)
skip_install = true
deps =
build[virtualenv]>=0.10
build[virtualenv]>=1.0.3
twine>=4.0.2
extras =
commands =
Expand Down

0 comments on commit 939d512

Please sign in to comment.