Skip to content

Commit 6d10400

Browse files
committed
Updated configuration files.
1 parent 1936a43 commit 6d10400

File tree

4 files changed

+70
-70
lines changed

4 files changed

+70
-70
lines changed

pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
[build-system]
2-
requires = [
3-
"setuptools >= 40.6.0",
4-
"wheel >= 0.34.2",
5-
]
2+
requires = ["setuptools>=40.6.0", "wheel>=0.34.2"]
63
build-backend = "setuptools.build_meta"

setup.cfg

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
# coding: utf-8
2-
# This file is managed by 'repo_helper'. Don't edit it directly.
3-
1+
# This file is managed by 'repo_helper'.
2+
# You may add new sections, but any changes made to the following sections will be lost:
3+
# * metadata
4+
# * options
5+
# * options.packages.find
6+
# * options.entry_points
7+
# * mypy
48
[metadata]
59
name = domdf_python_tools
10+
description = Helpful functions for Python 🐍 🛠️
611
author = Dominic Davis-Foster
712
author_email = [email protected]
813
license = GNU Lesser General Public License v3 or later (LGPLv3+)
9-
keywords =
10-
utilities
14+
keywords = utilities
1115
long_description = file: README.rst
1216
long_description_content_type = text/x-rst
13-
platforms =
14-
Windows
15-
macOS
16-
Linux
17+
platforms = Windows, macOS, Linux
1718
url = https://github.com/domdfcoding/domdf_python_tools
1819
project_urls =
1920
Documentation = https://domdf_python_tools.readthedocs.io
@@ -35,24 +36,18 @@ classifiers =
3536
Topic :: Software Development :: Libraries :: Python Modules
3637
Typing :: Typed
3738

38-
39-
4039
[options]
4140
python_requires = >=3.6
4241
zip_safe = False
4342
include_package_data = True
4443
packages = find:
4544

46-
4745
[options.packages.find]
4846
exclude =
4947
tests
5048
tests.*
5149
doc-source
5250

53-
54-
55-
5651
[mypy]
5752
python_version = 3.6
5853
ignore_missing_imports = True

tests/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
coverage>=5.1
2-
coverage_pyver_pragma>=0.0.2
2+
coverage_pyver_pragma>=0.0.5
33
faker
44
pytest>=6.0.0
55
pytest-cov>=2.8.1

tox.ini

Lines changed: 58 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,30 @@ isolated_build = true
99

1010
[travis]
1111
python =
12-
3.6: py36, build, mypy
13-
3.7: py37, build
14-
3.8: py38, build
15-
pypy3: pypy3, build
16-
3.9-dev: py39-dev, build
12+
3.6: py36, build, mypy
13+
3.7: py37, build
14+
3.8: py38, build
15+
pypy3: pypy3, build
16+
3.9-dev: py39-dev, build
1717

1818

1919
[gh-actions]
2020
python =
21-
3.6: py36, build
22-
3.7: py37, build
23-
3.8: py38, build
24-
pypy3: pypy3, build
25-
3.9-dev: py39-dev, build
21+
3.6: py36, build
22+
3.7: py37, build
23+
3.8: py38, build
24+
pypy3: pypy3, build
25+
3.9-dev: py39-dev, build
2626

2727

2828
[testenv]
2929
setenv =
30-
PYTHONDEVMODE = 1
31-
PIP_USE_FEATURE=2020-resolver
32-
# Install test requirements
30+
PYTHONDEVMODE = 1
31+
PIP_USE_FEATURE=2020-resolver
3332
deps = -r{toxinidir}/tests/requirements.txt
3433
commands =
35-
python --version
36-
; Run tests
37-
python -m pytest --cov=domdf_python_tools -r aR tests/ {posargs}
34+
python --version
35+
python -m pytest --cov=domdf_python_tools -r aR tests/ {posargs}
3836

3937

