Action that finds Python 3 syntax errors and undefined names
A GitHub Action that runs selected flake8 tests on the Python code in your repo. If there are syntax errors or undefined names found in your Python code then this Action will fail.
Example workflow (Put the following text into .github/workflows/main.yml):
on: push
name: Lint Python
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cclauss/Find-Python-syntax-errors-action@masterFlake8 finds Python 3 syntax errors and undefined names
$ flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics
E901,E999,F821,F822,F823 are the "showstopper" flake8 issues that can halt the runtime with a SyntaxError, NameError, etc. These 5 are different from most other flake8 issues which are merely "style violations" -- useful for readability but they do not effect runtime safety.
- F821: undefined name
name - F822: undefined name
namein__all__ - F823: local variable name referenced before assignment
- E901: SyntaxError or IndentationError
- E999: SyntaxError -- failed to compile a file into an Abstract Syntax Tree

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
