python template package
Project description
Python Template with UV
Feature
CI/CD
- publish your package to pypi
- test matrix
- mkdocs-material
mkdocs deps
uv add mkdocs-material pymdown-extensions mkdocs-glightbox mkdocs-git-revision-date-localized-plugin mkdocs-obsidian-bridge mkdocs-publisher --optional mkdocs
pre-commit
- basic
pre-commit-hooks
codespell check
ruff-pre-commit
Lint and Format with Ruff
[tool.ruff]
# cover and extend the default config in https://docs.astral.sh/ruff/configuration/
extend-exclude = [""]
target-version = "py310"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG001", # unused arguments in functions
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"W191", # indentation contains tabs
"B904", # Allow raising exceptions without from e, for HTTPException
"COM819", # Trailing comma prohibited
"D100", # Missing docstring in public module(file)
"D104", # Missing docstring in public package
"D203", # 1 blank line required before class docstring
"E201", # Whitespace after '('
"E202", # Whitespace before ')'
"E203", # Whitespace before ':'
"E221", # Multiple spaces before operator
"E241", # Multiple spaces after ','
"E251", # Unexpected spaces around keyword / parameter equals
"W291", # Trailing whitespace
"W293", # Blank line contains whitespace
]
isort = { combine-as-imports = true , split-on-trailing-comma = false }
# Avoid trying to fix flake8-bugbear (`B`) violations.
unfixable = ["B"]
[tool.ruff.format]
docstring-code-format = true
skip-magic-trailing-comma = true
Mypy and Pytest
[tool.pytest.ini_options]
# Set additional command line options for pytest:
# -r: show extra test summary info
# X: show extra info on xfailed tests
# s: don't capture stdout (allow print statements)
# --strict-config: any warnings about configuration are treated as errors
# --strict-markers: treat unregistered markers as errors
addopts = "-rXs --strict-config --strict-markers"
xfail_strict = true # Treat tests that are marked as xfail but pass as test failures
filterwarnings = ["error"] # Treat all warnings as errors
[tool.coverage.report]
fail_under = 100
show_missing = true
skip_covered = true
todo:codecov ci and replace coverage with it
git-cliff
We follow a specific format for commit messages to maintain a clear and organized project history.
with git-cliff
default config
feat:
New features or enhancementsfix:
Bug fixesdoc:
Documentation updatesperf:
Performance improvementsrefactor:
Code refactoring without adding features or fixing bugsstyle:
Code style changes (formatting, missing semi-colons, etc.)test:
Adding or modifying testschore:
Routine tasks, maintenance, or tooling changesrevert:
Reverting a previous commit
copier
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python_uv-0.0.32.tar.gz
(19.8 MB
view details)
Built Distribution
File details
Details for the file python_uv-0.0.32.tar.gz
.
File metadata
- Download URL: python_uv-0.0.32.tar.gz
- Upload date:
- Size: 19.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa090f833bef04b13a405ceadd7edebe96f403a17ac4e8fba01cfa2a61b816c6 |
|
MD5 | 6b0e5e224a4cf5cf5c3758f1792a94dd |
|
BLAKE2b-256 | 25b4f4172166f3ce25c28b67df562e7a53eae4438acde14fc4b1da4b29901bdf |
File details
Details for the file python_uv-0.0.32-py3-none-any.whl
.
File metadata
- Download URL: python_uv-0.0.32-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4dc39be07dbae7f6f6a57e320b9a2d1becf3fb7a6b715dfd0e68924a3b5aba3e |
|
MD5 | 52da5a3e7d739fbf631107fbb45b5801 |
|
BLAKE2b-256 | c7d2c046669087ddde86e59ecc3b277cba5921de8c09d25e65618d9cf63f0762 |