Skip to main content

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:

  1. Run sed -i '' "s/==/>=/g" pyproject.toml to remove strict version requirements.

  2. poetry shell and pip install toml requests

  3. Run python ./bump_to_latest.py

  4. Check non-strict versions in pyproject.toml and make them strict by manually running the poetry add PACKAGE@==VERSION --optional. Finaly, run poetry update

Name

"The Swedish hustomte (house elf/gnome) is a quiet little guy, dressed mostly in gray and red, living at your house or farmsted helping out by taking care of things around the house and keep everyone safe."

A tomte and his son enjoying quiet company of the cat. Illustration by Rolf Lidberg.

"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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tomte-0.2.15.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tomte-0.2.15-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file tomte-0.2.15.tar.gz.

File metadata

  • Download URL: tomte-0.2.15.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for tomte-0.2.15.tar.gz
Algorithm Hash digest
SHA256 662f3cdd616347969c3fea557c47545b555f5f82798b978e78ade3d23d43c92d
MD5 0a86c159667d17cbb3dd146dadbb3353
BLAKE2b-256 a2d3c53a825b5729dae3b9f92990703d6417be8572af4f540e76af7cd6bc183d

See more details on using hashes here.

File details

Details for the file tomte-0.2.15-py3-none-any.whl.

File metadata

  • Download URL: tomte-0.2.15-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.6

File hashes

Hashes for tomte-0.2.15-py3-none-any.whl
Algorithm Hash digest
SHA256 c1ec71bdb919290e42671d83098232bf7cf46cddf1a736c5d1c9f12ab1308c34
MD5 8f06dd2a511276f87b147cf00b378466
BLAKE2b-256 6e133b7973dc30347e319a4d7a9db443381aaff45ba5f0b91ccd2fe3be9dfb3c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page