name = "finanza"
version = "0.1.1"
description = "Decimal arithmetic, currency formatting, time-value-of-money, and payment-card helpers for Gleam."
licences = ["MIT"]
repository = { type = "github", user = "nao1215", repo = "finanza" }
links = [
{ title = "Repository", href = "https://github.com/nao1215/finanza" },
{ title = "Changelog", href = "https://github.com/nao1215/finanza/blob/main/CHANGELOG.md" },
]
gleam = ">= 1.15.0"
[dependencies]
gleam_stdlib = ">= 0.44.0 and < 2.0.0"
gleam_regexp = ">= 1.0.0 and < 2.0.0"
[dev-dependencies]
gleeunit = ">= 1.0.0 and < 2.0.0"
glinter = ">= 2.14.0 and < 3.0.0"
metamon = ">= 0.8.0 and < 2.0.0"
[tools.glinter]
warnings_as_errors = true
include = ["src/", "test/"]
[tools.glinter.rules]
assert_ok_pattern = "error"
avoid_panic = "error"
avoid_todo = "error"
deep_nesting = "error"
discarded_result = "error"
division_by_zero = "error"
duplicate_import = "error"
echo = "error"
error_context_lost = "error"
ffi_usage = "error"
function_complexity = "error"
label_possible = "error"
missing_labels = "error"
missing_type_annotation = "error"
module_complexity = "error"
panic_without_message = "error"
prefer_guard_clause = "error"
redundant_case = "error"
short_variable_name = "error"
string_inspect = "error"
stringly_typed_error = "error"
thrown_away_error = "error"
todo_without_message = "error"
trailing_underscore = "error"
unnecessary_string_concatenation = "error"
unnecessary_variable = "error"
unqualified_import = "error"
# Disabled: every public function in a leaf library module is — by design —
# only consumed by external callers, so glinter treats them as "unused".
unused_exports = "off"
unwrap_used = "error"
[tools.glinter.ignore]
"test/**/*.gleam" = [
"assert_ok_pattern",
"missing_type_annotation",
"short_variable_name",
"unused_exports",
]
# dig-bug exploratory tests mix Result variants in case expressions
# deliberately to assert algebraic properties; the discarded error
# branches are intentional shapes for PBT, not bug-prone code.
"test/dig_round*.gleam" = [
"assert_ok_pattern",
"deep_nesting",
"discarded_result",
"label_possible",
"missing_labels",
"missing_type_annotation",
"prefer_guard_clause",
"short_variable_name",
"thrown_away_error",
"unused_exports",
]
# Property-based test predicates mix Result variants in case expressions
# deliberately (the predicate cares about Ok/Error symmetry). Relax the
# same rules as the dig-bug suites.
"test/property/*.gleam" = [
"assert_ok_pattern",
"deep_nesting",
"discarded_result",
"label_possible",
"missing_labels",
"missing_type_annotation",
"prefer_guard_clause",
"short_variable_name",
"thrown_away_error",
"unused_exports",
]
# Decimal/Interest numeric code uses conventional short math names (a, b, n, r, p)
"src/finanza/decimal.gleam" = ["short_variable_name"]
"src/finanza/interest.gleam" = ["short_variable_name"]
"src/finanza/interest/amortization.gleam" = ["short_variable_name"]