test: 新增部分測試、修正細微錯誤 (#41) #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Code formatter | |
on: [push] | |
jobs: | |
linter_name: | |
name: Code formatter | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Format code with black and isort | |
run: | | |
pip install black isort | |
isort . | |
black . | |
- name: Commit changes | |
uses: EndBug/add-and-commit@v9 | |
with: | |
author_name: ${{ github.actor }} | |
author_email: ${{ github.actor }}@users.noreply.github.com | |
message: "style: Format code with black and isort" | |
add: "." |