Skip to content

Commit 87a39bb

Browse files
Updated files with 'repo_helper'. (#9)
Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com>
1 parent 0e9664a commit 87a39bb

File tree

6 files changed

+12
-19
lines changed

6 files changed

+12
-19
lines changed

.bumpversion.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ search = : str = "{current_version}"
1515
replace = : str = "{new_version}"
1616

1717
[bumpversion:file:pyproject.toml]
18+
19+
[bumpversion:file:setup.cfg]
20+
search = name = {current_version}
21+
replace = name = {new_version}

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ repos:
3131
args:
3232
- --allow-git
3333
- id: check-docstring-first
34-
exclude: ^(doc-source/conf|__pkginfo__|make_conda_recipe|setup|tests/.*)\.py$
34+
exclude: ^(doc-source/conf|__pkginfo__|setup|tests/.*)\.py$
3535
- id: bind-requirements
3636

3737
- repo: https://github.com/domdfcoding/flake8-dunder-all
@@ -71,7 +71,7 @@ repos:
7171
rev: v0.4.3
7272
hooks:
7373
- id: formate
74-
exclude: ^(doc-source/conf|__pkginfo__|make_conda_recipe|setup)\.(_)?py$
74+
exclude: ^(doc-source/conf|__pkginfo__|setup)\.(_)?py$
7575

7676
- repo: https://github.com/domdfcoding/dep_checker
7777
rev: v0.6.1

README.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ See https://github.com/TypedDjango/pytest-mypy-plugins for the action pytest plu
2424
* - Activity
2525
- |commits-latest| |commits-since| |maintained| |pypi-downloads|
2626
* - QA
27-
- |codefactor| |actions_flake8| |actions_mypy| |pre_commit_ci|
27+
- |codefactor| |actions_flake8| |actions_mypy|
2828
* - Other
2929
- |license| |language| |requires|
3030

@@ -94,10 +94,6 @@ See https://github.com/TypedDjango/pytest-mypy-plugins for the action pytest plu
9494
:target: https://pypi.org/project/pytest-mypy-plugins-shim/
9595
:alt: PyPI - Downloads
9696

97-
.. |pre_commit_ci| image:: https://results.pre-commit.ci/badge/github/python-coincidence/pytest-mypy-plugins-shim/master.svg
98-
:target: https://results.pre-commit.ci/latest/github/python-coincidence/pytest-mypy-plugins-shim/master
99-
:alt: pre-commit.ci status
100-
10197
.. end shields
10298
10399
Installation

__pkginfo__.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,10 @@
1111
# This script based on https://github.com/rocky/python-uncompyle6/blob/master/__pkginfo__.py
1212
#
1313

14-
# stdlib
15-
import pathlib
16-
1714
__all__ = [
18-
"__copyright__",
1915
"__version__",
20-
"repo_root",
21-
"install_requires",
2216
"extras_require",
2317
]
2418

25-
__copyright__ = """
26-
2021 Dominic Davis-Foster <dominic@davis-foster.co.uk>
27-
"""
28-
2919
__version__ = "0.1.0"
30-
repo_root = pathlib.Path(__file__).parent
31-
install_requires = (repo_root / "requirements.txt").read_text(encoding="utf-8").split('\n')
3220
extras_require = {}

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
[metadata]
1010
name = pytest-mypy-plugins-shim
11+
version = 0.1.0
1112
author = Dominic Davis-Foster
1213
author_email = dominic@davis-foster.co.uk
1314
license = MIT License

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# This file is managed by 'repo_helper'. Don't edit it directly.
33

44
# stdlib
5+
import pathlib
56
import shutil
67
import sys
78

@@ -13,6 +14,9 @@
1314
# this package
1415
from __pkginfo__ import * # pylint: disable=wildcard-import
1516

17+
repo_root = pathlib.Path(__file__).parent
18+
install_requires = (repo_root / "requirements.txt").read_text(encoding="UTF-8").split('\n')
19+
1620
setup(
1721
description=
1822
"Substitute for \"pytest-mypy-plugins\" for Python implementations which aren't supported by mypy.",

0 commit comments

Comments
 (0)