diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 8eb80346..d01d89e8 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -6,19 +6,26 @@ // Install poetry and packages "postCreateCommand": "pip3 install -U poetry && poetry install", // Mount USB devices to devcontainer for tests - "mounts": ["type=bind,source=/dev/bus/usb,target=/dev/bus/usb"], + "mounts": [ + "type=bind,source=/dev/bus/usb,target=/dev/bus/usb" + ], "customizations": { "vscode": { "extensions": [ "tamasfe.even-better-toml", "ms-python.python", - "ms-python.autopep8", "ms-python.vscode-pylance", - "ms-python.debugpy" + "ms-python.debugpy", + "charliermarsh.ruff", + "tekumara.typos-vscode" ], "settings": { - "python.defaultInterpreterPath": "~/.cache/pypoetry/virtualenvs/jumpstarter-64_PDEHR-py3.11/bin/python" + "python.defaultInterpreterPath": "~/.cache/pypoetry/virtualenvs/jumpstarter-64_PDEHR-py3.11/bin/python", + "[python]": { + "editor.formatOnSave": true, + "editor.defaultFormatter": "charliermarsh.ruff" + } } } } -} +} \ No newline at end of file diff --git a/poetry.lock b/poetry.lock index befc9f2d..6c4a3965 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1135,6 +1135,25 @@ files = [ {file = "typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8"}, ] +[[package]] +name = "typos" +version = "1.23.5" +description = "Source Code Spelling Correction" +optional = false +python-versions = ">=3.7" +files = [ + {file = "typos-1.23.5-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:f605a44e94b1ddf68b9fc3988e82bbc5f795de51a9928f3d9aa43f02e64cb123"}, + {file = "typos-1.23.5-py3-none-macosx_11_0_arm64.whl", hash = "sha256:03355aca30babaedfa2ebaf8b79da0b911f015e4449b184777a9d70ee6c754ad"}, + {file = "typos-1.23.5-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:485ffaa9a910bf01a3a6502e1668f945255f314dd7eb6cd66a26df82e0d66d8b"}, + {file = "typos-1.23.5-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:70e3abe5af98707a4ea307d98d1b09b20664c00acb5fb78761349700d8581ee8"}, + {file = "typos-1.23.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:064ece60188de95e71a5420cfc2e1fde3ea650186ddf214145befcbe7bfd0086"}, + {file = "typos-1.23.5-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:0cfcf37df9ecce20277a360e56fe39b1e847298cb6aaafaaed10e842c815e43d"}, + {file = "typos-1.23.5-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:6aa53d4e5cbc77fb052e806f79d485f0b468d3054754163feb65ad4893d6e2ac"}, + {file = "typos-1.23.5-py3-none-win32.whl", hash = "sha256:ea7892fb35e9dee45716ca12df68453c1d6dc3b0d42ec1d4a7859b1d2f3a252e"}, + {file = "typos-1.23.5-py3-none-win_amd64.whl", hash = "sha256:221bd0e1945fc0ade5eaf713e8dcbbd6c2331e79a68074c4b991f054fa5024f4"}, + {file = "typos-1.23.5.tar.gz", hash = "sha256:afc455cf5d90f4f350af3c73b3ccbcf22f1c4aa10308b89eb3ce263d350e4ad9"}, +] + [[package]] name = "urllib3" version = "2.2.2" @@ -1158,4 +1177,4 @@ rpi = ["gpiozero"] [metadata] lock-version = "2.0" python-versions = "^3.10" -content-hash = "275b8a721066613dcf595232232c3330de33f5461e4df0b014069e85cf502e7f" +content-hash = "468b85dd96c08530b390a26675105ed3e88e2d5e43f03a891fdfee327b5f5126" diff --git a/pyproject.toml b/pyproject.toml index 0681b430..6d0d383d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,6 +32,7 @@ pytest = "^8.2.2" pytest-anyio = "^0.0.0" pytest-cov = "^5.0.0" ruff = "^0.5.5" +typos = "^1.23.5" [tool.poetry.group.docs.dependencies] sphinx = "^7.4.7"