Skip to content

Commit 5706758

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

File tree

6 files changed

+38
-13
lines changed

6 files changed

+38
-13
lines changed

.bumpversion.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ tag = True
1414
[bumpversion:file:repo_helper.yml]
1515

1616
[bumpversion:file:flake8_slots/__init__.py]
17+
18+
[bumpversion:file:pyproject.toml]

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ repos:
2525
- id: end-of-file-fixer
2626

2727
- repo: https://github.com/domdfcoding/pre-commit-hooks
28-
rev: v0.2.0
28+
rev: v0.2.1
2929
hooks:
3030
- id: requirements-txt-sorter
3131
args:
@@ -41,7 +41,7 @@ repos:
4141
files: ^flake8_slots/.*\.py$
4242

4343
- repo: https://github.com/domdfcoding/flake2lint
44-
rev: v0.3.0
44+
rev: v0.4.0
4545
hooks:
4646
- id: flake2lint
4747

@@ -74,7 +74,7 @@ repos:
7474
exclude: ^(doc-source/conf|__pkginfo__|make_conda_recipe|setup)\.(_)?py$
7575

7676
- repo: https://github.com/domdfcoding/dep_checker
77-
rev: v0.4.1
77+
rev: v0.5.0
7878
hooks:
7979
- id: dep_checker
8080
args:

