This repository has been archived on 2023-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
python-blog/pyproject.toml

63 lines
1.5 KiB
TOML
Raw Normal View History

2021-12-19 21:41:20 +01:00
[tool.pytest.ini_options]
addopts = "--color=yes"
minversion = "6.0"
DJANGO_SETTINGS_MODULE = "blog.settings"
testpaths = [
"src",
]
env = [
"GOATCOUNTER_DOMAIN=gc.gabnotes.org"
]
2021-12-28 22:31:53 +01:00
[tool.mypy]
2022-09-23 22:45:29 +02:00
mypy_path = "$MYPY_CONFIG_FILE_DIR/stubs"
2021-12-31 12:08:03 +01:00
disallow_untyped_defs = true
warn_redundant_casts = true
strict_equality = true
disallow_untyped_calls = true
warn_unreachable = true
2021-12-31 12:29:13 +01:00
enable_error_code = ["redundant-expr"]
2021-12-28 22:31:53 +01:00
[[tool.mypy.overrides]]
module = [
"django.*",
2021-12-28 22:31:53 +01:00
"environ",
"django_otp.plugins.otp_static.models",
"two_factor.models",
"django_otp.plugins.otp_totp.models",
2021-12-31 12:08:03 +01:00
"model_bakery",
"invoke",
2022-09-23 22:45:29 +02:00
"kolo",
2021-12-28 22:31:53 +01:00
]
ignore_missing_imports = true
2022-09-23 22:45:29 +02:00
[tool.flakeheaven]
max_complexity = 10
format = "grouped"
2022-09-23 22:45:29 +02:00
[tool.flakeheaven.plugins]
"flake8-*" = [
"+*",
# long lines
"-E501",
# conflict with black on PEP8 interpretation
"-E203",
# deprecated rule: https://www.flake8rules.com/rules/W503.html
"-W503",
]
flake8-builtins = ["-A003"] # class attribute is shadowing a python builtin
flake8-quotes = ["-Q000"] # found double quotes, conflict with black
flake8-commas = ["-C812"] # missing trailing comma, conflict with black
flake8-docstrings = ["-D1??"] # missing docstring
flake8-rst-docstrings = ["-*"]
2022-09-23 22:45:29 +02:00
flake8-isort = ["-*"]
2022-09-23 22:45:29 +02:00
[tool.flakeheaven.exceptions."**/migrations/*"]
2022-09-23 22:45:29 +02:00
[tool.flakeheaven.exceptions."**/tests/*"]
flake8-bandit = ["-S101"] # Use of assert detected.
2021-12-28 22:31:53 +01:00
2020-11-11 09:38:37 +01:00
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"