Skip to content

Commit ce0db20

Browse files
authored
Update README.md
1 parent 388172b commit ce0db20

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
## GitHub Action to find Python syntax errors and undefined names
22

3+
An action that runs selected [flake8](http://flake8.pycqa.org) tests on the Python code in your repo. If ___syntax errors or undefined names___ are found in the Python code then the action will fail.
4+
5+
Example workflow:
6+
```
7+
workflow "New workflow" {
8+
on = "push"
9+
resolves = ["action"]
10+
}
11+
12+
action "action" {
13+
uses = "cclauss/Find-Python-syntax-errors-action@master"
14+
}
15+
```
316
$ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
417

518
__E901,E999,F821,F822,F823__ are the "_showstopper_" [flake8](http://flake8.pycqa.org) 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.

0 commit comments

Comments
 (0)