You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,5 +17,26 @@ In your `.github/workflows/main.yml`, set environment variable `PYLINT_THRESHOLD
17
17
uses: cfedermann/python-code-validator@master
18
18
env:
19
19
PYLINT_THRESHOLD: 8
20
+
BLACK_LINE_MAXLEN: 100
20
21
21
22
You can drop the `env:` section in your `main.yml` file if you want to use the default value `9`.
23
+
24
+
Set `BLACK_LINE_MAXLEN` to the desired max line length.
25
+
26
+
In your local repo, it may be useful to add a `validation.sh` script to allow local testing before the GitHub action is run on the server. The following is an example used in a GitHub codespace (where `./venv/` stores the virtual environment):
27
+
28
+
#!/bin/sh -e
29
+
30
+
pip install black mypy pylint-fail-under reorder-python-imports safety
0 commit comments