diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000000..6deafc2617 --- /dev/null +++ b/.flake8 @@ -0,0 +1,2 @@ +[flake8] +max-line-length = 120 diff --git a/.github/workflows/script_lint.yml b/.github/workflows/script_lint.yml new file mode 100644 index 0000000000..fe1233f4d8 --- /dev/null +++ b/.github/workflows/script_lint.yml @@ -0,0 +1,24 @@ +--- +name: Script Lint +on: + pull_request: + paths: + - 'common/**' +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true +jobs: + Python: + name: Python Linting + runs-on: ubuntu-latest + steps: + - name: Check out source repository + uses: actions/checkout@v4 + - name: Set up Python environment + uses: actions/setup-python@v4 + with: + python-version: "3.10" + - name: flake8 Lint + uses: py-actions/flake8@v2 + with: + path: "common/CI"