2020-11-11 09:38:37 +01:00
|
|
|
[tool.poetry]
|
|
|
|
name = "blog"
|
|
|
|
version = "0.1.0"
|
|
|
|
description = ""
|
|
|
|
authors = ["Gabriel Augendre <gabriel@augendre.info>"]
|
|
|
|
license = "GPLv3"
|
|
|
|
|
|
|
|
[tool.poetry.dependencies]
|
2021-12-19 20:40:51 +01:00
|
|
|
python = "^3.10"
|
2022-09-26 15:08:37 +02:00
|
|
|
django = {version = "^4.1", extras = ["argon2"]}
|
2020-11-11 09:38:37 +01:00
|
|
|
markdown = "^3.2"
|
|
|
|
gunicorn = "^20.0"
|
|
|
|
Pygments = "^2.6"
|
2021-12-19 20:29:18 +01:00
|
|
|
django-anymail = {version = "^8.4", extras = ["mailgun"]}
|
2022-09-23 22:45:29 +02:00
|
|
|
pillow = "^9.2"
|
|
|
|
django-cleanup = "^6.0"
|
2020-11-11 09:38:37 +01:00
|
|
|
requests = "^2.24"
|
2022-09-23 22:45:29 +02:00
|
|
|
readtime = "^2.0.0"
|
2021-03-20 19:59:53 +01:00
|
|
|
django-debug-toolbar = "^3.2"
|
2022-09-23 22:45:29 +02:00
|
|
|
whitenoise = {extras = ["brotli"], version = "^6.0"}
|
2021-03-21 15:30:16 +01:00
|
|
|
rcssmin = "^1.0.6"
|
2021-03-21 16:00:33 +01:00
|
|
|
django-csp = "^3.7"
|
2022-09-23 22:45:29 +02:00
|
|
|
django-two-factor-auth = {extras = ["phonenumberslite"], version = "^1.14"}
|
2021-12-27 11:48:33 +01:00
|
|
|
beautifulsoup4 = "^4.10.0"
|
2022-09-23 22:45:29 +02:00
|
|
|
django-environ = "^0.9.0"
|
2022-09-23 23:19:27 +02:00
|
|
|
django-extensions = "^3.2.1"
|
2020-11-11 09:38:37 +01:00
|
|
|
|
|
|
|
[tool.poetry.dev-dependencies]
|
|
|
|
pre-commit = "^2.7"
|
2022-09-23 22:45:29 +02:00
|
|
|
pytest = "^7.0"
|
2021-12-19 20:29:18 +01:00
|
|
|
pytest-django = "^4.5"
|
2020-11-11 09:38:37 +01:00
|
|
|
model-bakery = "^1.1"
|
2021-12-19 20:29:18 +01:00
|
|
|
pytest-cov = "^3.0"
|
|
|
|
pytest-recording = "^0.12.0"
|
|
|
|
pytest-rerunfailures = "^10.2"
|
2021-03-04 20:03:05 +01:00
|
|
|
pytest-env = "^0.6.2"
|
2022-09-23 22:45:29 +02:00
|
|
|
poetry-deps-scanner = "^2.0"
|
2021-12-19 21:22:34 +01:00
|
|
|
invoke = "^1.6.0"
|
2022-09-23 22:45:29 +02:00
|
|
|
mypy = "^0.971"
|
2021-12-28 22:31:53 +01:00
|
|
|
types-Markdown = "^3.3.10"
|
|
|
|
types-requests = "^2.26.3"
|
2022-09-23 22:45:29 +02:00
|
|
|
types-setuptools = "^65"
|
2021-12-28 22:31:53 +01:00
|
|
|
types-toml = "^0.10.1"
|
|
|
|
types-beautifulsoup4 = "^4.10.7"
|
2022-09-23 22:45:29 +02:00
|
|
|
types-Pillow = "^9.2"
|
2022-09-23 21:47:19 +02:00
|
|
|
kolo = "^2.0.3"
|
2022-09-23 22:45:29 +02:00
|
|
|
lxml-stubs = "^0.4.0"
|
2021-12-19 21:41:20 +01:00
|
|
|
|
|
|
|
[tool.isort]
|
|
|
|
profile = "black"
|
|
|
|
|
|
|
|
[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 = [
|
2021-12-29 16:12:55 +01:00
|
|
|
"django.*",
|
2021-12-28 22:31:53 +01:00
|
|
|
"environ",
|
2021-12-29 10:42:08 +01:00
|
|
|
"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]
|
2021-12-29 14:54:21 +01:00
|
|
|
max_complexity = 10
|
|
|
|
format = "grouped"
|
|
|
|
|
2022-09-23 22:45:29 +02:00
|
|
|
[tool.flakeheaven.plugins]
|
2021-12-29 14:54:21 +01:00
|
|
|
"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 = ["-*"]
|
2021-12-29 14:54:21 +01:00
|
|
|
|
2022-09-23 22:45:29 +02:00
|
|
|
[tool.flakeheaven.exceptions."**/migrations/*"]
|
2021-12-29 14:54:21 +01:00
|
|
|
|
2022-09-23 22:45:29 +02:00
|
|
|
[tool.flakeheaven.exceptions."**/tests/*"]
|
2021-12-29 14:54:21 +01:00
|
|
|
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"
|