Skip to content

Commit 94f82f0

Browse files
Merge pull request #44 from pytest-dev/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 70a9a03 + 4455e66 commit 94f82f0

File tree

4 files changed

+26
-28
lines changed

4 files changed

+26
-28
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 22.3.0
3+
rev: 23.3.0
44
hooks:
55
- id: black
66
args: [--safe, --quiet]
77
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v4.2.0
8+
rev: v4.4.0
99
hooks:
1010
- id: trailing-whitespace
1111
- id: end-of-file-fixer
@@ -14,27 +14,27 @@ repos:
1414
- id: check-yaml
1515
- id: debug-statements
1616
- repo: https://github.com/pycqa/flake8
17-
rev: 4.0.1
17+
rev: 6.0.0
1818
hooks:
1919
- id: flake8
2020
additional_dependencies:
2121
- flake8-typing-imports==1.9.0
22-
- repo: https://github.com/asottile/reorder_python_imports
23-
rev: v3.1.0
22+
- repo: https://github.com/asottile/reorder-python-imports
23+
rev: v3.10.0
2424
hooks:
2525
- id: reorder-python-imports
2626
args: ['--application-directories=.:src']
2727
- repo: https://github.com/asottile/pyupgrade
28-
rev: v2.32.1
28+
rev: v3.8.0
2929
hooks:
3030
- id: pyupgrade
3131
args: [--py37-plus]
3232

3333
- repo: https://github.com/tox-dev/pyproject-fmt
34-
rev: "0.3.3"
34+
rev: "0.13.0"
3535
hooks:
3636
- id: pyproject-fmt
3737
- repo: https://github.com/pre-commit/mirrors-mypy
38-
rev: 'v0.960'
38+
rev: 'v1.4.1'
3939
hooks:
4040
- id: mypy

pyproject.toml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,29 @@ authors = [
1717
{ name = "holger krekel" },
1818
]
1919
requires-python = ">=3.7"
20+
classifiers = [
21+
"Development Status :: 4 - Beta",
22+
"Intended Audience :: Developers",
23+
"License :: OSI Approved :: MIT License",
24+
"Operating System :: MacOS :: MacOS X",
25+
"Operating System :: Microsoft :: Windows",
26+
"Operating System :: POSIX",
27+
"Programming Language :: Python",
28+
"Programming Language :: Python :: 3 :: Only",
29+
"Programming Language :: Python :: 3.7",
30+
"Programming Language :: Python :: 3.8",
31+
"Programming Language :: Python :: 3.9",
32+
"Programming Language :: Python :: 3.10",
33+
"Programming Language :: Python :: 3.11",
34+
"Programming Language :: Python :: Implementation :: CPython",
35+
"Topic :: Software Development :: Libraries",
36+
]
2037
dynamic = [
2138
"version",
2239
]
23-
classifiers = [
24-
"Development Status :: 4 - Beta",
25-
"Intended Audience :: Developers",
26-
"License :: OSI Approved :: MIT License",
27-
"Operating System :: MacOS :: MacOS X",
28-
"Operating System :: Microsoft :: Windows",
29-
"Operating System :: POSIX",
30-
"Programming Language :: Python",
31-
"Programming Language :: Python :: Implementation :: CPython",
32-
"Programming Language :: Python :: 3",
33-
"Programming Language :: Python :: 3 :: Only",
34-
"Programming Language :: Python :: 3.7",
35-
"Programming Language :: Python :: 3.8",
36-
"Programming Language :: Python :: 3.9",
37-
"Programming Language :: Python :: 3.10",
38-
"Topic :: Software Development :: Libraries",
39-
]
4040
[project.urls]
4141
Homepage = "https://github.com/pytest-dev/apipkg"
4242

43-
4443
[tool.hatch.version]
4544
source = "vcs"
4645

@@ -63,5 +62,6 @@ python = ["3.7", "3.8", "3.9", "3.10", "3.11"]
6362
[tool.hatch.envs.test.scripts]
6463
run-coverage = "pytest --cov-config=pyproject.toml --cov=pkg --cov=tests {args}"
6564
run = "run-coverage --no-cov {args}"
65+
6666
[mypy]
6767
python_version = "3.7"

src/apipkg/_alias_module.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
def AliasModule(modname: str, modpath: str, attrname: str | None = None) -> ModuleType:
9-
109
cached_obj: object | None = None
1110

1211
def getmod() -> object:

test_apipkg.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,6 @@ def test_importlib_find_spec_aliasmodule(find_spec):
869869

870870

871871
def test_importlib_find_spec_initpkg(find_spec, tmpdir, monkeypatch):
872-
873872
modname = "apipkg_test_example_initpkg_findspec"
874873

875874
pkgdir = tmpdir.mkdir("apipkg_test_example_initpkg_findspec")

0 commit comments

Comments
 (0)