0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Python3開発環境構築

Last updated at Posted at 2019-01-05

PyCharm

[File]-[Settings]を開く
[Editor]-[Inspections]から「PEP 8 coding style violation」と「PEP 8 naming convention violation」にチェックが付いていることを確認する。
image.png

Visual Studio

以下のページを参考に構築。
https://docs.microsoft.com/ja-jp/visualstudio/python/tutorial-working-with-python-in-visual-studio-step-00-installation?view=vs-2019

pytest

ソリューションを右クリックし、[プロパティ]を開く。
[テスト]タブの[テストフレームワーク]で【pytest】を選択する。
image.png

「Python環境」でpytestをインストールする。
表示させるには、[表示]-[その他ウインドウ]-[Python環境]を選択。
image.png

logging

標準ではinfoやdebugは出力されない。

import logging

logging.basicConfig(level=logging.DEBUG)
# ファイルにも出力する
# logging.basicConfig(filename+'test.log', level=logging.DEBUG)
logging.debug("デバッグ")
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?