Skip to content

Commit

Permalink
Merge pull request #1 from RecRanger/initial_review
Browse files Browse the repository at this point in the history
README and Gitignore updates
  • Loading branch information
radenkovic authored Apr 29, 2024
2 parents 71cb62f + 3a7a72a commit 9991212
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 7 deletions.
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
################################################
#### Project-Specific Gitignores ###############
################################################

# Examples:
*.sqlite
*.sqlite3
*.db



################################################
#### General Python Gitignores #################
################################################

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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)
Expand All @@ -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
Expand Down
Empty file removed tests/__init__.py
Empty file.

0 comments on commit 9991212

Please sign in to comment.