-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Note that because of a bug fix in Python 3.8, the position of `noqa: F811` for @overload has to be changed (see also https://gitlab.com/pycqa/flake8/issues/583). So, if we want to pass flake8 both with Python 3.7 and 3.8, we need to put `noqa: F811` for two lines per @overload. This situation will be resolved by a new release of pyflakes with improving @overload detection PyCQA/pyflakes#435.
- Loading branch information
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
lint: | ||
strategy: | ||
matrix: | ||
python: [3.7, 3.8] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Set PY | ||
run: echo "::set-env name=PY::$(python --version --version | sha256sum | cut -d' ' -f1)" | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache/pre-commit | ||
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} | ||
- run: pip install gitlint | ||
- run: gitlint | ||
- uses: pre-commit/[email protected] | ||
test: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-16.04, ubuntu-18.04] | ||
python: [2.7, 3.5, 3.6, 3.7, 3.8] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- run: python formset.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters