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.toml
to remove strict version requirements. -
poetry shell
andpip install toml requests
-
Run
python ./bump_to_latest.py
-
Check non-strict versions in
pyproject.toml
and 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
File details
Details for the file tomte-0.2.17.tar.gz
.
File metadata
- Download URL: tomte-0.2.17.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad583dd39f2c398272f7f196471b2ecc8430eb89e07295ec1e682f64dd782831 |
|
MD5 | feec6e959b52e85f55173f16ce5325f0 |
|
BLAKE2b-256 | 8e8dc08b1488904631a4cd41a3feb4508ebdbd8697d63c43a4c9f6e643b131ad |
File details
Details for the file tomte-0.2.17-py3-none-any.whl
.
File metadata
- Download URL: tomte-0.2.17-py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 477e1e903610b5e2a8cf74a78cf229eacc21aa666e25e7bb872385ef2c013cfe |
|
MD5 | 26dab5fc0a58c7e38314f96b661b812c |
|
BLAKE2b-256 | 2d8ae56a4ac12c1d4b21c8fb1bbea7d9f61c25df4837b1ac4b62fa651766f7cf |