Metadata-Version: 2.4
Name: finlint-pylint
Version: 1.0.0
Summary: Pylint plugin for financial math accuracy
Author: Kanso Finance
License: Apache-2.0
Project-URL: Homepage, https://github.com/kanso-finance/finlint
Project-URL: Repository, https://github.com/kanso-finance/finlint
Project-URL: Issues, https://github.com/kanso-finance/finlint/issues
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pylint>=3.0
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == "dev"
Dynamic: license-file

# 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

```bash
pip install finlint-pylint
```

## Usage

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

Or in your `pyproject.toml`:

```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](https://github.com/kanso-finance/finlint)
