Merge pull request #30 from jepler/precommit-dot-ci
Try out precommit.ci
This commit is contained in:
commit
604c56357d
4 changed files with 3 additions and 16 deletions
15
.github/workflows/test.yml
vendored
15
.github/workflows/test.yml
vendored
|
|
@ -67,18 +67,3 @@ jobs:
|
|||
with:
|
||||
name: coverage for ${{ matrix.python-version }} on ${{ matrix.os-version }}
|
||||
path: coverage.xml
|
||||
|
||||
pre-commit:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.9
|
||||
- name: set PY
|
||||
run: echo >>$GITHUB_ENV PY="$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')"
|
||||
- uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.cache/pre-commit
|
||||
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
|
||||
- uses: pre-commit/action@v1.1.0
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ SPDX-License-Identifier: GPL-3.0-only
|
|||
[](https://pypi.org/project/wwvb)
|
||||

|
||||
[](https://lgtm.com/projects/g/jepler/wwvbpy/context:python)
|
||||
[](https://results.pre-commit.ci/latest/github/jepler/wwvbpy/main)
|
||||
|
||||
# Purpose
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ build
|
|||
click
|
||||
coverage
|
||||
mypy; implementation_name=="cpython"
|
||||
platformdirs
|
||||
pre-commit
|
||||
python-dateutil
|
||||
requests; implementation_name=="cpython"
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
from tkinter import Tk, Canvas
|
||||
from tkinter import Tk, Canvas # pylint: disable=import-error
|
||||
from typing import Any, Generator, Tuple
|
||||
import threading
|
||||
import time
|
||||
|
|
|
|||
Loading…
Reference in a new issue