Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Feb 18, 2024
1 parent 3b57a4d commit e10bc46
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ repos:
- id: ruff
args: [--fix]
- id: ruff-format
args: [--line-length=88]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.0
hooks:
Expand Down
1 change: 1 addition & 0 deletions cashu/mint/ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,7 @@ async def melt_mint_settle_internally(self, melt_quote: MeltQuote) -> MeltQuote:
f"Settling bolt11 payment internally: {melt_quote.quote} ->"
f" {mint_quote.quote} ({melt_quote.amount} {melt_quote.unit})"
)

# we handle this transaction internally
melt_quote.fee_paid = 0
melt_quote.paid = True
Expand Down
6 changes: 1 addition & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,14 @@ mint = "cashu.mint.main:main"
cashu = "cashu.wallet.cli.cli:cli"
wallet-test = "tests.test_wallet:test"


[tool.black]
line-length = 88

# previously experimental-string-processing = true
# this should autoformat string properly but does not work
preview = true


[tool.ruff]
# Same as Black. but black has a 10% overflow rule
line-length = 150
line-length = 88
show-fixes = true

[tool.ruff.lint]
Expand Down

0 comments on commit e10bc46

Please sign in to comment.