Skip to main content

No project description provided

Project description

loguru-mypy

A fancy plugin to boost up your logging with loguru

GitHub Workflow Status (branch) PyPI PyPI - Downloads time tracker

Installation

Simply execute:

pip install loguru-mypy

And later on modify your mypy.ini configuration file with

[mypy]
plugins = loguru_mypy

That is all, your code is now ready to be linted.

What is included?

loguru-mypy is obviously a mypy plugin that allows to avoid some of those little runtime trickeries :). Here is a short attempt to list some of those:

Lazy loggers

logger.opt(lazy=True) in facts returns a logger that we call lazy. Lazy loggers accept only typing.Callable[[], t.Any] in place of positional or named arguments. Passing a callable that accepts even a single argument thus results in runtime error. loguru-mypy detects that fact and lets you know before your runtime reaches that portion of a code.

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

loguru-mypy-0.0.2.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

loguru_mypy-0.0.2-py3.8.egg (6.2 kB view details)

Uploaded Egg

File details

Details for the file loguru-mypy-0.0.2.tar.gz.

File metadata

  • Download URL: loguru-mypy-0.0.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for loguru-mypy-0.0.2.tar.gz
Algorithm Hash digest
SHA256 871c772b7e99eb3e71f2952070fcb1b960cfabbe55e5edf17ae5830ab048f1bf
MD5 2e6f84d94f4e4af4b56a7bbf836aa2ab
BLAKE2b-256 976661bfd7ee0e67e505951e9a8c4cc7f984371ab211a6aa98ba2010888fa139

See more details on using hashes here.

File details

Details for the file loguru_mypy-0.0.2-py3.8.egg.

File metadata

  • Download URL: loguru_mypy-0.0.2-py3.8.egg
  • Upload date:
  • Size: 6.2 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for loguru_mypy-0.0.2-py3.8.egg
Algorithm Hash digest
SHA256 3da435dcc34b1552abfa6a4555b36ac9b9568669e3c3c024947cdb42369aec7c
MD5 1fa3c812361e26168d3ef64705aa5a7d
BLAKE2b-256 7f71a94b8bbce800386c2960ed4f532510c426c76756d39608f90b8b36124f1e

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