https://github.com/piotrgredowski/python-samples
Monorepo for my Python code samples for talks, presentations, workshops, demos.
https://github.com/piotrgredowski/python-samples
doctest python rye
Last synced: 5 months ago
JSON representation
Monorepo for my Python code samples for talks, presentations, workshops, demos.
- Host: GitHub
- URL: https://github.com/piotrgredowski/python-samples
- Owner: piotrgredowski
- Created: 2023-07-27T18:33:02.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-17T07:56:02.000Z (over 1 year ago)
- Last Synced: 2025-10-11T23:22:39.886Z (8 months ago)
- Topics: doctest, python, rye
- Language: Python
- Homepage:
- Size: 10.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/piotrgredowski/python-code/actions/workflows/ci.yml)
# My Python code samples
For talks, presentations, workshops, demos.
## Setup
### Option 1
```bash
python3 -m venv .venv
source .venv/bin/activate
pip install pip --upgrade
pip install -e ".[dev]"
```
### Option 2
Install [uv](https://docs.astral.sh/uv/getting-started/installation/).
Run
```bash
uv sync
uv venv
```
## Commands
Test with
```bash
uv run pytest --doctest-modules src --cov src --cov-report=html
```
Or without coverage
```bash
uv run pytest --doctest-modules src
```
## Cases
- [x] `doctest`
- [src/clock_angle](src/clock_angle)
- [src/_pieces/calculator.py](src/_pieces/calculator.py)
- [ ] mutation tests with `mutmut`
- [src/clock_angle](src/clock_angle)
- [tests/clock_angle/test_clock_angle.py](tests/clock_angle/test_clock_angle.py)
- [x] `venv` and differences between `conda env` and `venv`
- [src/about_venv/venv.md](src/about_venv/venv.md)
- presentations:
- [Renaming on steroids with AI code assistants](.presentations/08072024_renaming_on_steroids)