pyvelocity
Automates task to check configurations about Python project to follow best practices to increase development velocity.
Attention
The development status of this package is Beta now. It may not be able to keep backward compatibility. Be careful to use, especially for CI.
Available Checks
PyVelocity performs the following checks to ensure your Python project follows best practices:
Core Configuration Checks
line-length
Ensures consistent line length settings across all Python development tools:
- docformatter:
wrap-descriptionsandwrap-summaries - isort:
line_length - Black:
line-length - flake8:
max-line-length - Ruff:
line-length - Pylint:
format.max-line-length
using-py-project-toml
Verifies that your project uses pyproject.toml for configuration instead of legacy files.
legacy-setup-files
Ensures that neither setup.py nor setup.cfg files are present in the project. These legacy configuration files should be replaced with pyproject.toml for modern Python packaging.
Project Metadata Checks
classifiers
Validates that Python version classifiers in pyproject.toml are consistent with the requires-python field. For example, if requires-python = ">=3.9", the classifiers should include all supported Python versions from 3.9 to the latest available.
requires-python
Ensures that the requires-python field supports the latest stable Python version to encourage adoption of newer Python features and improvements.
readme
Checks that the readme field is properly configured as "README.md" in the [project] section of pyproject.toml.
keywords
Ensures that at least one keyword is defined in the [project] section of pyproject.toml. Keywords help improve package discoverability on PyPI and other package indexes.
Package Configuration Checks
zip-safe-false
Verifies that zip-safe = false is set in the [tool.setuptools] section to prevent issues with modern Python packaging.
typed
Ensures proper type hint configuration for typed packages:
- Validates that
tool.setuptools.package-dataincludes"*" = ["py.typed"] - Checks for the presence of
py.typedfiles in package directories - Requires the
"Typing :: Typed"classifier in project metadata
This check helps ensure your package properly declares itself as typed for better IDE support and type checking.
Quickstart
1. Install
pip install pyvelocity
2. Run command
Run the following command in your project directory (where pyproject.toml exists):
pyvelocity
Expected Output
Success: If all checks pass, you'll see:
Looks high velocity! ⚡️ 🚄 ✨
Issues Found: If checks fail, PyVelocity will display specific error messages and exit with a non-zero status code, making it perfect for CI/CD integration.
How do I...
Ignore specific check?
You can configure PyVelocity to ignore specific checks by adding them to the filter list in pyproject.toml. For example, to ignore the line-length and typed checks:
[tool.pyvelocity]
filter = [
"line-length",
"typed"
]
Available check IDs:
line-lengthusing-py-project-tomllegacy-setup-filesclassifiersrequires-pythonreadmekeywordszip-safe-falsetyped
Credits
This package was created with Cookiecutter and the yukihiko-shinoda/cookiecutter-pypackage project template.
Metadata
Release files for pyvelocity 0.9.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyvelocity-0.9.1.tar.gz | 28.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyvelocity-0.9.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 65.4 kB
Release files / pyvelocity-0.9.1.tar.gz
| Download URL | pyvelocity-0.9.1.tar.gz |
|---|---|
| Size | 28.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74da20084515247a4685da947f6515cb187a2f35a034c9696a2459e2802dbb40
|
|
BLAKE2b-256 checksum How to use checksums |
076d37642261223b4b79159cc85b6cc1aa2659b8fcb0705f8349698e47df241f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / pyvelocity-0.9.1-py3-none-any.whl
| Download URL | pyvelocity-0.9.1-py3-none-any.whl |
|---|---|
| Size | 36.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
90c6243e8ed873f9b8a13aabbe398778b40a66534cac736b39b0da4f1ce4d5f1
|
|
BLAKE2b-256 checksum How to use checksums |
318c63e19269fa382c9f0dcf58fe3459fd8e376b265f368e1b4ea862a9818cb0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|