Skip to content

Commit

Permalink
Merge pull request #44 from pytest-dev/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
RonnyPfannschmidt authored Jul 4, 2023
2 parents 70a9a03 + 4455e66 commit 94f82f0
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 28 deletions.
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
repos:
- repo: https://github.com/psf/black
rev: 22.3.0
rev: 23.3.0
hooks:
- id: black
args: [--safe, --quiet]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -14,27 +14,27 @@ repos:
- id: check-yaml
- id: debug-statements
- repo: https://github.com/pycqa/flake8
rev: 4.0.1
rev: 6.0.0
hooks:
- id: flake8
additional_dependencies:
- flake8-typing-imports==1.9.0
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.1.0
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.10.0
hooks:
- id: reorder-python-imports
args: ['--application-directories=.:src']
- repo: https://github.com/asottile/pyupgrade
rev: v2.32.1
rev: v3.8.0
hooks:
- id: pyupgrade
args: [--py37-plus]

- repo: https://github.com/tox-dev/pyproject-fmt
rev: "0.3.3"
rev: "0.13.0"
hooks:
- id: pyproject-fmt
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.960'
rev: 'v1.4.1'
hooks:
- id: mypy
36 changes: 18 additions & 18 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,29 @@ authors = [
{ name = "holger krekel" },
]
requires-python = ">=3.7"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Libraries",
]
dynamic = [
"version",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: Python",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Libraries",
]
[project.urls]
Homepage = "https://github.com/pytest-dev/apipkg"


[tool.hatch.version]
source = "vcs"

Expand All @@ -63,5 +62,6 @@ python = ["3.7", "3.8", "3.9", "3.10", "3.11"]
[tool.hatch.envs.test.scripts]
run-coverage = "pytest --cov-config=pyproject.toml --cov=pkg --cov=tests {args}"
run = "run-coverage --no-cov {args}"

[mypy]
python_version = "3.7"
1 change: 0 additions & 1 deletion src/apipkg/_alias_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


def AliasModule(modname: str, modpath: str, attrname: str | None = None) -> ModuleType:

cached_obj: object | None = None

def getmod() -> object:
Expand Down
1 change: 0 additions & 1 deletion test_apipkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,6 @@ def test_importlib_find_spec_aliasmodule(find_spec):


def test_importlib_find_spec_initpkg(find_spec, tmpdir, monkeypatch):

modname = "apipkg_test_example_initpkg_findspec"

pkgdir = tmpdir.mkdir("apipkg_test_example_initpkg_findspec")
Expand Down

0 comments on commit 94f82f0

Please sign in to comment.