Skip to content

Commit

Permalink
Merge pull request #41 from SutubraResearch/v3.0.0-dev
Browse files Browse the repository at this point in the history
Temporarily disable Black formatting check on PRs
  • Loading branch information
SutubraResearch authored Aug 18, 2023
2 parents 4b779a5 + b66590d commit 3215b05
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 42 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
name: black-action
on: [pull_request]
jobs:
linter_name:
name: runner / black
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check files using the black formatter
uses: rickstaa/action-black@v1
id: action_black
with:
black_args: "."
- name: Create Pull Request
if: steps.action_black.outputs.is_formatted == 'true'
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: "Format Python code with psf/black push"
commit-message: ":art: Format Python code with psf/black"
body: |
There appear to be some python formatting errors in ${{ github.sha }}. This pull request
uses the [psf/black](https://github.com/psf/black) formatter to fix these issues.
base: ${{ github.head_ref }} # Creates pull request onto pull request or commit branch
branch: actions/black
# name: black-action
# on: [pull_request]
# jobs:
# linter_name:
# name: runner / black
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Check files using the black formatter
# uses: rickstaa/action-black@v1
# id: action_black
# with:
# black_args: "."
# - name: Create Pull Request
# if: steps.action_black.outputs.is_formatted == 'true'
# uses: peter-evans/create-pull-request@v3
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# title: "Format Python code with psf/black push"
# commit-message: ":art: Format Python code with psf/black"
# body: |
# There appear to be some python formatting errors in ${{ github.sha }}. This pull request
# uses the [psf/black](https://github.com/psf/black) formatter to fix these issues.
# base: ${{ github.head_ref }} # Creates pull request onto pull request or commit branch
# branch: actions/black
34 changes: 17 additions & 17 deletions .pre-commit-config.yaml.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
# - id: end-of-file-fixer
- id: trailing-whitespace
- id: check-added-large-files
args: ['--maxkb=80000']
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
# repos:
# - repo: https://github.com/pre-commit/pre-commit-hooks
# rev: v4.4.0
# hooks:
# - id: check-yaml
# # - id: end-of-file-fixer
# - id: trailing-whitespace
# - id: check-added-large-files
# args: ['--maxkb=80000']
# - repo: https://github.com/psf/black
# rev: 23.3.0
# hooks:
# - id: black
# - repo: https://github.com/PyCQA/isort
# rev: 5.12.0
# hooks:
# - id: isort

0 comments on commit 3215b05

Please sign in to comment.