Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release v0.6.0 #109

Merged
merged 412 commits into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
412 commits
Select commit Hold shift + click to select a range
10c8c8d
feat: Missingクラスを追加
yupix Dec 3, 2023
c2cac8f
chore: remove_dict_emptyで特定のkeyをignoreできるように
yupix Dec 3, 2023
5e36908
feat: remove_dict_missing関数を追加
yupix Dec 3, 2023
300c2e4
chore: mipac.utils.utilのMISSINGを使うように
yupix Dec 3, 2023
d55a49c
chore: 古いdrive達をいったん避難
yupix Dec 3, 2023
b91aaa1
feat: drive/files/* をサポート
yupix Dec 3, 2023
6e26406
chore: サポート状況を更新
yupix Dec 3, 2023
af4bb82
chore: 型の名前を統一
yupix Dec 3, 2023
7075b13
chore: importのcommit忘れ
yupix Dec 3, 2023
641db1d
chore: 使用していないimportを削除
yupix Dec 3, 2023
0a247c5
feat: drive/streamをサポート
yupix Dec 3, 2023
1cf757f
chore: driveに関するモデルの引数を変更
yupix Dec 3, 2023
86cc8ed
feat: drive/folders/* をサポート
yupix Dec 3, 2023
d098b91
feat: admin/drive/* をサポート
yupix Dec 3, 2023
b286098
Merge pull request #105 from yupix/feat/v13/drive
yupix Dec 3, 2023
c376350
chore: 昔のdrive系を削除
yupix Dec 3, 2023
6dcbe15
docs: update CHANGELOG.md
yupix Dec 3, 2023
f12cda8
chore: endpoints.pyを更新
yupix Dec 3, 2023
10ae56d
chore: AdminActionsのimportを整理
yupix Dec 3, 2023
da296e4
docs: update rst
yupix Dec 3, 2023
feae71a
chore: Noteモデルの引数を変更
yupix Dec 3, 2023
35ce2c6
chore: NoteActions.sendのcontetをsendに
yupix Dec 3, 2023
850e800
feat: Channel周りの型とモデルを作り直した
yupix Dec 3, 2023
bc643fd
chore: ClientChannel系を追加
yupix Dec 3, 2023
35f1eae
chore: 些細な変更
yupix Dec 3, 2023
8fc4ed3
feat: /channels/update をサポート
yupix Dec 3, 2023
7122432
feat: /channels/favorite をサポート
yupix Dec 3, 2023
71ada21
feat: /channels/unfavorite をサポート
yupix Dec 3, 2023
bb30b47
feat: /channels/my-favorites をサポート
yupix Dec 3, 2023
90725ba
feat: /channels/search をサポート
yupix Dec 3, 2023
0734e2e
chore: サポート状況を更新
yupix Dec 3, 2023
af34130
Merge pull request #107 from yupix/refactor/channel
yupix Dec 3, 2023
9054f31
fix: updateでNoneが消されてしまう
yupix Dec 3, 2023
103129d
docs: update CONTRIBUTING.md
yupix Dec 3, 2023
b59eab9
chore: instanceの型を修正
yupix Dec 4, 2023
b38926b
refactor: ユーザーの型を再定義
yupix Dec 4, 2023
957b181
chore: nicknameを非推奨に
yupix Dec 4, 2023
ce9a91f
feat: AvatarDecoration モデルを追加
yupix Dec 4, 2023
59535c6
chore: DocStringを追加
yupix Dec 4, 2023
b98b767
fix: typo
yupix Dec 4, 2023
7b98f66
feat: UserDetailedNotMeOnly モデルを追加
yupix Dec 4, 2023
3abf722
fix: typo
yupix Dec 5, 2023
d4c434d
feat: Announcementに関するモデルと型を作り直した
yupix Dec 5, 2023
6472dd1
chore: is_partial_userの正確さを向上
yupix Dec 5, 2023
ecc8b9b
fix: typo
yupix Dec 5, 2023
dc3978b
refactor: ユーザーモデルを作り直した #108
yupix Dec 5, 2023
ee82e4f
chore: 新しいUser周りのモデルを使用するように変更
yupix Dec 5, 2023
d089de3
docs: サポート状況を更新
yupix Dec 5, 2023
b2b0a02
chore: importの整理
yupix Dec 5, 2023
bdcf431
refactor: get_notesを通常のメソッドに
yupix Dec 5, 2023
8d6358c
feat: get_all_notesメソッドを追加
yupix Dec 5, 2023
7307b8a
chore: Clipの引数を変更
yupix Dec 5, 2023
966601e
fix: 型が間違っている
yupix Dec 5, 2023
171f60b
feat: UserActionsをClientと分けた
yupix Dec 5, 2023
e91617c
feat: ClientUserManagerを追加
yupix Dec 5, 2023
80be00c
feat: Followに関するモデルを追加
yupix Dec 5, 2023
c277bc3
fix: followeeとfollowerは無い場合がある
yupix Dec 6, 2023
1903cca
fix: paginationでlimitが100以外だと全て取得できない
yupix Dec 6, 2023
827a671
feat: PartialUserでClientUserManagerを使うように
yupix Dec 6, 2023
08f5515
feat: /api/users/followers をサポート
yupix Dec 6, 2023
5bb0920
refactor: Paginationクラスで使用していない引数やコードの整理
yupix Dec 6, 2023
3b5d1ef
feat: /api/users/following をサポート
yupix Dec 6, 2023
957db2a
feat: GalleryPostモデルを追加
yupix Dec 8, 2023
bc844eb
feat: /api/users/gallery/posts をサポート
yupix Dec 8, 2023
403dea0
feat: FrequentlyRepliedUser モデルを追加
yupix Dec 8, 2023
9c62357
feat: /api/users/get-frequently-replied-users をサポート
yupix Dec 8, 2023
9285a59
feat: /api/users/featured-notes をサポート
yupix Dec 8, 2023
3bbd994
chore: サポート状況を更新
yupix Dec 8, 2023
e760827
fix: auth引数をつけ忘れている
yupix Dec 8, 2023
d2ffc3a
feat: UserListモデルを追加
yupix Dec 8, 2023
55a2b3e
fix: mipactlでフォルダを作成するように
yupix Dec 8, 2023
5b4f535
feat: /api/users/lists/createをサポート
yupix Dec 8, 2023
b65bc9f
feat: /api/users/lists/delete をサポート
yupix Dec 8, 2023
fea0f37
feat: ClientUserListManagerを追加
yupix Dec 8, 2023
e7116e8
feat: /api/users/lists/list をサポート
yupix Dec 8, 2023
ad0720b
feat: userlist周りでuser_idを使えるように微調整
yupix Dec 8, 2023
de8b8a2
refactor: ClientPartialUserListActionsを追加
yupix Dec 8, 2023
ff2eea4
feat: /api/users/lists/push をサポート
yupix Dec 8, 2023
4cf3b80
feat: /api/users/lists/show をサポート
yupix Dec 8, 2023
ddc122a
feat: /api/users/lists/favorite をサポート
yupix Dec 8, 2023
081f50e
feat: /api/users/lists/unfavorite をサポート
yupix Dec 8, 2023
44ccd07
feat: /api/notes/user-list-timelineをサポート
yupix Dec 29, 2023
07931fd
feat: /api/users/lists/update をサポート
yupix Dec 29, 2023
e6c4756
feat: /api/users/lists/create-from-public をサポート
yupix Dec 29, 2023
5340906
fix: 引数にデフォルト値が入ってる
yupix Dec 29, 2023
9e5cd95
feat: /users/lists/update-membership をサポート
yupix Dec 29, 2023
2e6edaa
chore: メソッド名をapiに合わせた
yupix Dec 29, 2023
64475fc
feat: userlistMembership周りのモデルを追加
yupix Dec 30, 2023
77f2735
feat: /users/lists/get-memberships をサポート
yupix Dec 30, 2023
5d9a40a
feat: サポート状況を更新
yupix Dec 30, 2023
5e99257
feat: サポート状況を更新
yupix Dec 30, 2023
ea1a0c6
feat: より良い品質のmarkdownを出すように
yupix Dec 30, 2023
4c92ad6
chore: format
yupix Dec 30, 2023
9bbdde3
Merge pull request #110 from yupix/feat/v13/users
yupix Dec 30, 2023
41a0fa0
Merge branch 'develop' of github.com:yupix/MiPAC into develop
yupix Dec 30, 2023
e05af37
fix: endpoints.jsonでneedToWorkにならない
yupix Dec 30, 2023
96e4002
chore: データの更新
yupix Dec 30, 2023
e09a405
chore: サポート状況を更新
yupix Dec 30, 2023
0ed9a99
feat: python3.12のジェネリックスの書き方に
yupix Jan 3, 2024
7167a5b
feat: pagination_iterator を削除
yupix Jan 3, 2024
c707bcc
chore: 必要なpythonのバージョンを3.12に
yupix Jan 3, 2024
45864df
ci: python3.12に変更
yupix Jan 3, 2024
7a9239f
ci: ドキュメントのビルドに3.12を使うように
yupix Jan 3, 2024
939b749
chore: python3.12に向けて色々変更
yupix Jan 4, 2024
3158d0e
feat!: AbstractModelを廃止
yupix Jan 5, 2024
e3b40ab
feat: admin/ad/create の引数を最新のものに更新
yupix Jan 5, 2024
8638cee
refactor: admin/ad/delete をより良い形で再実装
yupix Jan 5, 2024
7d99e22
feat: adモデルを最新のものに更新
yupix Jan 6, 2024
7c1607a
refacor: admin/ad/list の実装方法を新しく
yupix Jan 6, 2024
772b43b
chore: Ad周りの型を最新のMisskeyに追従
yupix Jan 6, 2024
8871d4f
chore: format code
yupix Jan 6, 2024
a6de7b9
fix: get_all_listのwhileの条件が間違っている
yupix Jan 6, 2024
dc3ff77
fix: typo
yupix Jan 6, 2024
a7a7a13
feat: admin/ad/update をサポート
yupix Jan 6, 2024
bef1efe
chore: サポート状況を更新
yupix Jan 6, 2024
c50e83e
feat: notes/create のメソッドをcreateに変更
yupix Jan 6, 2024
7a2e647
refactor: clientNoteActionsで定義した引数をoverrideで再定義するように
yupix Jan 6, 2024
e53fd41
feat: notes/conversation をサポート
yupix Jan 6, 2024
5c11b80
refactor: note favorite 周りの実装を新しく
yupix Jan 6, 2024
a569480
feat: notes/featured をサポート
yupix Jan 6, 2024
41e8de3
feat: notes/hybrid-timeline をサポート
yupix Jan 6, 2024
8706750
feat: notes/local-timeline をサポート
yupix Jan 6, 2024
16fc12e
chore: サポート状況を更新
yupix Jan 6, 2024
f21868f
feat: Pollのvoteをoverrideするように
yupix Jan 7, 2024
d55f88c
chore: メソッドの位置を変更
yupix Jan 7, 2024
36026a7
feat: reactionのactionsとmanagerをclientで分けた
yupix Jan 7, 2024
0633853
chore: format code
yupix Jan 7, 2024
9c00909
refactor: 引数の型をより正確に
yupix Jan 7, 2024
27d3a7f
feat: notes/search-by-tag をサポート
yupix Jan 7, 2024
b0d7c20
feat: サポート状況を更新
yupix Jan 7, 2024
3b4fa9c
docs: update README.md
yupix Jan 7, 2024
3bad42b
chore: サポート状況を更新
yupix Feb 2, 2024
7b97e13
feat: Antennaを最新に追従
yupix Feb 2, 2024
1a57815
feat: antennas/createの引数を更新
yupix Feb 2, 2024
0d11373
chore: 使用されていない型を削除
yupix Feb 2, 2024
4348598
feat: アバターデコレーションに関するモデルを更新
yupix Feb 2, 2024
3736ae4
chore: openapiの型を追加
yupix Feb 2, 2024
2ec1093
Merge branches 'develop' and 'develop' of github.com:yupix/MiPAC into…
yupix Feb 2, 2024
8f7ed4f
chore: NoteChannelモデルを更新
yupix Feb 2, 2024
06feabb
fix: サポートしてないものがneedToWorkになる
yupix Feb 2, 2024
29ca576
chore: データをもとに戻す
yupix Feb 2, 2024
bd825f2
chore: データを改めて更新
yupix Feb 2, 2024
b69b47d
feat: UserDetailedNotMeOnlyモデルを更新
yupix Feb 2, 2024
29f565e
fix: サポート済みじゃないとハッシュが更新されない
yupix Feb 2, 2024
7e2eb93
chore: プログレスバーを出すように
yupix Feb 2, 2024
0e768bf
chore: サポート済みスキーマを更新
yupix Feb 2, 2024
7f9c0ac
feat: get_invite_list を all版とで分けた
yupix Feb 2, 2024
16d0287
feat: get_moderation_logs に使える引数を追加
yupix Feb 2, 2024
cba1f30
chore: channels/create の引数を最新に追従
yupix Feb 2, 2024
49958d9
feat: admin/roles/create の引数を最新に追従
yupix Feb 2, 2024
dbd78c6
chore: サポート状況を更新
yupix Feb 2, 2024
d64fecc
chore: ruffの設定を変更
yupix Feb 2, 2024
1297def
chore: format
yupix Feb 2, 2024
8e1cc0c
chore: followの型を正確に
yupix Feb 2, 2024
cb8ffa6
ci: add .onedev-buildspec.yml
yupix Feb 8, 2024
e29b495
feat: emojiに関するモデルを追加
yupix Feb 8, 2024
6a3ddff
feat: 新しい絵文字モデルを使うように
yupix Feb 8, 2024
b3a1a1a
chore: 開発者向けの依存関係を追加
yupix Feb 8, 2024
a29deeb
chore: サポート状況を更新
yupix Feb 8, 2024
6c309e8
fix: repositoryのリンクを修正
yupix Feb 8, 2024
1d8817e
ci: gitlabへのpushはforceで行うように
yupix Feb 8, 2024
0094483
feat: get_all_files メソッドを追加
yupix Feb 8, 2024
72052a2
chore: driveの型を変更
yupix Feb 8, 2024
7599d20
feat: drive系に _get メソッドを追加
yupix Feb 8, 2024
6e7fd40
feat: get_all_attached_notes メソッドを追加
yupix Feb 9, 2024
4c69fc5
chore: update docstring
yupix Feb 9, 2024
443a93b
chore: update support status
yupix Feb 9, 2024
8677735
feat: FileActions.create で扱えるファイルの形式を追加
yupix Feb 9, 2024
e2c0ad0
docs: ドキュメントのデフォルト言語を日本語に
yupix Feb 9, 2024
b1210e6
chore: 引数のデフォルト値を変更、docstringを更新
yupix Feb 9, 2024
e3a420a
chore: docstringを変更
yupix Feb 9, 2024
93028ab
chore: サポート状況を更新
yupix Feb 9, 2024
49ad01d
chore: format
yupix Feb 9, 2024
8cd4503
feat: ChannelモデルにDocStringを追加
yupix Feb 9, 2024
e6748ca
feat: get_all_followed メソッドを追加
yupix Feb 9, 2024
787813e
chore: format
yupix Feb 9, 2024
9439ef5
feat: get_all_owned メソッドを追加
yupix Feb 9, 2024
04d4eef
chore: update DocString
yupix Feb 9, 2024
afe4c8f
chore: update DocString
yupix Feb 9, 2024
3c28646
feat: channels/timeline周りのDocStringを更新 & エラーハンドリングを追加
yupix Feb 9, 2024
c9c8e54
chore: サポート状況を更新
yupix Feb 9, 2024
a72b219
fix: ネストしたフォルダ構造でインポートが壊れる
yupix Feb 9, 2024
45c2479
feat: mute用のmanagerとactionsを用意
yupix Feb 9, 2024
3a9707f
feat: MuteUserモデルを更新
yupix Feb 9, 2024
d6f494d
feat: MuteUserをMutedUserに変更
yupix Feb 9, 2024
bdd4916
feat: /mute/* を再実装
yupix Feb 9, 2024
62ee3eb
feat: MuteActionsをClientと分けた
yupix Feb 9, 2024
3e535fe
chore: format
yupix Feb 9, 2024
1dfd443
chore: endpointを更新
yupix Feb 9, 2024
da1ebfe
chore: 些細な変更
yupix Feb 9, 2024
8cd61c3
chore: サポート状況を更新
yupix Feb 9, 2024
7e2ca3f
docs: update CHANGELOG.md
yupix Feb 9, 2024
b4327ad
refactor: ParameterError から ValueErrorに close #119
yupix Feb 9, 2024
b8792c5
ci: add code_quality.yml
yupix Feb 9, 2024
3cf5b7e
docs: update README.md
yupix Feb 9, 2024
9e23fd5
Merge branch 'develop' of github.com:yupix/MiPAC into develop
yupix Feb 16, 2024
b81ed06
Refactor/use lsp (#122)
yupix Feb 16, 2024
effea0d
Merge branch 'develop' of github.com:yupix/MiPAC into develop
yupix Feb 16, 2024
63f6761
fix: key がキャメルケースのまま
yupix Feb 16, 2024
99f0d55
fix: propertyになってない
yupix Feb 16, 2024
42d1283
chore: 些細な修正
yupix Feb 16, 2024
33fca69
chore: 存在しないエンドポイント用のaction等を削除
yupix Feb 16, 2024
863253c
fix: setup install
omg-xtao Feb 18, 2024
c456ed5
Merge pull request #125 from omg-xtao/fix/install
yupix Feb 19, 2024
2af6095
Merge branch 'develop' of github.com:yupix/MiPAC into develop
yupix Feb 19, 2024
b1c2335
fea:t channel周りを再実装 progress #124
yupix Feb 19, 2024
973ad39
chore: format
yupix Feb 19, 2024
9d562ee
refactor: note周りを再実装 progress #124
yupix Feb 19, 2024
e8ce50d
chore: format
yupix Feb 19, 2024
36faacc
refactor: userlist周りを再実装 progress #124
yupix Feb 19, 2024
2d457e9
feat: user周りを再実装 progress #124
yupix Feb 19, 2024
dc2cf6a
chore: 些細な修正
yupix Feb 19, 2024
a3b0568
fix: 戻り値が間違っている
yupix Feb 19, 2024
8860a1d
chore: clip_idがキーワード引数になっていないのを修正
yupix Feb 19, 2024
f2ace31
chore: 些細な変更
yupix Feb 19, 2024
e7bf18e
chore: pyrightの設定を追記
yupix Feb 19, 2024
cfad9fb
feat: blockingをclientとで分けた close #123
yupix Feb 20, 2024
b44336d
feat: Blockingモデルを追加
yupix Feb 20, 2024
59f7867
chore!: BlockingUserモデルを削除
yupix Feb 20, 2024
62d4037
chore: コミット漏れ
yupix Feb 20, 2024
8dfc32b
feat: BlockingActions._get_listをget_all_listに分けた
yupix Feb 20, 2024
2931e3d
chore: Annoucementの型を明確に
yupix Feb 20, 2024
7008dc7
chore: IUserのunionからMeDetailedを削除
yupix Feb 20, 2024
bca4dd6
chore: EmojiSimpleにlocal_onlyプロパティを追加
yupix Feb 20, 2024
c5109ba
chore: IMutedUserの型を修正
yupix Feb 20, 2024
0550155
feat: Noteモデルにemojisプロパティを追加
yupix Feb 20, 2024
a612cf8
chore: pollの型を修正
yupix Feb 20, 2024
2f0f51e
feat: RolePoliciesを更新
yupix Feb 20, 2024
df9a220
feat: NotificationRecieveConfig を更新
yupix Feb 20, 2024
c62e81e
chore: ModerationLogの型を更新
yupix Feb 20, 2024
303c415
chore: format
yupix Feb 20, 2024
bef5c6f
fix: build error & typo
yupix Feb 20, 2024
00f13ce
chore: 使用していないimportを削除
yupix Feb 20, 2024
9ba6e8a
feat: pre commitを使用するように
yupix Feb 20, 2024
3f0c718
docs: update CONTRIBUTING.md
yupix Feb 20, 2024
9b67359
feat: Permissions型を追加
yupix Feb 20, 2024
08a3629
chore!: AuthClientを削除
yupix Feb 20, 2024
a690e1c
feat: MiAuth用のユーティリティクラスを追加
yupix Feb 20, 2024
a130033
docs: update CONTRIBUTING.md
yupix Feb 20, 2024
bfce899
chore: 些細な変更
yupix Feb 20, 2024
a4c878c
feat!: MeRoleを削除
yupix Feb 20, 2024
0b5b646
feat: modelに_getメソッドを追加
yupix Feb 20, 2024
357bd2c
chore: credentials_required を削除 close #101
yupix Feb 20, 2024
6e3dac1
chore!: requestのauth引数のデフォルト値をTrueに変更
yupix Feb 20, 2024
3a286c3
feat!: AntennaActions.get_notesをget_allと分けた
yupix Feb 20, 2024
a7963e8
feat!: MutedUserをMutingに改名
yupix Feb 20, 2024
5b6f52b
chore: 未消化のTODOを消化
yupix Feb 20, 2024
0f066b7
fix: circular import
yupix Feb 20, 2024
b5a734a
docs: update rst & po
yupix Feb 20, 2024
749a519
feat: release v0.6.0
yupix Feb 20, 2024
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
53 changes: 52 additions & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,22 @@ Check the going points before creating an assignment
- `develop` is the branch to work on for the next release
- If you want to create a pull request, please send it to this branch

## Building a Development Environment

```
python -m venv .venv

# after activate env

pip install -r requirements.txt -r requirements-dev.txt

pre-commit install
```

## Creating a pull request

- Create an Issue before creating a pull request.
- Please prefix the branch name with a keyword such as `feat` / `fix` / `refactor` / `chore` to identify the pull request as much as possible.
- Please prefix the branch name with a keyword such as `feat` / `fix` / `refactor` / `chore` to identify the pull request as much as possible.
- Also, do not include changes other than to resolve the pull request issue
- If you have an Issue that will be resolved by a pull request, please include a link
- Any changes should be described in `CHANGELOG.md`. However, if there is no change from the user's point of view, there is no need to describe it.
Expand All @@ -38,3 +50,42 @@ This project uses `axblack` and `isort` formatting. The difference between `axbl

- Ayuskey v5, 6
- Misskey v13, 12, 11

### 引数に関する例外について

Misskey側に渡すBodyにおいて、例えば `limit` に渡せる最大数が100だと分かっていても、MiPAC側で特別なことはしないものとする。これはAPIを叩いた際に帰ってくるエラーをより直接的に見れるようにするためです

### 引数のデフォルト値について

少し複雑な話になる為例を出しつつの説明になります。
例として `/api/channels/update` には `isSensitive` や `bannerId` といったキーを渡すことができます。では `update` メソッドを実際に作ってみましょう。

```python
async def update(
self,
banner_id: str | None = None,
is_sensitive: bool | None = None,
) -> :
...
```

まず、 `is_sensitive` に `None` が選べてしまうのは何か気持ち悪い所があります。次に`banner_id` は エンドポイント側がnullを許容している為、既に `banner_id` が設定してあった場合、`is_sensitive` のみを更新しようとした場合にnullに設定されてしまいます。また、`request` メソッドが持つ `remove_none=True` でNoneを消すことができますが、これでは `banner_id` を nullにする方法がなくなってしまします。

では、ここで`MISSING` を使って書き直します。

```python
async def update(
self,
banner_id: str | None = MISSING,
is_sensitive: bool = MISSING,
) -> :
data = remove_dict_missing({
"bannerId": banner_id,
"isSensitive": is_sensitive
})
self._session.request(Route("POST", "/api/channels/update"), auth=True, json=data, remove_none=False)
...
```

`is_sensitive` のTypeHintsが `bool` のみにできるので気持ち悪さが解消されます。
また、 `remove_dict_missing` を使用することで `MISSING` のみを削除出来るため、Noneに設定したい場合は `await update(banner_id=None)` とすることで `banner_id` を null に設定できるようになります。注意点として、 `request` メソッドの `remove_none=False` に設定しないと `None` が削除されてしまうため気を付けてください。基本的に `/api/channels/create` のように作成系等では既にサーバー上にあるデータに留意する必要が無いため、`MISSING` ではなく `None` を使用しても問題ないです
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/support_new_endpoint_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: ✨ Support new endpoint request
about: Suggest an idea
title: ''
labels: kind/Feature✨, topic/API🧩, Actions⚙, Manager📦
assignees: yupix

---

## Summary

<!-- Tell us what the suggestion is -->

## Work

- [ ] v11 support
- [ ] v12 support
- [ ] v13 support


24 changes: 24 additions & 0 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Qodana
on:
workflow_dispatch:
pull_request:
push:
branches: "**"


jobs:
qodana:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
checks: write
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
fetch-depth: 0 # a full history is required for pull request analysis
- name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2023.3
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
37 changes: 37 additions & 0 deletions .github/workflows/doc_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Document Release
on:
push:
branches:
- develop

jobs:
release:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.12]

steps:
- uses: actions/checkout@v3
with:
submodules: true

- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install Package
run: |
pip install -e .[doc]

- name: Build Docs
run: python doc_gen.py

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html
cname: mipac.akarinext.org
27 changes: 13 additions & 14 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,25 @@ on:
push:
branches: "**"
pull_request:
branches: [ "master" ]
branches: ["master"]

permissions:
contents: read

jobs:
type-check:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install . .[ci]
- name: Lint with flake8
run: |
flake8 mipac
- uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install . .[ci]
- name: Lint with ruff
run: |
ruff check mipac
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.11'
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ __pycache__
build
dist
.idea
docs/_build
docs/_build
.env
62 changes: 62 additions & 0 deletions .onedev-buildspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
version: 26
jobs:
- name: Publish Packages(OneDev)
steps:
- !CheckoutStep
name: checkout
cloneCredential: !DefaultCredential {}
withLfs: false
withSubmodules: false
cloneDepth: 2000
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !CommandStep
name: publish artifact
runInContainer: true
image: python:3.12.2-slim
interpreter: !DefaultInterpreter
commands:
- apt update
- apt install -y git
- ''
- git fetch
- ''
- cat << EOF > $HOME/.pypirc
- '[distutils]'
- index-servers=
- ' onedev'
- ''
- '[onedev]'
- repository=https://onedev.akarinext.org/yupix/mipac-sync/MiPAC/~pypi
- username=@job_token@
- password=@secret:access-token@
- EOF
- ''
- python -m pip install --upgrade pip
- pip install build twine
- ''
- python -m build
- ''
- twine upload --repository onedev dist/*
useTTY: true
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
triggers:
- !BranchUpdateTrigger {}
retryCondition: never
maxRetries: 3
retryDelay: 30
timeout: 3600
- name: Sync
steps:
- !PushRepository
name: Push GitLab
remoteUrl: https://lab.teamblackcrystal.com/yupix/MiPAC
userName: yupix
passwordSecret: gitlab-access-token
force: true
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
triggers:
- !BranchUpdateTrigger {}
retryCondition: never
maxRetries: 3
retryDelay: 30
timeout: 3600
25 changes: 17 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
- repo: https://github.com/axiros/axblack
rev: 5f011e46362b8680d686cb7918e849e4cb17e826
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.2
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.351
hooks:
- id: pyright
Loading
Loading