From 6b1291d465964858a22da8e5912f02b88cbd43c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20K=C3=B6hl?= Date: Mon, 29 Jul 2024 09:49:25 +0200 Subject: [PATCH] cleanup --- .python-version | 1 + .vscode/settings.windows.template.json | 51 ------------------------- .vscode/tasks.json | 52 -------------------------- pyproject.toml | 1 + 4 files changed, 2 insertions(+), 103 deletions(-) create mode 100644 .python-version delete mode 100644 .vscode/settings.windows.template.json delete mode 100644 .vscode/tasks.json diff --git a/.python-version b/.python-version new file mode 100644 index 00000000..42a3d342 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.9.19 \ No newline at end of file diff --git a/.vscode/settings.windows.template.json b/.vscode/settings.windows.template.json deleted file mode 100644 index 9cb642a2..00000000 --- a/.vscode/settings.windows.template.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "python.pythonPath": "${workspaceFolder}\\.venv\\Scripts\\python.exe", - "python.linting.flake8Enabled": true, - "python.linting.mypyEnabled": true, - "python.jediEnabled": false, - "python.testing.pytestEnabled": true, - "python.terminal.activateEnvironment": false, - "python.formatting.provider": "black", - "editor.trimAutoWhitespace": true, - "editor.renderWhitespace": "all", - "files.eol": "\n", - "[restructuredtext]": { - "editor.wordWrap": "on" - }, - "[python]": { - "editor.formatOnSave": true, - "editor.rulers": [ - 99 - ], - "editor.wordWrap": "off" - }, - "files.exclude": { - "**/.git": true, - "**/.tox": true, - "**/.idea": true, - "*.egg-info": true, - "**/.mypy_cache": true, - "**/.pytest_cache": true, - "**/__pycache__": true - }, - "cSpell.words": [ - "JANI", - "MOML", - "canonicalize", - "isinf", - "mkoehl", - "momba", - "momba's", - "noqa", - "pytest" - ], - "vsicons.associations.folders": [ - { - "icon": "python", - "extensions": ["momba"] - } - ], - "workbench.iconTheme": "vscode-icons", - "restructuredtext.confPath": "${workspaceFolder}\\docs", - "restructuredtext.linter.run": "off" -} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json deleted file mode 100644 index be7ed82a..00000000 --- a/.vscode/tasks.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "version": "2.0.0", - "tasks": [ - { - "label": "Autoformat Project", - "type": "shell", - "command": "${config:python.pythonPath}", - "args": [ - "-m", - "black", - "${workspaceRoot}/momba", - "${workspaceRoot}/tests" - ], - "problemMatcher": [] - }, - { - "label": "Typecheck Project", - "type": "shell", - "command": "${config:python.pythonPath}", - "args": [ - "-m", - "mypy", - "${workspaceRoot}/momba" - ], - "problemMatcher": [] - }, - { - "label": "Build Docs", - "type": "shell", - "command": "${config:python.pythonPath}", - "args": [ - "-m", - "sphinx", - "${workspaceRoot}/docs", - "${workspaceRoot}/build/docs" - ], - "problemMatcher": [] - }, - { - "label": "Build and Serve Docs", - "type": "shell", - "command": "${config:python.pythonPath}", - "args": [ - "-m", - "sphinx_autobuild", - "${workspaceRoot}/docs", - "${workspaceRoot}/build/docs" - ], - "problemMatcher": [] - } - ] -} \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 923871f7..f47aead0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,6 +65,7 @@ dev-dependencies = [ [tool.rye.scripts] build-docs = { cmd = ["sphinx-build", "-b", "dirhtml", "docs", "build/docs"] } +serve-docs = { cmd = ["sphinx-autobuild", "docs", "build/docs"] } check-types = { cmd = ["mypy", "momba", "tests"] } run-tests = { cmd = ["pytest", "tests"] }