Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Commit

Permalink
🤖 feat(ci): update from atlas.workflows(4990479104bd1a53839e2315325d1…
Browse files Browse the repository at this point in the history
…a09ae280aa1)
  • Loading branch information
atlas-athena committed Aug 13, 2023
1 parent ecfe7bd commit 2e8d32b
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/formatter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Formatter

on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
- feature/**

jobs:
formatter:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Add a problem matcher
run: echo "::add-matcher::.github/workflows/matchers/black.json"
- name: Format
uses: psf/black@stable
with:
options: "--check --diff --color --line-length 120"
jupyter: true
15 changes: 15 additions & 0 deletions .github/workflows/matchers/black.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"problemMatcher": [
{
"owner": "black",
"severity": "error",
"pattern": [
{
"regexp": "^(would reformat) (.+)$",
"file": 2,
"message": 1
}
]
}
]
}

0 comments on commit 2e8d32b

Please sign in to comment.