index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Dylan M. Taylor <dylan@dylanmtaylor.com> | 2021-05-15 09:27:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-15 09:27:40 -0400 |
commit | ad444caf9dd6efb039ad568281d90a16ead68eb4 (patch) | |
tree | 1ba500342587701f4f4fe3f2357f6eb5e3e67355 | |
parent | 67659b2b38090f3724e876dbf325226673e082bf (diff) |
-rw-r--r-- | .github/workflows/lint-python.yaml | 20 | ||||
-rw-r--r-- | .github/workflows/mypy.yaml | 12 |
diff --git a/.github/workflows/lint-python.yaml b/.github/workflows/lint-python.yaml new file mode 100644 index 00000000..c6b16467 --- /dev/null +++ b/.github/workflows/lint-python.yaml @@ -0,0 +1,20 @@ +on: [push, pull_request] +name: Lint Python and Find Syntax Errors +jobs: + lint: + runs-on: ubuntu-latest + container: + image: archlinux:latest + steps: + - uses: actions/checkout@v2 + - run: pacman --noconfirm -Syu python python-pip mypy + - run: python -m pip install --upgrade pip + - run: pip install flake8 pytest black-but-with-tabs-instead-of-spaces + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors + flake8 . --count --select=E9,F63,F7 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: run mypy + run: mypy . --ignore-missing-imports diff --git a/.github/workflows/mypy.yaml b/.github/workflows/mypy.yaml deleted file mode 100644 index 18823a66..00000000 --- a/.github/workflows/mypy.yaml +++ /dev/null @@ -1,12 +0,0 @@ -on: [push, pull_request] -name: Lint Python and Find Syntax Errors -jobs: - lint: - runs-on: ubuntu-latest - container: - image: archlinux:latest - steps: - - uses: actions/checkout@v2 - - run: pacman --noconfirm -Syu python python-pip mypy - - name: run mypy - run: mypy . --ignore-missing-imports
\ No newline at end of file |