Skip to content

Commit 8329ca9

Browse files
chore(build): add semantic versioning configuration
Add python-semantic-release configuration to enable automatic versioning. Configure Black and isort for code formatting standards. Add development dependencies for linting and testing. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 753000f commit 8329ca9

1 file changed

Lines changed: 38 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,55 @@
11
[tool.poetry]
22
name = "bingo"
33
version = "0.1.0"
4-
description = ""
4+
description = "A bingo board generator using NiceGUI"
55
authors = ["Offending Commit <offendingcommit@gmail.com>"]
66
license = "MIT"
77
readme = "README.md"
8+
repository = "https://github.com/offendingcommit/bingo"
89
package-mode = false
910
exclude = [".git", ".git/"]
1011

1112
[tool.poetry.dependencies]
1213
python = "^3.12"
1314
nicegui = "^2.11.0"
1415

16+
[tool.poetry.group.dev.dependencies]
17+
pytest = "^7.4.0"
18+
pytest-cov = "^4.1.0"
19+
flake8 = "^7.0.0"
20+
black = "^24.2.0"
21+
isort = "^5.13.2"
22+
python-semantic-release = "^9.1.1"
1523

1624
[build-system]
1725
requires = ["poetry-core>=1.8"]
1826
build-backend = "poetry.core.masonry.api"
27+
28+
[tool.pytest.ini_options]
29+
testpaths = ["tests"]
30+
python_files = "test_*.py"
31+
python_classes = "Test*"
32+
python_functions = "test_*"
33+
addopts = "--cov=src"
34+
35+
[tool.semantic_release]
36+
version_variable = ["pyproject.toml:version"]
37+
branch = "main"
38+
changelog_file = "CHANGELOG.md"
39+
build_command = "poetry build"
40+
dist_path = "dist/"
41+
upload_to_pypi = false
42+
upload_to_release = true
43+
commit_subject = "chore(release): {version}"
44+
commit_message = "chore(release): version {version} [skip ci]"
45+
commit_author = "semantic-release <semantic-release@users.noreply.github.com>"
46+
major_on_zero = false
47+
48+
[tool.black]
49+
line-length = 88
50+
target-version = ["py312"]
51+
include = '\.pyi?$'
52+
53+
[tool.isort]
54+
profile = "black"
55+
line_length = 88

0 commit comments

Comments
 (0)