]> git.mxchange.org Git - fba.git/commit
Fixed some issues found by pylint:
authorRoland Häder <roland@mxchange.org>
Fri, 9 Jun 2023 00:50:37 +0000 (02:50 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 9 Jun 2023 01:39:01 +0000 (03:39 +0200)
commiteb07351489e809640a7116f9303e8497b312654a
tree56dd6c4960db34fe829104e85d7c49dd0c442072
parentbf40c5220d0def178c31df888ddeb5113481c52c
Fixed some issues found by pylint:
- added pylint.rc file (all checks are enabled)
- '!= None' should be 'is not None'
- '== None' should be 'is None'
- '!= type' should be 'not isinstance(var, type)'
- fixed some 'unused variable'
- fixed 'duplicate definition'
- fixed 'invalid name'
- fixed f"foo" with no {var} in it
- renamed more variables
16 files changed:
api.py
fba/blacklist.py
fba/blocks.py
fba/boot.py
fba/cache.py
fba/commands.py
fba/config.py
fba/fba.py
fba/federation/lemmy.py
fba/federation/mastodon.py
fba/federation/misskey.py
fba/federation/peertube.py
fba/federation/pleroma.py
fba/instances.py
fba/network.py
pylint.rc [new file with mode: 0644]