diff --git a/Python_format.yml b/Python_format.yml new file mode 100644 index 0000000..a295db8 --- /dev/null +++ b/Python_format.yml @@ -0,0 +1,17 @@ +name: Format Python + +on: [push, pull_request] +jobs: + format: + name: Format + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Setup Python 3.7 + uses: actions/setup-python@v2 + with: + python-version: 3.7 + - name: Check formatting + run: | + pip install black==21.6b0 + black --check --diff ./