4038
[testenv:docs]
@@ -62,7 +60,6 @@ deps =
6260
check-wheel-contents
6361
commands =
6462
python -m pep517.build --source --binary "{toxinidir}"
65-
; python setup.py {posargs} sdist bdist_wheel
6663
twine check dist/*
6764
check-wheel-contents dist/
6865

@@ -73,17 +70,17 @@ changedir = {toxinidir}
7370
ignore_errors = true
7471
skip_install = true
7572
deps =
76-
autopep8 >=1.5.2
77-
flake8 >=3.8.2
78-
flake8-2020 >= 1.6.0
79-
flake8_strftime
80-
flake8-pytest-style
81-
flake8-docstrings
82-
flake8-typing-imports
83-
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
84-
flake8-builtins
85-
pygments
86-
git+https://github.com/domdfcoding/flake8-quotes.git
73+
autopep8 >=1.5.2
74+
flake8 >=3.8.2
75+
flake8-2020 >= 1.6.0
76+
flake8_strftime
77+
flake8-pytest-style
78+
flake8-docstrings
79+
flake8-typing-imports
80+
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
81+
flake8-builtins
82+
pygments
83+
git+https://github.com/domdfcoding/flake8-quotes.git
8784
commands = flake8 domdf_python_tools tests
8885

8986

@@ -111,8 +108,8 @@ basepython = python3.6
111108
ignore_errors = true
112109
changedir = {toxinidir}
113110
deps =
114-
mypy
115-
-r{toxinidir}/tests/requirements.txt
111+
mypy
112+
-r{toxinidir}/tests/requirements.txt
116113

117114
commands = mypy domdf_python_tools tests
118115

@@ -143,34 +140,34 @@ ignore_errors = true
143140
whitelist_externals = /bin/bash
144141
changedir = {toxinidir}
145142
deps =
146-
coverage
147-
coverage_pyver_pragma
143+
coverage
144+
coverage_pyver_pragma
148145
commands =
149-
/bin/bash -c "rm -rf htmlcov"
150-
coverage html
151-
/bin/bash -c "DISPLAY=:0 firefox 'htmlcov/index.html'"
146+
/bin/bash -c "rm -rf htmlcov"
147+
coverage html
148+
/bin/bash -c "DISPLAY=:0 firefox 'htmlcov/index.html'"
152149

153150

154151
[flake8]
155152
max-line-length = 120
156153
select = E301 E303 E304 E305 E306 E502 W291 W293 W391 E226 E225 E241 E231 W292 E265 E101 E111 E112 E113 E121 E122 E125 E127 E128 E129 E131 E133 E201 E202 E203 E211 E222 E223 E224 E225 E227 E228 E242 E251 E261 E262 E271 E272 E402 E703 E711 E712 E713 E714 E721 W504 E302 YTT101 YTT102 YTT103 YTT201 YTT202 YTT203 YTT204 YTT301 YTT302 YTT303 STRFTIME001 STRFTIME002 PT001 PT002 PT003 PT004 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 Q000 Q001 Q002 Q003 A001 A002 A003 TYP001 TYP002 TYP003 TYP004 TYP005 TYP006 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
157154
exclude = .git,__pycache__,doc-source,old,build,dist,make_conda_recipe.py,__pkginfo__.py,setup.py
158155
rst-roles =
159-
class,
160-
func,
161-
mod,
162-
py:obj,
163-
py:class,
164-
ref,
165-
meth,
166-
exc,
167-
attr,
156+
class,
157+
func,
158+
mod,
159+
py:obj,
160+
py:class,
161+
ref,
162+
meth,
163+
exc,
164+
attr,
168165
rst-directives =
169-
envvar,
170-
exception,
171-
seealso
166+
envvar,
167+
exception,
168+
seealso
172169
per-file-ignores =
173-
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
170+
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
174171
pytest-parametrize-names-type = csv
175172
inline-quotes = "
176173
multiline-quotes = """
@@ -180,8 +177,19 @@ docstring-quotes = """
180177
181178
[coverage:run]
182179
plugins =
183-
coverage_pyver_pragma
184-
180+
coverage_pyver_pragma
181+
182+
183+
[coverage:report]
184+
exclude_lines =
185+
(pragma|PRAGMA)[:\s]?\s*(no|NO)\s*(cover|COVER)
186+
raise AssertionError
187+
raise NotImplementedError
188+
if 0:
189+
if False:
190+
if TYPE_CHECKING:
191+
if typing.TYPE_CHECKING:
192+
if __name__ == .__main__.:
185193
186194
[check-wheel-contents]
187195
ignore = W002

0 commit comments

Comments
 (0)