Skip to content

Amber support

Amber support #60

Workflow file for this run

name: Black Formatter
on: [pull_request, workflow_dispatch]
permissions:
checks: write
contents: write
jobs:
run-linters:
name: Black Formatting
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install Python dependencies
run: pip install black
- name: Run Black formatting
uses: wearerequired/lint-action@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
black: true
black_dir: "transformato/"
black_args: '--extend-exclude="(bin/*|scripts/*|_version.py)"'
auto_fix: true
# flake8: true
# flake8_dir: "transformato/"
# flake8_args: "--exclude=scripts,bin,_version.py --max-line-length=88 --extend-ignore=E203 --exit-zero"
# - name: Setup flake8 annotations
# uses: rbialon/flake8-annotations@v1
# - name: Lint with flake8
# run: |
# pip install flake8 pep8-naming
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics