Commit Graph

18 Commits

Author SHA1 Message Date
Pavol Rusnak
25f0763f94 chore: run pyupgrade (#623)
- use `{...}` instead of `set([...])`
- do not use `class Foo(object):`, just use `class Foo:`
- do not specify default flags (`"r"`) for `open()`
2024-09-24 13:53:35 +02:00
dni ⚡
e3ed00640f FEAT: Add flake8 (#267)
* init flake8

* exclude nostr client, and add ds_store to gitignore

* fix flake8 F811 issue, redefinition of unused variables

* add flake8 to workflow

* F401 unused imports

* F541 f-string is missing placeholders

* E501 line too long > 150 characters

* E722 no bare except

* E402 module level import not at top of file

* F405 no star imports

* E712 comparison to False should be 'if cond is False:'

* F841 local variable is assigned to but never used

* E266 too many leading '#' for block comment

* E265, E261

* E713 test for membership should be 'not in'

* E711, E741

E741 ambiguous variable name 'l'
E711 comparison to None should be 'if cond is None:'

* flake config

* isort

* refactor makefile flake8 usage

* reflaking the rebase

* black

* fix tests?

* black

* fix line lenght it test_cli

* sort out makefile

* fix strings

* reintroduce black-check

* reflake and mypy

* isort

* Update cashu/wallet/wallet.py

Co-authored-by: Angus Pearson <angus@toaster.cc>

* Update cashu/mint/ledger.py

Co-authored-by: Angus Pearson <angus@toaster.cc>

---------

Co-authored-by: Angus Pearson <angus@toaster.cc>
2023-07-28 18:42:16 +02:00
callebtc
a06ea0ab05 remove print 2022-10-31 22:39:27 +01:00
callebtc
5fbc3ee94d rewrite timeout.py 2022-10-31 22:32:28 +01:00
callebtc
f6c75eb491 dont crash if permissions cant be set 2022-10-31 11:04:37 +01:00
callebtc
16815a283e own timeout 2022-10-31 11:01:41 +01:00
callebtc
2587abcd79 dont start tor for platform check 2022-10-30 18:00:56 +01:00
callebtc
ace3785b15 update tor warning 2022-10-30 12:53:39 +01:00
callebtc
5df2c91666 set ld path 2022-10-30 01:42:29 +02:00
callebtc
60f30f070a cwd 2022-10-30 01:36:00 +02:00
callebtc
c17a652b89 update tor 2022-10-30 01:30:28 +02:00
callebtc
5ef4165937 warning 2022-10-30 01:10:20 +02:00
callebtc
6936e801e4 works 2022-10-30 00:00:47 +02:00
callebtc
d6fa754a6d test tor 2022-10-29 22:55:32 +02:00
callebtc
77c66880c1 make format 2022-10-29 22:44:17 +02:00
callebtc
13deeded6b make format 2022-10-29 20:51:45 +02:00
callebtc
8222af9649 tor works 2022-10-29 20:51:30 +02:00
callebtc
d8cd648714 add tor 2022-10-29 18:07:13 +02:00