Aller au contenu

Visual Studio Code

.vscode/extensions.json
{
    "recommendations": [
        "charliermarsh.ruff",
        "ms-python.debugpy",
        "ms-python.mypy-type-checker",
        "ms-python.pylint",
        "ms-python.python",
        "ms-python.vscode-pylance"
    ],
    "unwantedRecommendations": [
        "ms-python.autopep8",
        "ms-python.black-formatter",
        "ms-python.flake8",
        "ms-python.isort"
    ]
}
.vscode/settings.json
{
    "files.eol": "\n",
    "[markdown]": {
        "editor.formatOnSave": true
    },
    "[python]": {
        "editor.codeActionsOnSave": {
            "source.organizeImports": "explicit"
        },
        "editor.defaultFormatter": "charliermarsh.ruff",
        "editor.formatOnSave": true,
        "editor.rulers": [
            88
        ]
    },
    "python.defaultInterpreterPath": "${workspaceFolder}/venv/bin/python",
    "ruff.path": [
        "${workspaceFolder}/venv/bin/ruff"
    ],
    "mypy-type-checker.path": [
        "${workspaceFolder}/venv/bin/mypy"
    ],
    "mypy-type-checker.interpreter": [
        "${workspaceFolder}/venv/bin/python"
    ],
    "python.testing.pytestEnabled": true,
    "python.testing.pytestPath": "${workspaceFolder}/venv/bin/pytest",
    "python.testing.unittestEnabled": false
}