Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# workflow-python-lint
Only allows code that passes common linters for Python (black, etc) to merge into main

In the repo settings, open Branches, add a rule for main, and enable Require a pull request before merging.
Turn on Require status checks to pass and select Python CI or the ci job as a required check.

The workflow in this repository will fail if the python code does not pass a lint test (black)
or any of the tests fail.