Skip to main content

Pylint plugin for financial math accuracy

Project description

finlint-pylint

Pylint plugin that catches financial math precision errors. Two checkers:

  • W9001 (float-used-for-money) — Warns when float literals are used for financial variables
  • W9002 (decimal-from-float) — Warns when Decimal constructors receive float arguments

Install

pip install finlint-pylint

Usage

pylint --load-plugins=finlint_pylint.checkers.no_float_money,finlint_pylint.checkers.decimal_from_string your_module.py

Or in your pyproject.toml:

[tool.pylint.main]
load-plugins = [
    "finlint_pylint.checkers.no_float_money",
    "finlint_pylint.checkers.decimal_from_string",
]

License

Apache-2.0 — github.com/kanso-finance/finlint

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

finlint_pylint-1.0.0.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

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

finlint_pylint-1.0.0-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

Details for the file finlint_pylint-1.0.0.tar.gz.

File metadata

  • Download URL: finlint_pylint-1.0.0.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for finlint_pylint-1.0.0.tar.gz
Algorithm Hash digest
SHA256 bab93ee724a9b21f9394635853a40da8858700c089915a4ee473d498614fd4ce
MD5 ed6f6be74b9b5dc9428948d240a9acff
BLAKE2b-256 c090d889bc7047648143c24b3df7fb32f193a715d24d3cb94554f43b29ef8cd8

See more details on using hashes here.

File details

Details for the file finlint_pylint-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: finlint_pylint-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 24.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for finlint_pylint-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1a8d4e084e1159aff08a5a945c5f42bc8c954a48373f23defef9ebb26873949e
MD5 892e71bc626e3dfcf900c18d2dd233b4
BLAKE2b-256 b53e6fc6dc22667381fa224cc6129b5910a7a43eac6a2b75f3bd9d3f6e5aa6ba

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