Skip to content

Commit

Permalink
Disable formatting action
Browse files Browse the repository at this point in the history
  • Loading branch information
olijeffers0n committed Apr 25, 2023
1 parent d555f36 commit 5f81fdd
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
name: Format code

on:
pull_request:
branches:
- master

jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Format code with black
run: |
pip install black
black . --exclude rustplus/api/remote/camera/camera_constants.py
- name: Sort imports with isort
run: |
pip install isort
isort .
- name: Remove unused imports with autoflake
run: |
pip install autoflake
autoflake --in-place --remove-all-unused-imports --remove-unused-variables --ignore-init-module-imports --recursive .
- name: Commit changes
uses: EndBug/add-and-commit@v4
with:
author_name: ${{ github.actor }}
author_email: ${{ github.actor }}@users.noreply.github.com
message: "Format code with black"
add: "."
branch: ${{ github.ref }}
# name: Format code
#
# on:
# pull_request:
# branches:
# - master
#
# jobs:
# format:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Format code with black
# run: |
# pip install black
# black . --exclude rustplus/api/remote/camera/camera_constants.py
# - name: Sort imports with isort
# run: |
# pip install isort
# isort .
# - name: Remove unused imports with autoflake
# run: |
# pip install autoflake
# autoflake --in-place --remove-all-unused-imports --remove-unused-variables --ignore-init-module-imports --recursive .
# - name: Commit changes
# uses: EndBug/add-and-commit@v4
# with:
# author_name: ${{ github.actor }}
# author_email: ${{ github.actor }}@users.noreply.github.com
# message: "Format code with black"
# add: "."
# branch: ${{ github.ref }}

0 comments on commit 5f81fdd

Please sign in to comment.