A library that wraps many useful tools (linters, analysers, etc) to keep Python code clean, secure, well-documented and optimised.
Project description
tomte
A library that wraps many useful tools (linters, analysers, etc) to keep Python code clean, secure, well-documented and optimised.
Essentially does nothing else but pinning multiple packages to compatible versions, for consistency across many projects and simplicity of use.
Extremely (!) opinionated by design!
Wrapped tools
- black
- bandit
- isort
- flake8
- mypy
- safety
- darglint
- vulture
- pylint
- docs (various mkdocs libraries)
- tests (various pytest libraries)
- tox
- liccheck
To install, for instance black, simply specify tomte[black]==VERSION, where VERSION is the latest version, and then use black CLI as required.
Development:
Install deps:
Install poetry.
Upgrading versions
Currently, the following, somewhat hacky, process works well:
-
Run
sed -i '' "s/==/>=/g" pyproject.tomlto remove strict version requirements. -
poetry shellandpip install toml requests -
Run
python ./bump_to_latest.py -
Check non-strict versions in
pyproject.tomland make them strict by manually running thepoetry add PACKAGE@==VERSION --optional. Finaly, runpoetry update
Name
"A tomte and his son enjoying quiet company of the cat. Illustration by Rolf Lidberg."
Release guide:
Finish edits, bump versions in pyproject.toml and tomte/__init__.py, then poetry lock, then rm -rf dist, then poetry publish --build --username=<username> --password=<password>.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tomte-0.2.16.tar.gz.
File metadata
- Download URL: tomte-0.2.16.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1a6294897c7edd876c2f8f6ebd2e0618730eb52ed9c32fde288a1bcccc66197
|
|
| MD5 |
be86b2ea02183d1d828540bac185d897
|
|
| BLAKE2b-256 |
35e186d16f42295b3db02af9e21e03f48ed940b1c5841238c3a6ceab907b9b91
|
File details
Details for the file tomte-0.2.16-py3-none-any.whl.
File metadata
- Download URL: tomte-0.2.16-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08b6d10b56d205ea6dcbe0ea1d1f643e3e1214a80ca2d52a7eaf07c723f0f3b4
|
|
| MD5 |
fecf713ed29d1d1c4a00471b2c9e8a18
|
|
| BLAKE2b-256 |
98a14415bb4043c5642a1b4f8f432b53de857c1bc16435e29131584c1f407fac
|