feat: add linters and ci (#28)

* feat: introduce linting and ci
* add locks
* prettier
* black and sorting
* f405 missing imports
* E902
* mypy
* renderer
* circular imports
* check comment
* add exports
* add lnurlerrorhandler only on lnurl routes
* add test case
This commit is contained in:
dni ⚡ 2024-07-11 10:30:28 +02:00 committed by GitHub
commit a44820f61f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 2934 additions and 145 deletions

View file

@ -198,7 +198,7 @@ new Vue({
},
updateWithdrawLink: function (wallet, data) {
var self = this
// Remove webhook info if toggle is set to false
if (!data.has_webhook) {
data.webhook_url = null
@ -213,7 +213,7 @@ new Vue({
wallet.adminkey,
data
)
.then((response) => {
.then(response => {
self.withdrawLinks = _.reject(self.withdrawLinks, function (obj) {
return obj.id === data.id
})
@ -230,7 +230,7 @@ new Vue({
LNbits.api
.request('POST', '/withdraw/api/v1/links', wallet.adminkey, data)
.then((response) => {
.then(response => {
self.withdrawLinks.push(mapWithdrawLink(response.data))
self.formDialog.show = false
self.simpleformDialog.show = false
@ -305,7 +305,7 @@ new Vue({
this.withdrawLinks,
'withdraw-links'
)
},
}
},
created: function () {
if (this.g.user.wallets.length) {