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(f368e462afa152d1d51f5363a11cf6353a389e79) #4

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
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
}
]
}
]
}
Loading