Newer
Older
CollectAnimalExperimentLabels2021 / .devcontainer / devcontainer.json
@sato sato on 1 Mar 2022 1 KB Dockerfileの追加
{
    "name": "sato_container",
    // Dockerfileでイメージ・コンテナを作成
    "context": "..",
    "dockerFile": "Dockerfile",
    // リモート先のVS Codeにインストールする拡張機能
    "extensions": [
        "ms-python.python"
    ],
    "settings": {
        // 構文チェックを行うようにする
        "python.linting.enabled": true,
        // 保存時に構文チェックを行う
        "python.linting.lintOnSave": true,
        // 構文チェックをpylintで行わないようにする (※規定値がtrueなため)
        "python.linting.pylintEnabled": false,
        // 構文チェックをflake8で行うようにする
        "python.linting.flake8Enabled": true,
        // flake8のパス (※pyproject-flake8を導入している場合はpflake8で上書きする必要がある)
        "python.linting.flake8Path": "/usr/local/bin/pflake8",
        // mypyを有効化する
        "python.linting.mypyEnabled": true,
        // フォーマットをblackで行うようにする
        "python.formatting.provider": "black",
        // pythonファイルの設定
        "[python]": {
            // 保存時にimport文のソートなどを行う
            "editor.codeActionsOnSave": {
                "source.organizeImports": true
            },
            // 保存時にフォーマットを行う
            "editor.formatOnSave": true
        }
    },
}