Skip to content

Commit 39c7358

Browse files
committed
Updated tox configuration and removed whitespace
1 parent ba12f3b commit 39c7358

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

domdf_python_tools/pagesizes/units.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
"scaled_point",
5252
]
5353

54-
5554
# Units
5655
pt = 1
5756
inch = 72.0

domdf_python_tools/pagesizes/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@
4545

4646
# from .units import Unit
4747

48-
4948
__all__ = ["convert_from", "parse_measurement"]
5049

5150

5251
def _rounders(val_to_round: Union[str, int, float, Decimal], round_format: str) -> Decimal:
5352
return Decimal(Decimal(val_to_round).quantize(Decimal(str(round_format)), rounding=ROUND_HALF_UP))
5453

5554

56-
def convert_from(value: Union[Sequence[AnyNumber], AnyNumber], from_: AnyNumber) -> Union[float, Tuple[float, ...]]:
55+
def convert_from(value: Union[Sequence[AnyNumber], AnyNumber],
56+
from_: AnyNumber) -> Union[float, Tuple[float, ...]]:
5757
"""
5858
Convert ``value`` to point from the unit specified in ``from_``
5959

tox.ini

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ envlist = py36, py37, py38, pypy3, docs
66
skip_missing_interpreters = True
77
requires = pip >= 19.0.0
88

9+
910
[travis]
1011
python =
1112
3.6: py36, docs
@@ -14,13 +15,15 @@ python =
1415
pypy3: pypy3
1516

1617

18+
1719
[build-system]
1820
requires = [
1921
setuptools >= 46.1.3
2022
wheel >= 0.34.2
2123
]
2224
build-backend = "setuptools"
2325

26+
2427
[testenv]
2528
# Install test requirements
2629
deps = -r{toxinidir}/tests/requirements.txt
@@ -30,13 +33,15 @@ commands =
3033
; Run tests
3134
python -m pytest --cov=domdf_python_tools --reruns 1 --reruns-delay 30 -r aR tests/
3235

36+
3337
[testenv:docs]
3438
basepython = python3.6
3539
changedir={toxinidir}/doc-source
3640
deps = -r{toxinidir}/requirements.txt
3741
-r{toxinidir}/doc-source/requirements.txt
3842
commands = sphinx-build -M html . ./build
3943

44+
4045
[testenv:bumpversion]
4146
skip_install = true
4247
deps = bump2version
@@ -49,52 +54,48 @@ deps = setuptools >= 46.1.3
4954
wheel >= 0.34.2
5055
commands = python setup.py sdist bdist_wheel
5156

57+
5258
[testenv:lint]
5359
basepython = python3.6
5460
ignore_errors=true
5561
skip_install = true
5662
deps =
5763
autopep8 >=1.5.2
5864
flake8 >=3.8.2
59-
commands =
60-
flake8 domdf_python_tools
61-
flake8 tests
65+
commands = flake8 domdf_python_tools tests
66+
6267

6368
[testenv:yapf]
6469
basepython = python3.6
6570
skip_install = true
6671
ignore_errors=true
67-
deps =
68-
yapf
69-
commands =
70-
yapf -i domdf_python_tools --recursive
71-
yapf -i --recursive tests
72+
deps = yapf
73+
commands = yapf -i --recursive domdf_python_tools tests
74+
7275

7376
[testenv:isort]
7477
basepython = python3.6
7578
skip_install = true
7679
ignore_errors=true
7780
deps =
7881
isort
79-
commands =
80-
isort -rc domdf_python_tools
81-
isort -rc tests
82+
commands = isort --recursive domdf_python_tools tests
83+
8284

8385
[testenv:mypy]
8486
basepython = python3.6
8587
skip_install = true
8688
ignore_errors=true
87-
deps =
88-
mypy
89-
commands =
90-
mypy --recursive domdf_python_tools
91-
mypy --recursive tests
89+
deps = mypy
90+
commands = mypy domdf_python_tools tests
91+
9292

9393
[flake8]
9494
max-line-length = 120
9595
select = E301 E303 E304 E305 E306 E502 W291 W293 W391 E226 E225 E241 E231 E101 E111 E112 E113 E121 E122 E124 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 W292 E265
9696
exclude = .git,__pycache__,doc-source,old,build,dist,make_conda_recipe.py,__pkginfo__.py,setup.py
9797

98+
9899
[mypy]
99100
python_version = 3.6
100101
ignore_missing_imports = True

0 commit comments

Comments
 (0)