From eb27c097add9c092c9b3e639c5ff1d4e6abdf064 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Thu, 9 Sep 2021 11:52:55 +0100 Subject: [PATCH] misc metadata & tests updates --- .github/workflows/test.yml | 17 ++++++++++++++--- .pre-commit-config.yaml | 4 ++-- LICENCE | 2 +- setup.cfg | 10 +++++++--- 4 files changed, 24 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f26e8e0..2840b52 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,5 +1,9 @@ name: Test -on: [push, pull_request] +on: + push: + pull_request: + schedule: + - cron: '0 9 * * 1' # M H d m w (Mondays at 9:00) jobs: check: if: startsWith(github.ref, 'refs/tags') || github.event_name == 'pull_request' || github.repository_owner != 'iterative' @@ -18,8 +22,15 @@ jobs: key: pre-commit|${{ env.PYSHA }}|${{ hashFiles('.pre-commit-config.yaml') }} - run: pip install -U pre-commit - uses: reviewdog/action-setup@v1 - - run: | - pre-commit run -a flake8 | reviewdog -f=pep8 -name=flake8 -tee -reporter=github-check -filter-mode nofilter + - if: github.event_name != 'schedule' + run: | + if [[ $EVENT == pull_request ]]; then + REPORTER=github-pr-review + else + REPORTER=github-check + fi + pre-commit run -a todo | reviewdog -efm="%f:%l: %m" -name=TODO -tee -reporter=$REPORTER -filter-mode nofilter + pre-commit run -a flake8 | reviewdog -f=pep8 -name=flake8 -tee -reporter=$REPORTER -filter-mode nofilter env: REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: pre-commit run -a --show-diff-on-failure diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b05349d..a65a323 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,8 +21,8 @@ repos: - id: todo name: Check TODO language: pygrep - entry: TODO args: [-i] + entry: TODO types: [text] exclude: ^(.pre-commit-config.yaml|.github/workflows/test.yml)$ - repo: https://gitlab.com/pycqa/flake8 @@ -36,7 +36,7 @@ repos: - flake8-debugger - flake8-string-format - repo: https://github.com/psf/black - rev: 21.7b0 + rev: 21.8b0 hooks: - id: black - repo: https://github.com/PyCQA/isort diff --git a/LICENCE b/LICENCE index 1cca873..aa47a92 100644 --- a/LICENCE +++ b/LICENCE @@ -1,4 +1,4 @@ -Copyright 2020 Casper da Costa-Luis +Copyright 2020-2021 Casper da Costa-Luis Licensed under the Apache Licence, Version 2.0 (the "Licence"); you may not use this project except in compliance with the Licence. diff --git a/setup.cfg b/setup.cfg index 62d4c4e..4e11b74 100644 --- a/setup.cfg +++ b/setup.cfg @@ -9,8 +9,10 @@ url=https://github.com/iterative/shtab project_urls= Changelog=https://github.com/iterative/shtab/releases Documentation=https://github.com/iterative/shtab/#shtab -maintainer=Casper da Costa-Luis -maintainer_email=casper.dcl@physics.org +author=Casper da Costa-Luis +author_email=casper.dcl@physics.org +maintainer=Iterative +maintainer_email=support@iterative.ai keywords=tab, complete, completion, shell, bash, zsh, argparse platforms=any provides=shtab @@ -51,11 +53,13 @@ classifiers= Topic :: Education :: Testing Topic :: Office/Business Topic :: Other/Nonlisted Topic + Topic :: Software Development Topic :: Software Development :: Build Tools Topic :: Software Development :: Libraries Topic :: Software Development :: Libraries :: Python Modules Topic :: Software Development :: Pre-processors Topic :: Software Development :: User Interfaces + Topic :: System Topic :: System :: Installation/Setup Topic :: System :: Shells Topic :: System :: System Shells @@ -82,7 +86,7 @@ exclude=build,dist,.eggs,.git,__pycache__ [isort] profile=black -known_first_party=shtab +known_first_party=shtab,tests [tool:pytest] timeout=5