Skip to content

Instantly share code, notes, and snippets.

@gdamjan
Created September 10, 2024 16:37

Revisions

  1. gdamjan created this gist Sep 10, 2024.
    10 changes: 10 additions & 0 deletions pyproject.toml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    [tool.ruff]
    line-length = 120

    [tool.ruff.lint]
    extend-select = ["I"]

    [tool.pyright]
    venvPath = "."
    venv = ".venv"
    include = ["src"]
    46 changes: 46 additions & 0 deletions settings.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,46 @@
    // ~/.config/zed/settings.json
    // Zed settings
    //
    // For information on how to configure Zed, see the Zed
    // documentation: https://zed.dev/docs/configuring-zed
    //
    // To see all of Zed's default settings without changing your
    // custom settings, run the `open default settings` command
    // from the command palette or from `Zed` application menu.
    {
    "ui_font_size": 16,
    "buffer_font_size": 16,
    "theme": {
    "mode": "system",
    "light": "One Light",
    "dark": "One Dark",
    },
    "lsp": {
    "pyright": {
    "settings": {
    "python": {
    "pythonPath": ".venv/bin/python"
    }
    }
    }
    },
    "languages": {
    "Python": {
    "language_servers": ["pyright", "ruff"],
    "format_on_save": "on",
    "formatter": [
    {
    "code_actions": {
    "source.organizeImports.ruff": true,
    "source.fixAll.ruff": true
    }
    },
    {
    "language_server": {
    "name": "ruff"
    }
    }
    ]
    }
    }
    }