chore: adhere to ruff's "N" rules (#2377)

* chore: adhere to ruff's "N" rules

WARN: reinstall failing extensions!

bunch of more consistent variable naming. inspired by this issue.
https://github.com/lnbits/lnbits/issues/2308

* fixup! chore: adhere to ruff's "N" rules
* rename to funding_source
* skip jmeter

---------

Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
This commit is contained in:
dni ⚡ 2024-04-15 09:02:21 +02:00 committed by GitHub
parent 055426ab53
commit 6d5ad9e229
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 191 additions and 173 deletions

View file

@ -168,7 +168,8 @@ extend-exclude = [
# I - isort
# A - flake8-builtins
# C - mccabe
select = ["F", "E", "W", "I", "A", "C"]
# N - naming
select = ["F", "E", "W", "I", "A", "C", "N"]
ignore = []
# Allow autofix for all enabled rules (when `--fix`) is provided.
@ -178,6 +179,12 @@ unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# needed for pydantic
[tool.ruff.lint.pep8-naming]
classmethod-decorators = [
"root_validator",
]
# Ignore unused imports in __init__.py files.
[tool.ruff.lint.extend-per-file-ignores]
"__init__.py" = ["F401", "F403"]