nncli

NextCloud Notes Command Line Interface
git clone git://git.danielmoch.com/nncli.git
Log | Files | Refs | LICENSE

commit c53de1aca3358c456c3348923291f5b5f9cd2525
parent d701864f55ddc4ecdc47ca46690eb1c568a9166c
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Fri, 17 Dec 2021 06:36:29 -0500

consolidate tool configs in pyproject.toml

Diffstat:
D.coveragerc | 6------
Mpyproject.toml | 58++++++++++++++++++++++++++++++++++++++++++++++------------
Dpytest.ini | 2--
Dtox.ini | 34----------------------------------
4 files changed, 46 insertions(+), 54 deletions(-)

diff --git a/.coveragerc b/.coveragerc @@ -1,6 +0,0 @@ -[run] -branch = True -omit = nncli/__main__.py - -[report] -show_missing = True diff --git a/pyproject.toml b/pyproject.toml @@ -18,11 +18,12 @@ classifiers = [ "Programming Language :: Python :: 3 :: Only", ] dependencies = [ - "urwid", - "requests", "appdirs", "click", + "requests", + "urwid", ] + dynamic = [ "version", "description" ] [project.urls] @@ -31,22 +32,19 @@ Homepage = "https://nncli.org" [project.optional-dependencies] dev = [ - "pip-tools", - "pytest>=5.2,<5.3", - "pytest-cov", - "pytest-mock", - "pylint", - "pudb", - "sphinx", "flit", - "setuptools", "mock", - "tox", "pathlib2; python_version < '3.5'", + "pip-tools", + "pylint", + "pytest-cov", + "pytest-mock", + "pytest>=6.2.5", "scandir; python_version < '3.5'", - "vulture", + "sphinx", "sphinx-rtd-theme", "sphinx-sitemap", + "vulture", ] doc = [ "sphinx", @@ -54,3 +52,39 @@ doc = [ [project.scripts] nncli = "nncli.cli:main" + +[tool.coverage.run] +branch = true +omit = "nncli/__main__.py" + +[tool.coverage.report] +show_missing = true + +[tool.pytest.ini_options] +mock_use_standalone_module = true + +[tool.tox] +legacy_tox_ini = """ +[tox] +envlist = py34, py35, py36, py37, py38, pylint, coverage +skipsdist = True + +[testenv:pylint] +deps = -rrequirements-dev.txt +whitelist_externals = make +commands = + make lint + +[testenv:coverage] +deps = -rrequirements-dev.txt +whitelist_externals = make +commands = + make coverage + +[testenv] +deps = -rrequirements-dev.txt +whitelist_externals = make +commands = + make install + python -m pytest +""" diff --git a/pytest.ini b/pytest.ini @@ -1,2 +0,0 @@ -[pytest] -mock_use_standalone_module = true diff --git a/tox.ini b/tox.ini @@ -1,34 +0,0 @@ -[tox] -envlist = py34, py35, py36, py37, py38, pylint, coverage -skipsdist = True - -[testenv:pylint] -deps = pylint -setenv = - PIPENV_NO_INHERIT = 1 - PIPENV_HIDE_EMOJIS = 1 -whitelist_externals = make -commands = - make test-install - make lint - -[testenv:coverage] -deps = pipenv -setenv = - PIPENV_NO_INHERIT = 1 - PIPENV_HIDE_EMOJIS = 1 -whitelist_externals = make -commands = - make test-install - make coverage - -[testenv] -deps = pipenv -setenv = - PIPENV_NO_INHERIT = 1 - PIPENV_HIDE_EMOJIS = 1 -whitelist_externals = make -commands = - make test-install - make install - python -m pytest