Commit Graph
62 Commits
Author SHA1 Message Date
Pavol RusnakandGitHub bd1db0c919 add editorconfig config, fix issues (only whitespace changes) (#1958) 2023-09-25 11:06:25 +01:00
Pavol Rusnakanddni ⚡ 9c8a79eb9b fix pyright lnbits/wallets
Co-authored-by: dni  <office@dnilabs.com>
2023-04-04 07:34:50 +02:00
Pavol Rusnakanddni ⚡ 0607cb1d6e fix pyright lnbits/core
Co-authored-by: dni  <office@dnilabs.com>
2023-04-04 07:34:37 +02:00
Pavol Rusnakanddni ⚡ 02306148df fix pyright lnbits
Co-authored-by: dni  <office@dnilabs.com>
2023-04-04 07:34:17 +02:00
Pavol RusnakandGitHub 3855cf47f3 Merge pull request #1607 from lnbits/f-strings
small followup to #1597
2023-04-03 17:59:50 +02:00
Pavol Rusnak b2bc378a6f small followup to #1597 2023-04-03 17:54:55 +02:00
689c443d72 increase readability by using f-strings (#1597)
* increase readability by using f-strings

* readd merge conflict stuff

---------

Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2023-04-03 15:34:17 +02:00
Pavol RusnakandVlad Stan a805d2a0e8 refactor extension_manager to use pathlib.Path instead of os.path.join 2023-03-20 16:07:20 +02:00
Pavol RusnakandGitHub 281d37f79c Merge pull request #1582 from lnbits/docs-nginx
docs: add nginx ssl proxy info to installation
2023-03-19 09:27:14 +01:00
Pavol RusnakandGitHub 0039c60a27 Merge pull request #1583 from lnbits/mypy-pyproject-simplify
simplify exclude syntax for mypy in pyproject.toml
2023-03-18 20:49:23 +01:00
Pavol RusnakandGitHub 3317bc1bc5 Merge pull request #1578 from lnbits/flake-update
flake: update to latest nixpkgs
2023-03-17 23:10:55 +01:00
Pavol Rusnak 9cf43dcea1 simplify exclude syntax for mypy in pyproject.toml 2023-03-17 18:05:43 +01:00
Pavol Rusnak b3910da6d7 flake: update to latest nixpkgs 2023-03-17 18:03:33 +01:00
Pavol Rusnak ec1caa6015 docs: fix readability of HTTPS section in installation 2023-03-17 15:13:25 +01:00
Pavol Rusnak 0d8d580fc9 docs: add nginx ssl proxy info to installation 2023-03-17 15:10:15 +01:00
Pavol Rusnak f860c170fc Bump shortuuid dependency to fix build on Python 3.10 2023-03-10 11:54:23 +01:00
Pavol Rusnak 892d8ffa62 fix markdown links in the readme 2023-03-08 18:15:58 +01:00
Pavol Rusnakanddni ⚡ 3bd68cb394 fix pyright lnbits/extensions
Co-authored-by: dni  <office@dnilabs.com>
2023-02-06 13:35:38 +01:00
Pavol Rusnakanddni ⚡ 09eab69e12 fix pyright in Makefile, add pyright+pylint+flake8 to check target
Co-authored-by: dni  <office@dnilabs.com>
2023-02-06 13:31:42 +01:00
Pavol Rusnakanddni ⚡ b8a5cc60b8 add pyright workflow, unify mypy+flake8+pylint workflows
Co-authored-by: dni  <office@dnilabs.com>
2023-02-06 13:31:42 +01:00
Pavol Rusnak 58a7098be5 fix unused variable 2023-01-30 11:46:45 +00:00
Pavol Rusnak 430698c763 improve workflow stability for flake8 and pylint
followup to #1397
2023-01-30 11:46:45 +00:00
Pavol Rusnak 0ff4c13346 add flake8 to CI, skip remaining 4 flake8 issues (will be addressed later) 2023-01-30 11:46:45 +00:00
Pavol Rusnak 24fbb9ef5d fix flake8 F811 (redefinition of unused) 2023-01-30 11:46:45 +00:00
Pavol Rusnak 388cfc18fa fix flake8 F405 (may be undefined) 2023-01-30 11:46:45 +00:00
Pavol Rusnak a49a654137 fix flake8 F401+F403 (module imported but unused + unable to detect undefined names) 2023-01-30 11:46:45 +00:00
Pavol Rusnak 967ce06ca5 fix pylint C0206 (consider-using-dict-items) 2023-01-30 11:46:45 +00:00
Pavol Rusnak 3e42adc66f fix flake8 F601 (dictionary key repeated with different values) 2023-01-30 11:46:45 +00:00
Pavol Rusnak e05340269b fix flake8 F841 (local variable is assigned to but never used) 2023-01-30 11:46:45 +00:00
Pavol Rusnak 8a72585f00 fix flake8 W293 (blank line contains whitespace) 2023-01-30 11:46:44 +00:00
Pavol Rusnak a02f147482 fix flake8 E302 (expected 2 blank lines) 2023-01-30 11:46:44 +00:00
Pavol Rusnak 421214bc36 fix flake8 W291 (trailing whitespace) 2023-01-30 11:46:44 +00:00
Pavol Rusnak bc36e6bc4c fix flake8 F541 (f-string is missing placeholders) 2023-01-30 11:46:44 +00:00
Pavol Rusnak 86e8a3a315 fix flake8 E711 (comparison-to-none) 2023-01-30 11:46:44 +00:00
Pavol Rusnak eba7319808 fix flake8 E713 (test-for-membership) 2023-01-30 11:46:44 +00:00
Pavol Rusnak f6bd8684d3 fix flake8 E712 (comparison-to-bool) 2023-01-30 11:46:44 +00:00
Pavol Rusnak 9ef4bd8fb9 add pylint workflow after all enabled issues were fixed 2023-01-30 11:46:44 +00:00
Pavol Rusnak 50c613cdd4 silence pylint W0231 (super-init-not-called) 2023-01-30 11:46:44 +00:00
Pavol Rusnak a0cc55c5a1 fix pylint C0209 (consider-using-f-string) 2023-01-30 11:46:43 +00:00
Pavol Rusnak 9fa3e5c6cf fix pylint W0102 (dangerous-default-value) 2023-01-30 11:46:43 +00:00
Pavol Rusnak 906d91bcf1 fix pylint R1714 (consider-using-in) 2023-01-30 11:46:43 +00:00
Pavol Rusnak 35396d7e63 fix pylint R0205 (useless-object-inheritance) 2023-01-30 11:46:43 +00:00
Pavol Rusnak d29fcca6aa fix pylint W0612 (unused-variable) 2023-01-30 11:46:43 +00:00
Pavol Rusnak 32f4c8aa17 fix shadowing in build.py 2023-01-30 11:46:43 +00:00
Pavol Rusnak 15d7fbeace run autoflake
```
autoflake -i --remove-unused-variables $(find . -name "*.py")
```
2023-01-30 11:46:43 +00:00
Pavol Rusnak c8efe41e1a add flake8 and pylint as dev dependencies 2023-01-30 11:46:43 +00:00
Pavol RusnakandGitHub a089188664 add pyright to the project (#1367)
* add pyright to project + bump prettier to latest

* reformat to match the latest prettier rules
2023-01-23 10:29:17 +01:00
Pavol RusnakandGitHub 20e6ca019e replace lnbits-legend with lnbits in github links (#1366) 2023-01-14 12:26:17 +01:00
Pavol Rusnak aa067df380 remove extraneous not payment.extra check
followup to fca7e7bec3
2023-01-08 12:19:58 +00:00
Pavol Rusnak e4c01285b2 followup to fca7e7bec3
one extraneous check was forgotten
2023-01-05 13:27:11 +01:00
Pavol Rusnak 191ad1e224 make payment.extra non-optional
this makes handling in tasks.py so much easier
2023-01-05 09:22:34 +01:00
Pavol Rusnak 2c1d02940d fix mypy for lnbits/extensions/lnticket 2023-01-03 23:32:18 +01:00
Pavol Rusnak 0efc27993e fix mypy for lnbits/extensions/splitpayments 2023-01-03 23:25:42 +01:00
Pavol Rusnak 236fe9f8eb fix mypy for lnbits/extensions/paywall 2023-01-03 23:21:17 +01:00
Pavol Rusnak 3d0c66f0f6 remove unnecessary argument encoding from bytes.decode() and str.encode()
the encoding parameter defaults to utf-8, so it's not needed
2023-01-03 22:38:28 +01:00
Pavol Rusnak 2e57210623 extensions/satspay: remove duplicit functions
probably merge error
2023-01-02 18:37:54 +01:00
Pavol Rusnak aa97e3cb54 add -o to find opts meaning or (default is and)
which returns no results
2022-12-30 16:07:32 +01:00
Pavol Rusnak f7a977ecc8 let's use unique function names
so mypy is not confused
2022-12-30 13:16:11 +01:00
Pavol Rusnak 2f377343f1 extensions/gerty: remove duplicit functions
probably merge error
2022-12-30 00:11:23 +01:00
Pavol Rusnak a377381942 use bytes.fromhex/hex builtins instead of binascii.hexlify/unhexlify 2022-12-29 16:46:35 +01:00
Pavol Rusnak aa267f52a2 enable nix flake on {aarch64,x86_64}-darwin 2022-12-28 15:09:30 +01:00
Pavol Rusnak 86b0cec215 remove result link
this shouldn't have been commited since it it listed in gitignore)
2022-12-28 12:48:31 +01:00