[DEV] add ruff for linting and combine linters into one workflow (#1875)

* remove unused and update black + precommit
* makefile add ruff remove unused
* F541 fix
* complete ruff ignore
* remove unused workflow and combine linters into one
add lnbits/static to ruff ignore
save preview and linelength for later
define target version for black
* ignore upgrades for mypy
* remove flake8
* ignore F401 for __init__ files
* unused pylint comment
* unused noqa
* ignore upgrades for black
* run linting on py3.9 and py3.10
* dont assume python
This commit is contained in:
dni ⚡
2023-08-19 07:38:04 +02:00
committed by GitHub
parent 642f9a4c00
commit eb0b06f98c
16 changed files with 218 additions and 429 deletions
+1 -1
View File
@@ -532,7 +532,7 @@ class Formatter:
self.fmt: str = self.minimal_fmt
def format(self, record):
function = "{function}".format(**record) # pylint: disable=C0209
function = "{function}".format(**record)
if function == "emit": # uvicorn logs
return self.minimal_fmt
return self.fmt