From aec3aab493ff621f5e2b647da4d8f3113f9a6864 Mon Sep 17 00:00:00 2001 From: RecRanger <168371178+RecRanger@users.noreply.github.com> Date: Sun, 28 Apr 2024 13:55:04 -0600 Subject: [PATCH 1/3] Proofread README --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9212296..b276e07 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ # Python Template -> Simple Python template with pytest, black and flake8 -> Also includes configs for VSCode (test runner config and project congfig) +Simple Python template with pytest, black, and flake8 -This is a super simple template for python3.11, integrates well with VSCode. +This is a super simple template for python3.11. +It includes configs for VSCode (test runner config and project config) -## Getting started +## Getting Started - Install poetry first - `python3.11 -m venv venv` (to create virtualenv) @@ -14,7 +14,7 @@ This is a super simple template for python3.11, integrates well with VSCode. - `with --jupyter` only if you need notebooks - Production: poetry install --only main -# Includes +## Includes - Uses `poetry` as package manager - Tests integrated in VSCode (tests panel) @@ -26,7 +26,7 @@ This is a super simple template for python3.11, integrates well with VSCode. - `black` for formatting - `flake8` for linting -# requirements.txt generation +## `requirements.txt` generation ```bash poetry export --without-hashes --with dev --format=requirements.txt > requirements.txt From c53cd16a32c0bb230042587d505c1c06e6318b82 Mon Sep 17 00:00:00 2001 From: RecRanger <168371178+RecRanger@users.noreply.github.com> Date: Sun, 28 Apr 2024 13:55:26 -0600 Subject: [PATCH 2/3] Split sections in .gitignore --- .gitignore | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.gitignore b/.gitignore index d245df9..18cd565 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,18 @@ +################################################ +#### Project-Specific Gitignores ############### +################################################ + +# Examples: +*.sqlite +*.sqlite3 +*.db + + + +################################################ +#### General Python Gitignores ################# +################################################ + # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] From 3a7a72a6d044a3c1ba9b2192be8c36594556108b Mon Sep 17 00:00:00 2001 From: RecRanger <168371178+RecRanger@users.noreply.github.com> Date: Sun, 28 Apr 2024 13:57:53 -0600 Subject: [PATCH 3/3] Remove `tests/__init__.py` (not needed anymore) --- .vscode/settings.json | 3 ++- tests/__init__.py | 0 2 files changed, 2 insertions(+), 1 deletion(-) delete mode 100644 tests/__init__.py diff --git a/.vscode/settings.json b/.vscode/settings.json index ed1bc89..a5b8ba8 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -13,7 +13,8 @@ // Jupyter Notebooks "jupyter.notebookFileRoot": "${workspaceFolder}", - // Tests: be sure to create __init__.py in tests folder + + // Tests "python.testing.pytestArgs": ["./tests"], "python.testing.pytestEnabled": true } diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000