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

feat(ci): update from atlas.workflows(b97e27a81df9accd6ef0e4ea38b818c8a8500608) #3

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}
]
}
]
}
Loading