mitmproxy/.github/workflows/autofix.yml
dependabot[bot] 3dd5193b0f
Bump the github-actions group with 3 updates (#6294)
Bumps the github-actions group with 3 updates: [install-pinned/black](https://github.com/install-pinned/black), [autofix-ci/action](https://github.com/autofix-ci/action) and [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action).


Updates `install-pinned/black` from c045c39e0ae31872523b1a8eaad8acd3d7ed7652 to 97252d99da3d792eedae55ff50e64df8bd162447
- [Release notes](https://github.com/install-pinned/black/releases)
- [Commits](c045c39e0a...97252d99da)

Updates `autofix-ci/action` from 8bc06253bec489732e5f9c52884c7cace15c0160 to 8caa572fd27b0019a65e4c695447089c8d3138b9
- [Release notes](https://github.com/autofix-ci/action/releases)
- [Commits](8bc06253be...8caa572fd2)

Updates `docker/setup-buildx-action` from 2.8.0 to 2.9.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](16c0bc4a6e...4c0219f9ac)

---
updated-dependencies:
- dependency-name: install-pinned/black
  dependency-type: direct:production
  dependency-group: github-actions
- dependency-name: autofix-ci/action
  dependency-type: direct:production
  dependency-group: github-actions
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-01 23:07:35 +00:00

53 lines
1.5 KiB
YAML

name: autofix.ci
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
autofix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: install-pinned/pyupgrade@af7d65f31bddb01097a24da6c8fb694441f51cba
- name: Run pyupgrade
run: |
shopt -s globstar
export GLOBIGNORE='mitmproxy/contrib/**'
pyupgrade --exit-zero-even-if-changed --keep-runtime-typing --py310-plus **/*.py
- uses: install-pinned/reorder_python_imports@9766e7ba4f33497b107014571afe3b5f4c2d946b
- name: Run reorder-python-imports
run: |
shopt -s globstar
export GLOBIGNORE='mitmproxy/contrib/**'
reorder-python-imports --exit-zero-even-if-changed --py310-plus **/*.py
- uses: install-pinned/yesqa@e45b0928dd14d5c2a22695e32de8936530ba7a49
- name: Run yesqa
run: |
shopt -s globstar
export GLOBIGNORE='mitmproxy/contrib/**'
yesqa **/*.py || true
- uses: install-pinned/autoflake@46b4898323be58db319656fe2758f3fd5ddfee32
- run: autoflake --in-place --remove-all-unused-imports --exclude mitmproxy/contrib -r .
- uses: install-pinned/black@97252d99da3d792eedae55ff50e64df8bd162447
- run: black .
- name: Run prettier
run: |
npm ci
npm run prettier
working-directory: web
- uses: mhils/add-pr-ref-in-changelog@main
- uses: autofix-ci/action@8caa572fd27b0019a65e4c695447089c8d3138b9