Skip to content
Merged
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
5 changes: 3 additions & 2 deletions .github/workflows/python-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ jobs:
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry --version
make export
- name: Install dependencies
run: |
poetry install
- name: Format and test
run: |
make format test type-check
poetry run black src/ tests/
poetry run mypy -p src
poetry run pytest tests/
- name: Tag check
run: |
# タグ情報のみfetch
Expand Down
19 changes: 0 additions & 19 deletions Makefile

This file was deleted.

31 changes: 2 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,36 +19,9 @@ cp src/.env.sample src/.env
poetry run python src/main.py
```

or

```bash
make main
```

## フォーマット

```bash
make format
```

## テスト実行

```bash
make test
```

## 型チェック

```bash
make type-check
```

## 全てまとめてチェック

```bash
make format test type-check
```
## その他コマンド

[mise.toml](./mise.toml)
## リポジトリのバージョンアップ

```bash
Expand Down
30 changes: 30 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[tools]
python = "3.12"

[tasks.main]
description = "プログラムを実行する"
run = "poetry run python src/main.py"

[tasks.test]
description = "テストを実行する"
run = "poetry run pytest tests/"

[tasks.format]
description = "ファイルのフォーマットを行う"
run = "poetry run black src/ tests/"

[tasks.type-check]
description = "プログラムの型チェックを行う"
run = "poetry run mypy -p src"

[tasks.check-all]
description = "全てまとめてチェックを行う"
run =[
"mise run format",
"mise run type-check",
"mise run test"
]

[tasks.export]
description = "requirements.txtを出力する"
run = "poetry export -f requirements.txt --output requirements.txt"
Loading