Skip to content

Commit

Permalink
Move failing pre-commit linters to GHA
Browse files Browse the repository at this point in the history
Ref #343
  • Loading branch information
webknjaz committed Dec 1, 2020
1 parent 35a4ad2 commit 5dcaad7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/python-linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,19 @@ jobs:
- ubuntu-latest
toxenv:
- pre-commit
# - pre-commit-failing
- setup-check
- build-docs
- spellcheck-docs
- linkcheck-docs
experimental:
- false
include:
- experimental: true
os: ubuntu-latest
python-version: 3.9
toxenv: pre-commit-failing

continue-on-error: ${{ matrix.experimental }}

env:
TOX_PARALLEL_NO_SPINNER: 1
Expand Down
10 changes: 0 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ python:
- &pypy3 pypy3

_base_envs:
- &stage_lint
stage: &stage_lint_name lint
- &stage_test_priority
stage: &stage_test_priority_name test against latest Python versions first (under GNU/Linux)
- &stage_deploy
Expand All @@ -28,19 +26,12 @@ _base_envs:
jobs:
fast_finish: true
allow_failures:
- env: TOXENV=pre-commit-failing
- python: nightly
include:
- python: pypy
env:
PYTEST_ADDOPTS: >-
'-p no:warnings'
- <<: *stage_lint
name: temporary failing pre-commit.com tool linters
env: TOXENV=pre-commit-failing
# Some linters depend on pyyaml, which fails under Python 3.7 now:
python: 3.6
after_failure: skip
- <<: *pure_python_base_priority
python: 3.8
- <<: *pure_python_base_priority
Expand Down Expand Up @@ -91,6 +82,5 @@ after_failure:
- echo Outputting python invocation log from $py_log
- cat $py_log
stages:
- *stage_lint_name
- *stage_test_priority_name
- name: *stage_deploy_name

0 comments on commit 5dcaad7

Please sign in to comment.