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(b97e27a81df9accd6ef0e4ea38b818c…
Browse files Browse the repository at this point in the history
…8a8500608)
  • Loading branch information
atlas-athena committed Aug 11, 2023
1 parent 86038a9 commit d7ddedb
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/formatter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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"
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 d7ddedb

Please sign in to comment.