diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml new file mode 100644 index 0000000..741c0bd --- /dev/null +++ b/.github/workflows/cleanup.yml @@ -0,0 +1,14 @@ +# This file is managed by 'repo_helper'. Don't edit it directly. +--- +name: Artefact Cleaner +on: + schedule: + - cron: 0 9 1 * * +jobs: + Clean: + runs-on: ubuntu-latest + steps: + - name: cleanup + uses: glassechidna/artifact-cleaner@v2 + with: + minimumAge: 1000000.0 diff --git a/.github/workflows/python_ci_linux.yml b/.github/workflows/python_ci_linux.yml index b092a86..8a90408 100644 --- a/.github/workflows/python_ci_linux.yml +++ b/.github/workflows/python_ci_linux.yml @@ -76,7 +76,7 @@ jobs: shopt -s globstar python -m coverage combine coverage/**/.coverage - - name: "Upload Combined Coverage Aretfact" + - name: "Upload Combined Coverage Artefact" uses: actions/upload-artifact@v2 with: name: "combined-coverage" diff --git a/.isort.cfg b/.isort.cfg index 32dfedc..c5da830 100644 --- a/.isort.cfg +++ b/.isort.cfg @@ -15,17 +15,17 @@ default_section = THIRDPARTY known_third_party = attrs coverage - coverage-pyver-pragma + coverage_pyver_pragma docutils - docutils-stubs - domdf-python-tools + docutils_stubs + domdf_python_tools github pytest - pytest-cov - pytest-randomly - pytest-rerunfailures - pytest-timeout + pytest_cov + pytest_randomly + pytest_rerunfailures + pytest_timeout requests sphinx - sphinx-toolbox + sphinx_toolbox known_first_party = sphinxcontrib.default_values diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d0f115d..8e7aaf5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -59,13 +59,13 @@ repos: - id: forbid-crlf - repo: https://github.com/domdfcoding/yapf-isort - rev: v0.5.2 + rev: v0.5.4 hooks: - id: yapf-isort exclude: ^(doc-source/conf|__pkginfo__|make_conda_recipe|setup)\.py$ - repo: https://github.com/domdfcoding/dep_checker - rev: v0.3.1 + rev: v0.4.1 hooks: - id: dep_checker args: diff --git a/README.rst b/README.rst index 15e92dd..ec84f1e 100644 --- a/README.rst +++ b/README.rst @@ -35,7 +35,7 @@ default_values :alt: Docs Check Status .. |travis| image:: https://github.com/domdfcoding/default_values/workflows/Linux%20Tests/badge.svg - :target: https://github.com/domdfcoding/default_values/actions?query=workflow%3A%Linux+Tests%22 + :target: https://github.com/domdfcoding/default_values/actions?query=workflow%3A%22Linux+Tests%22 :alt: Linux Test Status .. |actions_windows| image:: https://github.com/domdfcoding/default_values/workflows/Windows%20Tests/badge.svg diff --git a/doc-source/requirements.txt b/doc-source/requirements.txt index 7d987e5..d832e28 100644 --- a/doc-source/requirements.txt +++ b/doc-source/requirements.txt @@ -7,7 +7,7 @@ sphinx-copybutton>=0.2.12 sphinx-notfound-page>=0.5 sphinx-prompt>=1.1.0 sphinx-tabs>=1.1.13 -sphinx-toolbox>=1.7.3 +sphinx-toolbox>=1.7.5 sphinxcontrib-httpdomain>=1.7.0 sphinxemoji>=0.1.6 toctree-plus>=0.0.4 diff --git a/repo_helper.yml b/repo_helper.yml index f9e4fda..55a221d 100644 --- a/repo_helper.yml +++ b/repo_helper.yml @@ -23,7 +23,6 @@ exclude_files: - bumpversion - rtfd -travis_pypi_secure: "Q3JxpZNAtfAIhepsoypTFQxJTaAH1rh5SuOcWjat3BSn7Clzj8oKc+cigP5NOuY39NBRL4veDt3GfU2xg1/94hZKc42e6e5qEm6062g+WZWFdQjpCSZIjk/ZUOwhKwOV9tBysEw1MPNbsTi4GUD81dv4fDuOJsj29TeQzOwAahxzTMdJeqU1xnaZUC5ewGfjDzmjHD73Q1AFuVtvZV4OoVEMpAO3W2LcKMvoKUyzskG0IX+WkcB9nQMYotuxWrOQmum5DPw1P+j1RKJzWa6k+CNF+SXxiOueUwcZL6xWospGa4sPWC7LjSk8USGAyV/WHAirWCjY1CTAl2BLQuTxx3KLl7YKDMXwcMkG/K40kvn68gXCZbFxiBbXDJuFW+2j3IIWJ4g6sFv2n+L5KsT6YMwZAGNcA61ylKZ0MGX/P6jBKWCGvRrbhvEx1Oecr/3JNfejLglOPRPwuFpmkQ4xqEzhsQfaQ32Q624wvhoRKnAjPAeUGBI16/+d6vLhXngRXkLEjgJADRwDQ8t2Ed7XdlfMm+JhdV19P0lkXxsOxe9nmGYJSU5WD4Mb+IxQZUgXgzYk+kZaQHO+pmbKNXgO/qP61I0Zce90XEcIOJB1zGk9POE+/83AFbvSAzz6TrA4vRtfFpLcQbgjBTJhXRlEYgSdAqPERmNaoVMKUgre/1w=" sphinx_html_theme: domdf_sphinx_theme @@ -34,5 +33,3 @@ classifiers: - 'Topic :: Documentation' - 'Topic :: Documentation :: Sphinx' - 'Topic :: Software Development :: Documentation' - -use_travis: false diff --git a/setup.cfg b/setup.cfg index 4f6eb3e..e6e4658 100644 --- a/setup.cfg +++ b/setup.cfg @@ -28,11 +28,11 @@ classifiers = Operating System :: OS Independent Programming Language :: Python Programming Language :: Python :: 3 :: Only - Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.6 Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 + Programming Language :: Python :: 3.10 Programming Language :: Python :: Implementation :: CPython Topic :: Documentation Topic :: Documentation :: Sphinx @@ -47,9 +47,9 @@ packages = find: [options.packages.find] exclude = + doc-source tests tests.* - doc-source [mypy] python_version = 3.6 diff --git a/tox.ini b/tox.ini index 7774c4f..01af308 100644 --- a/tox.ini +++ b/tox.ini @@ -2,7 +2,6 @@ # You may add new sections, but any changes made to the following sections will be lost: # * tox # * envlists -# * travis # * gh-actions # * testenv # * testenv:docs @@ -28,14 +27,6 @@ test = py36, py37, py38, py39, py310-dev qa = mypy, lint cov = py36, coverage -[travis] -python = - 3.6: py36, build, mypy - 3.7: py37, build - 3.8: py38, build - 3.9: py39, build - 3.10-dev: py310-dev, build - [gh-actions] python = 3.6: py36, build, mypy @@ -54,9 +45,7 @@ commands = python -m pytest --cov=sphinxcontrib.default_values -r aR tests/ {posargs} [testenv:docs] -setenv = - SHOW_TODOS = 1 - PIP_USE_FEATURE = 2020-resolver +setenv = SHOW_TODOS = 1 basepython = python3.8 changedir = {toxinidir}/doc-source deps = @@ -171,6 +160,14 @@ package = sphinxcontrib addopts = --color yes --durations 25 timeout = 300 +[travis] +python = + 3.6: py36, build, mypy + 3.7: py37, build + 3.8: py38, build + 3.9: py39, build + 3.10-dev: py310-dev, build + [testenv:yapf] basepython = python3.7 changedir = {toxinidir}