-
Notifications
You must be signed in to change notification settings - Fork 13
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
pyproject.tomlおよびpre-commitの導入 #504
Conversation
@ReiHashimoto
|
パッケージ配布をするプロジェクトの場合、開発環境に対象のパッケージがインストールされるのは正かもしれないです。(optinistはmain.pyでも使用できるので違和感があるのかもしれませんが...)
|
pyproject.tomlの84行目から93行目を以下のように書き換えるとどうでしょう?
|
すみません、そもそもの前提を認識違いしていました。
こちらは確認し、また結果をお知らせします。 |
一旦共有ですが、上記修正を適用し、新たなconda環境で pip install を実施しましたが、エラーは解消されませんでした。 ※もしかすると、pyproject.toml の設定ではなく、pythonコード側に起因する課題(パスの取得に環境依存がある)の可能性もあるかもしれません。(要検証) |
詳細確認したところ、上記の事象は、以下が要因のようです。
対応としては、以下を想定
|
pyproject.tomlおよびpre-commitの導入
概要
運用上の変更点
pip install -r requirements.txt
-->pip install -e '.[dev]'
pre-commit install
を実行してhooksに追加(初回のみ)optinist/version.py
--> pyproject.toml内のversionを直接変更備考
github actionsでのlinter, formatterチェックについて
テストについて
import pytest
については、そのまま削除で問題ないと思われるmake test_run
時に抽出されるケース数が49で一致