Skip to content

Commit eb7f53f

Browse files
committed
Update tox and project.toml
1 parent 82cdfb4 commit eb7f53f

3 files changed

Lines changed: 46 additions & 48 deletions

File tree

pyproject.toml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,41 @@ mda = "mdacli.__main__:main"
5959

6060
[tool.setuptools.packages.find]
6161
where = ["src"]
62+
63+
[tool.flake8]
64+
max_line_length = 80
65+
hang-closing = true
66+
ignore = [
67+
"W293",
68+
"W503",
69+
"D412",
70+
"D105",
71+
]
72+
docstring-convention = "numpy"
73+
74+
[tool.isort]
75+
line_length = 80
76+
indent = 4
77+
multi_line_output = 8
78+
include_trailing_comma = true
79+
lines_after_imports = 2
80+
sections = "FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
81+
known_first_party = "mdacli"
82+
known_third_party = [
83+
"MDAnalysis",
84+
"hypothesis",
85+
"matplotlib",
86+
"numpy",
87+
"pytest",
88+
]
89+
90+
[tool.pytest.ini_options]
91+
addopts = "-p pytest_cov"
92+
python_files = [
93+
"test_*.py",
94+
"*_test.py",
95+
"tests.py",
96+
]
97+
testpaths = [
98+
"tests"
99+
]

src/mdacli/libcli.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -759,13 +759,10 @@ def init_base_argparse(name, version, description):
759759
760760
Parameters
761761
----------
762-
763762
name : str
764763
Name of the cli program
765-
766764
version : str
767765
Version of the cli program
768-
769766
description : str
770767
Description of the cli program
771768

tox.ini

Lines changed: 8 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
minversion = 3.14.0
2+
minversion = 4.4.6
33
ignore_basepython_conflict = true
44
# these are the environments that will run when you
55
# execute `tox` in the command-line
@@ -52,8 +52,8 @@ deps =
5252
isort
5353
skip_install = true
5454
commands =
55-
flake8 {posargs:src/mdacli tests setup.py}
56-
isort --verbose --check-only --diff src/mdacli tests setup.py
55+
flake8 {posargs:src/mdacli tests}
56+
isort --verbose --check-only --diff src/mdacli tests
5757

5858
# asserts package build integrity
5959
[testenv:build]
@@ -62,19 +62,17 @@ commands =
6262
setenv =
6363
COMMIT_MSG = Test commit message
6464
deps =
65-
setuptools
66-
wheel
67-
twine
68-
docutils
69-
check-manifest
70-
readme-renderer
7165
bump2version
66+
build
67+
check-manifest
68+
twine
69+
7270
skip_install = true
7371
commands_pre = python {toxinidir}/devtools/clean_dist_check.py
7472
commands =
7573
python --version
7674
python {toxinidir}/devtools/check_changelog.py
77-
python setup.py sdist bdist_wheel
75+
python -m build
7876
twine check dist/*.whl
7977
twine check dist/*.tar.gz
8078
check-manifest {toxinidir}
@@ -104,38 +102,3 @@ commands =
104102
deps = safety
105103
skip_install = true
106104
commands = safety check
107-
108-
[flake8]
109-
max_line_length = 80
110-
hang-closing = true
111-
ignore =
112-
W293
113-
W503
114-
D412
115-
D105
116-
per-file-ignores = setup.py:E501
117-
docstring-convention = numpy
118-
119-
[isort]
120-
line_length = 80
121-
indent = 4
122-
multi_line_output = 8
123-
include_trailing_comma = true
124-
lines_after_imports = 2
125-
sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
126-
known_first_party = mdacli
127-
known_third_party =
128-
MDAnalysis
129-
hypothesis
130-
matplotlib
131-
numpy
132-
pytest
133-
134-
[tool:pytest]
135-
addopts = -p pytest_cov
136-
python_files =
137-
test_*.py
138-
*_test.py
139-
tests.py
140-
testpaths =
141-
tests

0 commit comments

Comments
 (0)