Skip to content

Commit

Permalink
Drop linting and styles from Actions
Browse files Browse the repository at this point in the history
Running via pre-commit.ci is way faster and also re-uses definitions
from pre-commit hooks.
  • Loading branch information
Hugo Osvaldo Barrera committed Aug 25, 2021
1 parent 4a81921 commit a9f6a4c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 36 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ jobs:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9"]
tox-test: ["default"]
include:
- python-version: "3.9"
tox-test: "mypy"
- python-version: "3.9"
tox-test: "style"

steps:
- uses: "actions/checkout@v2"
Expand All @@ -49,15 +44,3 @@ jobs:
# Fake a TTY
shell: 'script -q -e -c "bash --noprofile --norc -eo pipefail {0}"'
run: "python -m tox"

- name: "Run tox targets for mypy"
if: ${{ matrix.tox-test == 'mypy' }}
# Fake a TTY
shell: 'script -q -e -c "bash --noprofile --norc -eo pipefail {0}"'
run: "python -m tox -e mypy"

- name: "Run tox targets for style"
if: ${{ matrix.tox-test == 'style' }}
# Fake a TTY
shell: 'script -q -e -c "bash --noprofile --norc -eo pipefail {0}"'
run: "python -m tox -e style"
20 changes: 1 addition & 19 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = style,mypy,{py36,py37,py38}-tests,py39-tests-{pytz201702,pytz201610,pytz_latest}
envlist = {py36,py37,py38}-tests,py39-tests-{pytz201702,pytz201610,pytz_latest}
skip_missing_interpreters = True

[testenv]
Expand Down Expand Up @@ -35,31 +35,13 @@ python =
3.8: py38
3.9: py39

[testenv:style]
skip_install=True
whitelist_externals = sh
deps =
flake8
flake8-bugbear
commands =
flake8 tests khal setup.py
sh -c '! grep -ri seperat */*'

[testenv:docs]
whitelist_externals = make
commands =
pip install -r doc/requirements.txt
make -C doc html
make -C doc man

[testenv:mypy]
whitelist_externals = sh
deps =
{[testenv]deps}
mypy
commands =
mypy --install-types --non-interactive {toxinidir}/khal

[flake8]
max-line-length = 100
ignore = E252,W504,E121,B008
Expand Down

0 comments on commit a9f6a4c

Please sign in to comment.