Skip to content

Commit c0414e2

Browse files
Run black formatting
1 parent e200bdb commit c0414e2

File tree

13 files changed

+18
-23
lines changed

13 files changed

+18
-23
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
3737
- name: Run tests (with coverage)
3838
run: |
39-
python -m pytest -q --cov=example_lib --cov-report=term --cov-report=html
39+
python -m pytest -q --cov=python_project_template --cov-report=term --cov-report=html
4040
4141
- name: Upload HTML coverage
4242
if: always()

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All notable changes to this project are recorded here.
44
## [Unreleased]
55

66
### Added
7-
- Mini calculator library (`example_lib`) with:
7+
- python project template (`python-project-template`) with:
88
- `Operation`, `OperationRegistry`, and `Calculator` classes
99
- example operations: `add`, `sub`, `mul`, `div`, `neg`, `sqr`
1010
- Minimal test suite (pytest) with unit and edge tests

pyproject.toml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ requires = ["setuptools>=61", "wheel"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
6-
name = "example-lib"
6+
name = "python-project-template"
7+
description = "A minimal Python project demonstrating best practices for testing, documentation, and CI/CD. It implements a mini calculator as a minimal example."
78
version = "0.1.0"
8-
description = "Mini calculator library showcasing clean code, testing, and packaging."
99
readme = "README.md"
1010
requires-python = ">=3.8"
1111
authors = [{ name = "Andrea Scaglioni", email = "[email protected]" }]
@@ -22,14 +22,7 @@ classifiers = [
2222

2323
[tool.pytest.ini_options]
2424
testpaths = ["tests"]
25-
addopts = [
26-
"-q",
27-
"--strict-markers",
28-
"--disable-warnings",
29-
"--cov=src",
30-
"--cov-report=term-missing",
31-
"--cov-fail-under=85",
32-
]
25+
addopts = ["-q","--strict-markers", "--disable-warnings", "--cov=src", "--cov-report=term-missing", "--cov-fail-under=85"]
3326
markers = [
3427
"integration: marks integration tests (deselect with '-m \"not integration\"')",
3528
"slow: marks slow tests",
@@ -48,7 +41,9 @@ dev = [
4841
]
4942

5043
docs = [
51-
"sphinx>=7.0"
44+
"sphinx>=7.0",
45+
"pydata-sphinx-theme",
46+
"sphinx-autodoc-typehints",
5247
]
5348

5449

@@ -58,4 +53,4 @@ package-dir = {"" = "src"}
5853

5954
[tool.setuptools.packages.find]
6055
where = ["src"]
61-
include = ["example_lib*"]
56+
include = ["python_project_template*"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""example_lib: mini math utility library
1+
"""python-project-template: mini math utility library
22
33
Exports:
44
- Operation, Operation registry, Calculator, convenience operations

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pytest
22

3-
from example_lib import default_calculator
3+
from python_project_template import default_calculator
44

55

66
@pytest.fixture(scope="session")

0 commit comments

Comments
 (0)