__pkginfo__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"""
2828

2929
__version__ = "0.1.1"
30-
3130
repo_root = pathlib.Path(__file__).parent
3231
install_requires = (repo_root / "requirements.txt").read_text(encoding="utf-8").split('\n')
3332
extras_require = {"all": []}

pyproject.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
11
[build-system]
22
requires = [ "setuptools>=40.6.0", "wheel>=0.34.2",]
33
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "flake8-slots"
7+
version = "0.1.1"
8+
description = "A Flake8 plugin to require __slots__ to be defined for subclasses of immutable types."
9+
readme = "README.rst"
10+
keywords = [ "flake8",]
11+
dynamic = [ "requires-python", "classifiers", "dependencies",]
12+
[[project.authors]]
13+
email = "dominic@davis-foster.co.uk"
14+
name = "Dominic Davis-Foster"
15+
16+
[project.license]
17+
file = "LICENSE"
18+
19+
[project.urls]
20+
Homepage = "https://github.com/domdfcoding/flake8-slots"
21+
"Issue Tracker" = "https://github.com/domdfcoding/flake8-slots/issues"
22+
"Source Code" = "https://github.com/domdfcoding/flake8-slots"
23+
Documentation = "https://flake8-slots.readthedocs.io/en/latest"
24+
25+
[project.entry-points."flake8.extension"]
26+
SLOTS = "flake8_slots:Plugin"

tests/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
coincidence>=0.1.0
22
coverage>=5.1
3-
coverage-pyver-pragma>=0.0.6
3+
coverage-pyver-pragma>=0.2.1
44
domdf-python-tools[testing]>=2.0.1
55
iniconfig!=1.1.0,>=1.0.1
66
pytest>=6.0.0

tox.ini

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,12 @@ commands = sphinx-build -M html . ./build {posargs}
4848
skip_install = True
4949
changedir = {toxinidir}
5050
deps =
51-
twine>=3.2.0
52-
pep517>=0.9.1
51+
virtualenv
52+
git+https://github.com/pypa/build
5353
check-wheel-contents>=0.1.0
54+
twine>=3.2.0
5455
commands =
55-
python -m pep517.build --source --binary "{toxinidir}"
56+
python -m build --sdist --wheel "{toxinidir}"
5657
twine check dist/*.tar.gz dist/*.whl
5758
check-wheel-contents dist/
5859

@@ -107,23 +108,23 @@ whitelist_externals = /bin/bash
107108
changedir = {toxinidir}
108109
deps =
109110
coverage>=5
110-
coverage_pyver_pragma>=0.0.6
111+
coverage_pyver_pragma>=0.2.1
111112
commands =
112113
/bin/bash -c "rm -rf htmlcov"
113114
coverage html
114115
/bin/bash -c "DISPLAY=:0 firefox 'htmlcov/index.html'"
115116

116117
[flake8]
117118
max-line-length = 120
118-
select = E111 E112 E113 E121 E122 E125 E127 E128 E129 E131 E133 E201 E202 E203 E211 E222 E223 E224 E225 E225 E226 E227 E228 E231 E241 E242 E251 E261 E262 E265 E271 E272 E303 E304 E306 E402 E502 E703 E711 E712 E713 E714 E721 W291 W292 W293 W391 W504 YTT101 YTT102 YTT103 YTT201 YTT202 YTT203 YTT204 YTT301 YTT302 YTT303 STRFTIME001 STRFTIME002 SXL001 PT001 PT002 PT003 PT005 PT006 PT007 PT008 PT009 PT010 PT011 PT012 PT013 PT014 PT015 PT016 PT017 PT018 PT019 PT020 PT021 RST201 RST202 RST203 RST204 RST205 RST206 RST207 RST208 RST210 RST211 RST212 RST213 RST214 RST215 RST216 RST217 RST218 RST219 RST299 RST301 RST302 RST303 RST304 RST305 RST306 RST399 RST401 RST499 RST900 RST901 RST902 RST903 Q001 Q002 Q003 A001 A002 A003 TYP001 TYP002 TYP003 TYP004 TYP005 TYP006 ENC001 ENC002 ENC003 ENC004 Y001,Y002 Y003 Y004 Y005 Y006 Y007 Y008 Y009 Y010 Y011 Y012 Y013 Y014 Y015 Y090 Y091 E301 E302 E305 D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000 SLOT000 SLOT001 SLOT002 SLOT003
119-
exclude = doc-source,.git,__pycache__,old,build,dist,__pkginfo__.py,setup.py,.tox,venv
119+
select = E111 E112 E113 E121 E122 E125 E127 E128 E129 E131 E133 E201 E202 E203 E211 E222 E223 E224 E225 E225 E226 E227 E228 E231 E241 E242 E251 E261 E262 E265 E271 E272 E303 E304 E306 E402 E502 E703 E711 E712 E713 E714 E721 W291 W292 W293 W391 W504 YTT101 YTT102 YTT103 YTT201 YTT202 YTT203 YTT204 YTT301 YTT302 YTT303 STRFTIME001 STRFTIME002 SXL001 PT001 PT002 PT003 PT005 PT006 PT007 PT008 PT009 PT010 PT011 PT012 PT013 PT014 PT015 PT016 PT017 PT018 PT019 PT020 PT021 RST201 RST202 RST203 RST204 RST205 RST206 RST207 RST208 RST210 RST211 RST212 RST213 RST214 RST215 RST216 RST217 RST218 RST219 RST299 RST301 RST302 RST303 RST304 RST305 RST306 RST399 RST401 RST499 RST900 RST901 RST902 RST903 Q001 Q002 Q003 A001 A002 A003 TYP001 TYP002 TYP003 TYP004 TYP005 TYP006 ENC001 ENC002 ENC003 ENC004 Y001,Y002 Y003 Y004 Y005 Y006 Y007 Y008 Y009 Y010 Y011 Y012 Y013 Y014 Y015 Y090 Y091 E301 E302 E305 D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000 SLOT000 SLOT001 SLOT002
120+
extend-exclude = doc-source,old,build,dist,__pkginfo__.py,setup.py,venv
120121
rst-directives =
121122
TODO
122123
envvar
123124
extras-require
124125
per-file-ignores =
125-
tests/*: D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000 SLOT000 SLOT001 SLOT002 SLOT003
126-
*/*.pyi: E301 E302 E305 D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000 SLOT000 SLOT001 SLOT002 SLOT003
126+
tests/*: D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000 SLOT000 SLOT001 SLOT002
127+
*/*.pyi: E301 E302 E305 D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000 SLOT000 SLOT001 SLOT002
127128
pytest-parametrize-names-type = csv
128129
inline-quotes = "
129130
multiline-quotes = """

0 commit comments

Comments
 (0)