Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 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: 23.12.1
rev: 25.1.0
hooks:
- id: black
args: [--safe, --quiet]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v6.0.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: 6.1.0
rev: 7.3.0
hooks:
- id: flake8
additional_dependencies:
- flake8-typing-imports==1.14.0
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.12.0
rev: v3.15.0
hooks:
- id: reorder-python-imports
args: ['--application-directories=.:src']
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.20.0
hooks:
- id: pyupgrade
args: [--py37-plus]

- repo: https://github.com/tox-dev/pyproject-fmt
rev: "1.5.3"
rev: "v2.6.0"
hooks:
- id: pyproject-fmt
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.8.0'
rev: 'v1.17.1'
hooks:
- id: mypy
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ description = "apipkg: namespace control and lazy-import mechanism"
readme = "README.rst"
license = "MIT"
maintainers = [
{ name = "Ronny Pfannschmidt", email = "[email protected]"}
{ name = "Ronny Pfannschmidt", email = "[email protected]" },
]
authors = [
{ name = "holger krekel" },
{ name = "holger krekel" },
]
requires-python = ">=3.7"
classifiers = [
Expand All @@ -32,21 +32,21 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Libraries",
]
dynamic = [
"version",
]
[project.urls]
Homepage = "https://github.com/pytest-dev/apipkg"
urls.Homepage = "https://github.com/pytest-dev/apipkg"

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

[tool.hatch.build.targets.sdist]
include = [
"/src",
"/src",
]
[tool.hatch.build.hooks.vcs]
version-file = "src/apipkg/_version.py"
Expand All @@ -58,7 +58,7 @@ dependencies = [
"pytest-cov",
]
[[tool.hatch.envs.test.matrix]]
python = ["3.7", "3.8", "3.9", "3.10", "3.11"]
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}"
Expand Down
Loading