From 2f799b25b7507a2b935146b9552c37fdfb0bbf01 Mon Sep 17 00:00:00 2001 From: blakeNaccarato Date: Fri, 17 Nov 2023 23:14:53 -0800 Subject: [PATCH] Update project from template --- .copier-answers.yml | 2 +- .tools/requirements/requirements_core.txt | 1 - .vscode/launch.json | 18 +++++++++++++++--- .vscode/settings.json | 9 ++++----- pytest.ini | 12 +++++++++--- 5 files changed, 29 insertions(+), 13 deletions(-) diff --git a/.copier-answers.yml b/.copier-answers.yml index 001017c..296a80b 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY -_commit: 707a50a +_commit: 1bc9ab4 _src_path: gh:blakeNaccarato/copier-python actions_runner: ubuntu-latest active: true diff --git a/.tools/requirements/requirements_core.txt b/.tools/requirements/requirements_core.txt index 30059d2..bc0e4dc 100644 --- a/.tools/requirements/requirements_core.txt +++ b/.tools/requirements/requirements_core.txt @@ -1,5 +1,4 @@ # Core requirements for template updates, bootstrapping, etc. - copier==8.1.0 dulwich==0.21.6 flit_core==3.9.0 diff --git a/.vscode/launch.json b/.vscode/launch.json index 3125cf5..b8faa2b 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,14 +1,26 @@ { "version": "0.2.0", + "inputs": [ + { + "id": "input", + "type": "promptString", + "description": "Input arguments." + } + ], "configurations": [ { "name": "Python: Current file", "type": "debugpy", "request": "launch", "program": "${file}", - "console": "internalConsole", - "purpose": ["debug-test"], - "justMyCode": false + "console": "internalConsole" + }, + { + "name": "Python: Current file with args", + "type": "debugpy", + "request": "launch", + "program": "${file} ${input:input}", + "console": "internalConsole" }, { //? Needs to be "pytest" adapter for now. diff --git a/.vscode/settings.json b/.vscode/settings.json index ba49946..a6bdd22 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,8 +3,6 @@ // See: https://github.com/microsoft/vscode-python/issues/944#issuecomment-808516207 "terminal.integrated.defaultProfile.linux": "pwsh", - // * ---------------------------------------------------------------------------- * // - //! Pylance "python.languageServer": "Pylance", "python.analysis.typeCheckingMode": "strict", @@ -92,10 +90,11 @@ ".dvcignore": "ignore", ".env": "dotenv", ".pylintrc": "ini", - "pyrightconfig.json": "jsonc", - "*requirements*.txt": "pip-requirements", ".root": "plaintext", - ".sourcery.yaml": "yaml" + ".sourcery.yaml": "yaml", + "*requirements*.txt": "pip-requirements", + "*ipython-input*": "python", + "pyrightconfig.json": "jsonc" }, //* File icon associations "workbench.iconTheme": "vscode-icons", diff --git a/pytest.ini b/pytest.ini index ec79059..b0294f7 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,6 +1,12 @@ [pytest] -addopts = --verbose -p no:legacypaths -r a -testpaths = tests -markers = slow +addopts = + --strict-config + --strict-markers + --verbose + --color yes + -p no:legacypaths + -r a cache_dir = .cache/.pytest_cache +markers = slow +testpaths = tests xfail_strict = True