Skip to content

Commit

Permalink
python: 見た目の調整
Browse files Browse the repository at this point in the history
* type hint
* dictベタ書きだったのをdataclassに変更
* fill_*でNone返す代わりにHttpException起こす
* 設定値の定義/取得処理をSettingsクラスにまとめた
* HTTPレスポンスコード定義はhttp.clientを参照するように変更し、requestsへの依存を除去した
  • Loading branch information
misodengaku committed Nov 16, 2023
1 parent a18b177 commit e3e02fd
Show file tree
Hide file tree
Showing 5 changed files with 884 additions and 623 deletions.
1 change: 1 addition & 0 deletions webapp/python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ WORKDIR /home/isucon/webapp/python
COPY --chown=isucon:isucon Pipfile /home/isucon/webapp/python/
COPY --chown=isucon:isucon Pipfile.lock /home/isucon/webapp/python/
RUN pipenv install
COPY --chown=isucon:isucon models.py /home/isucon/webapp/python/
COPY --chown=isucon:isucon app.py /home/isucon/webapp/python/

# ENV GOPATH=/home/isucon/tmp/go
Expand Down
1 change: 0 additions & 1 deletion webapp/python/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ name = "pypi"
[packages]
flask = "*"
pymysql = "*"
requests = "*"
bcrypt = "*"

[dev-packages]
Expand Down
174 changes: 23 additions & 151 deletions webapp/python/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e3e02fd

Please sign in to comment.