-
基本設定
-
main.py
とutils.py
はサンプルなので、それ 以外のファイル を git のルートに保存する。 -
pip install -r requirements.txt
を実行する。 -
pre-commit install
を実行する。
-
-
リーダブルコードの作成依頼
-
全部関数化する。
-
以下の形式で実行をする。
if __name__ == "__main__": main(**vars(_retrieve_args()))
-
ファイルやディレクトリのパスは、pathlib.Path を用いる。
from pathlib import Path
-
matplotlib を使うときはオブジェクト思考で作る。
fig, ax = plt.subplots()
-
-
事前設定 (レポジトリオーナー向け)
-
改行コードの統一
$ cat .gitattributes * text eol=lf
-
gitignore 設定
$ cat .gitignore .envrc .mypy_cache .swp
-
-
Notifications
You must be signed in to change notification settings - Fork 0
MasaYan24/template_python
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published