-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
121 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
"""Settings Base.""" | ||
|
||
from __future__ import annotations | ||
|
||
import logging | ||
import os | ||
from pathlib import Path | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,56 @@ | ||
|
||
[tool.black] | ||
line-length = 88 | ||
target-version = ['py36', 'py37', 'py38'] | ||
include = '\.pyi?$' | ||
|
||
[tool.ruff] | ||
line-length = 121 | ||
# pyflakes, pycodestyle, isort | ||
include = ["tests/*.py", "aiohttp_msal/**/*.py"] | ||
|
||
[tool.ruff.lint] | ||
select = ["F", "E", "W", "I001"] | ||
|
||
[tool.ruff.lint.flake8-import-conventions] | ||
# Declare the banned `from` imports. | ||
banned-from = ["typing"] | ||
|
||
[tool.ruff.lint.isort] | ||
no-lines-before = ["future", "standard-library"] | ||
|
||
[tool.mypy] | ||
disallow_untyped_defs = true | ||
ignore_missing_imports = true | ||
|
||
# https://stackoverflow.com/questions/64162504/settings-for-pylint-in-setup-cfg-are-not-getting-used | ||
[tool.pylint.'MESSAGES CONTROL'] | ||
max-line-length = 120 | ||
good-names = ["db", "fr", "cr", "k", "i"] | ||
disable = [ | ||
"line-too-long", | ||
"unsubscriptable-object", | ||
"unused-argument", | ||
"too-many-branches", | ||
"too-many-locals", | ||
"too-many-statements", | ||
"too-many-instance-attributes", | ||
"too-few-public-methods", | ||
"R0401", | ||
"R0801", | ||
"wrong-import-order", | ||
] | ||
|
||
[tool.pylint.design] | ||
# limiting the number of returns might discourage | ||
# the use of guard clauses. So we increase the | ||
# allowed number of returns from 6 to 8 | ||
max-returns = 8 | ||
[tool.pytest.ini_options] | ||
pythonpath = [".", "src"] | ||
filterwarnings = "ignore:.+@coroutine.+deprecated.+" | ||
testpaths = "tests" | ||
norecursedirs = [".git", "modules"] | ||
log_cli = true | ||
log_cli_level = "DEBUG" | ||
asyncio_mode = "auto" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters