mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-10 19:57:15 +03:00
9a773b9d7b
* Use ruff in pre-commit * Add pyupgrade * Add isort * Add bugbear * Fix B015 Pointless comparison * Fix B026 * B018 false positive * Remove flake8 and isort config from setup.cfg * Remove black and flake8 from dev dependencies * Update black * Show list of fixes applied with autofix on * Fix typo * Add C4 flake8-comprehensions * Add ruff to dev dependencies * Fix up
34 lines
809 B
TOML
34 lines
809 B
TOML
select = [
|
|
"E", # pycodestyle
|
|
"W", # pycodestyle
|
|
"F", # pyflake
|
|
"I", # isort
|
|
"B", # flake8-bugbear
|
|
"C4", # flake8-comprehensions
|
|
"UP", # pyupgrade
|
|
]
|
|
|
|
ignore = [
|
|
"E501", # line-too-long
|
|
"B017", # pytest.raises(Exception) should be considered evil
|
|
"B028", # warnings.warn called without an explicit stacklevel keyword argument
|
|
"B904", # check for raise statements in exception handlers that lack a from clause
|
|
]
|
|
|
|
exclude = [
|
|
"**/docs",
|
|
]
|
|
|
|
target-version = "py38"
|
|
|
|
[per-file-ignores]
|
|
# Ignore unused imports (F401) in these files
|
|
"__init__.py" = ["F401"]
|
|
"graphene_django/compat.py" = ["F401"]
|
|
|
|
[isort]
|
|
known-first-party = ["graphene", "graphene-django"]
|
|
known-local-folder = ["cookbook"]
|
|
force-wrap-aliases = true
|
|
combine-as-imports = true
|