From 9c19ef31a86fbf29cdba03d672ca1f2df918c5d4 Mon Sep 17 00:00:00 2001 From: "repo-helper[bot]" <74742576+repo-helper[bot]@users.noreply.github.com> Date: Mon, 23 Nov 2020 16:34:58 +0000 Subject: [PATCH] Updated files with 'repo_helper'. --- .github/workflows/cleanup.yml | 14 ++++++++++++++ .github/workflows/python_ci_linux.yml | 3 ++- .isort.cfg | 12 ++++++------ .pre-commit-config.yaml | 4 ++-- README.rst | 2 +- doc-source/requirements.txt | 2 +- repo_helper.yml | 3 --- setup.cfg | 4 ++-- tox.ini | 21 +++++++++------------ 9 files changed, 37 insertions(+), 28 deletions(-) create mode 100644 .github/workflows/cleanup.yml 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 28004a2..8a90408 100644 --- a/.github/workflows/python_ci_linux.yml +++ b/.github/workflows/python_ci_linux.yml @@ -37,6 +37,7 @@ jobs: - name: "Run Tests for Python ${{ matrix.python-version }}" run: "python -m tox" + - name: "Upload Coverage" uses: actions/upload-artifact@v2 with: @@ -75,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 5d996a6..05356b9 100644 --- a/.isort.cfg +++ b/.isort.cfg @@ -16,14 +16,14 @@ known_third_party = click consolekit coverage - coverage-pyver-pragma - domdf-python-tools + coverage_pyver_pragma + domdf_python_tools github pytest - pytest-cov - pytest-randomly - pytest-timeout - repo-helper + pytest_cov + pytest_randomly + pytest_timeout + repo_helper requests virtualenv known_first_party = repo_helper_devenv diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2305c2c..9821c23 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 6deb01e..94344c5 100644 --- a/README.rst +++ b/README.rst @@ -35,7 +35,7 @@ repo_helper_devenv :alt: Docs Check Status .. |travis| image:: https://github.com/domdfcoding/repo_helper_devenv/workflows/Linux%20Tests/badge.svg - :target: https://github.com/domdfcoding/repo_helper_devenv/actions?query=workflow%3A%Linux+Tests%22 + :target: https://github.com/domdfcoding/repo_helper_devenv/actions?query=workflow%3A%22Linux+Tests%22 :alt: Linux Test Status .. |actions_windows| image:: https://github.com/domdfcoding/repo_helper_devenv/workflows/Windows%20Tests/badge.svg diff --git a/doc-source/requirements.txt b/doc-source/requirements.txt index cd5e5f2..fa7c59e 100644 --- a/doc-source/requirements.txt +++ b/doc-source/requirements.txt @@ -9,7 +9,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 e96089f..c2b66cf 100644 --- a/repo_helper.yml +++ b/repo_helper.yml @@ -29,10 +29,7 @@ python_versions: extra_sphinx_extensions: - sphinx_click -travis_pypi_secure: "Ve347lvfcmdZUwa8/F+nYCs6Lturm2cwFz7+wCsFY4befcyDz0NEfq8CbTiy+rD7e7rUp46i2dCb35r8GbP+U8pyxzgUprTMNzmkVsTqttrzcdrFgUhJCb5vqKix7rSjIqXEY2a8PHUn1lOpilyARwQLBNoxEVGc2Sj23YwVOPTQq8uXZaF7zCZLnEdtNGEjfxIvZ1s2L03bXLpTwrIVUrGk4X3YefgnlCdPn+B+WV7qWWLsYhGuSePuhWXwqNP4dDRmXV+3hoOktg8pUqTs/AfA8VVbZgbDWdyRzDDRSfOt9OKuVi/5aA7OYAkLL74dW2+sWeLFgCZ8Nz6IgtUafcSKtRssszGd/AEE6e5NR6vVP7NBlN8MigRI2WQDz3t4qmexkQOt8dusf5d1r8+d958atFCQQ3knP5j5AgohdsY5niIyJLfsMvzSCQqYjZaLpkYLaLwHsa6iye1yvUQhQrdLowAhy7Mg7M6hImWie4UzaqVjpNXaWUtyxW4Up34aC0VzQKq2Nbm0bwLWHKCs8ItNYUHbnDk1EFdmDkE5BKziR+5izIZERFU6c3b5LnHIYStxJa7c45tANCDeiXgFokM8croaqpZ+2xam1OCJ5jsnsCDRUqeqTAY0bl2lk1dgsZLreTzbJYovLqvvJqzd9WbvgPXaZkymVLRhcnRDY2w=" sphinx_html_theme: furo standalone_contrib_guide: true - -use_travis: false diff --git a/setup.cfg b/setup.cfg index 708704c..8eb835a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -25,11 +25,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 Typing :: Typed @@ -41,9 +41,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 80ece47..361aeef 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=repo_helper_devenv -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 = repo_helper_devenv 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}