diff --git a/.copier-answers.yml b/.copier-answers.yml index 222c588..f5fed28 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 5e002d8..b8faa2b 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,5 +1,12 @@ { "version": "0.2.0", + "inputs": [ + { + "id": "input", + "type": "promptString", + "description": "Input arguments." + } + ], "configurations": [ { "name": "Python: Current file", @@ -7,6 +14,31 @@ "request": "launch", "program": "${file}", "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. + //? "debugpy" adapter isn't seen, to toggle "justMyCode" in test configuration + //? https://github.com/microsoft/vscode-python-debugger/issues/112 + //? https://github.com/microsoft/vscode-python-debugger/issues/94 + "name": "pytest", + //! Uncomment below to disable "justMyCode" when debugging. Comment out after. + // "purpose": ["debug-test"], + //! + "presentation": { + "hidden": true + }, + "type": "python", + "request": "launch", + "program": "${file}", + "console": "internalConsole", + "justMyCode": false } ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index 0a95c37..1d6b8f5 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,4 @@ { - // * ---------------------------------------------------------------------------- * // //! Schema "yaml.schemas": { "params_schema.json": "params.yaml" @@ -7,7 +6,6 @@ // Environment variables don't load properly otherwise // See: https://github.com/microsoft/vscode-python/issues/944#issuecomment-808516207 "terminal.integrated.defaultProfile.linux": "pwsh", - // * ---------------------------------------------------------------------------- * // //! Pylance "python.languageServer": "Pylance", @@ -96,10 +94,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