diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2023-10-07 11:14:07 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2023-10-07 11:14:07 +0200 |
| commit | d24a09a7374af2ca413d4553cea4fc8b0a69799f (patch) | |
| tree | 2fe08e8a6193bc6fa6360744afc49059b8d6c901 | |
| parent | 68db123a2f37a66aea218fa48a5bab8ea6b12951 (diff) | |
| download | teachos-d24a09a7374af2ca413d4553cea4fc8b0a69799f.tar.xz teachos-d24a09a7374af2ca413d4553cea4fc8b0a69799f.zip | |
python: add mypy and format conanfile
| -rw-r--r-- | .vscode/settings.json | 9 | ||||
| -rw-r--r-- | conanfile.py | 8 | ||||
| -rw-r--r-- | requirements.txt | 1 |
3 files changed, 11 insertions, 7 deletions
diff --git a/.vscode/settings.json b/.vscode/settings.json index 51bcf93..2e9f833 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -4,7 +4,8 @@ "C_Cpp.autoAddFileAssociations": false, "C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools", - // "[python]": { - // "editor.defaultFormatter": "ms-python.black-formatter" - // }, -}
\ No newline at end of file + + "[python]": { + "editor.defaultFormatter": "ms-python.black-formatter" + }, + }
\ No newline at end of file diff --git a/conanfile.py b/conanfile.py index 4712156..cc79bae 100644 --- a/conanfile.py +++ b/conanfile.py @@ -2,6 +2,7 @@ from conan import ConanFile from conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout from conan.tools.env import VirtualBuildEnv + class KernelConan(ConanFile): name = "kernel" description = "The kernel of TeachOS" @@ -46,9 +47,10 @@ class KernelConan(ConanFile): def layout(self): cmake_layout(self, src_folder="source") + class PlatformIncludeBlock: - template = "include(\"../cmake/Platforms/{{platform}}.cmake\")" + template = 'include("../cmake/Platforms/{{platform}}.cmake")' -def context(self): - return { "platform": None } +def context(self): + return {"platform": None} diff --git a/requirements.txt b/requirements.txt index 4021434..4479984 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ black>=23 conan~=1.61 +mypy~=1.5 |
