Skip to content

Commit 03bf56e

Browse files
Ryan Whitmorebrandonwillard
authored andcommitted
Remove the versioneer git tag dynamic versioning in favor of
setuptools-scm. Update the pre-commit hooks to use a python 3.13 compatible version of autoflake.
1 parent ac66dae commit 03bf56e

File tree

8 files changed

+20
-2794
lines changed

8 files changed

+20
-2794
lines changed

.pre-commit-config.yaml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
exclude: |
2-
(?x)^(
3-
versioneer\.py|
4-
cons/_version\.py|
5-
doc/.*|
6-
bin/.*
7-
)$
2+
(?x)^(
3+
doc/.*|
4+
bin/.*
5+
)$
86
repos:
97
- repo: https://github.com/pre-commit/pre-commit-hooks
108
rev: v4.4.0
@@ -24,12 +22,17 @@ repos:
2422
rev: 5.12.0
2523
hooks:
2624
- id: isort
27-
- repo: https://github.com/humitos/mirrors-autoflake.git
28-
rev: v1.1
25+
- repo: https://github.com/PyCQA/autoflake
26+
rev: v2.3.1
2927
hooks:
3028
- id: autoflake
3129
exclude: |
3230
(?x)^(
3331
.*/?__init__\.py|
3432
)$
35-
args: ['--in-place', '--remove-all-unused-imports', '--remove-unused-variable']
33+
args:
34+
[
35+
"--in-place",
36+
"--remove-all-unused-imports",
37+
"--remove-unused-variable",
38+
]

MANIFEST.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
include versioneer.py
2-
include cons/_version.py

cons/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
from importlib.metadata import version
2+
13
from . import unify # noqa: F401
2-
from ._version import get_versions
34
from .core import car, cdr, cons # noqa: F401
45

5-
__version__ = get_versions()["version"]
6-
del get_versions
6+
__version__ = version("cons")

0 commit comments

Comments
 (0)