2022-04-02 17:44:57 +02:00
|
|
|
[tool.poetry]
|
|
|
|
name = "django-fritzconnection_ynh"
|
2022-10-04 17:52:42 +02:00
|
|
|
version = "0.2.0+ynh2"
|
2022-04-02 17:44:57 +02:00
|
|
|
description = "Test django-fritzconnection_ynh via local_test.py"
|
|
|
|
authors = ["JensDiemer <git@jensdiemer.de>"]
|
|
|
|
license = "GPL"
|
2022-10-04 17:52:42 +02:00
|
|
|
homepage = "https://github.com/YunoHost-Apps/django-fritzconnection_ynh"
|
|
|
|
|
|
|
|
[tool.poetry.urls]
|
|
|
|
"Bug Tracker" = "https://github.com/YunoHost-Apps/django-fritzconnection_ynh/issues"
|
2022-04-02 17:44:57 +02:00
|
|
|
|
|
|
|
[tool.poetry.dependencies]
|
2022-10-04 17:52:42 +02:00
|
|
|
python = ">=3.7,<4.0.0" # TODO: Update to >=3.8 after YunoHost updates to Bullseye
|
2022-05-15 19:35:11 +02:00
|
|
|
django-fritzconnection = ">=0.2.0"
|
2022-04-02 17:44:57 +02:00
|
|
|
|
2022-10-04 17:52:42 +02:00
|
|
|
# extras "ynh" will install: gunicorn, psycopg2, django-redis and django-axes
|
|
|
|
# see: https://github.com/YunoHost-Apps/django_yunohost_integration/blob/main/pyproject.toml
|
|
|
|
django_yunohost_integration = {version = ">=0.4.1", extras = ["ynh"]} # https://github.com/YunoHost-Apps/django_yunohost_integration
|
2022-04-02 17:44:57 +02:00
|
|
|
|
|
|
|
[tool.poetry.dev-dependencies]
|
2022-08-16 09:47:54 +02:00
|
|
|
bx_py_utils = "*" # https://github.com/boxine/bx_py_utils
|
2022-10-04 17:52:42 +02:00
|
|
|
bx_django_utils = "*" # https://github.com/boxine/bx_django_utils
|
2022-04-02 17:44:57 +02:00
|
|
|
tox = "*"
|
|
|
|
pytest = "*"
|
|
|
|
pytest-cov = "*"
|
|
|
|
pytest-django = "*"
|
|
|
|
pytest-darker = "*" # https://github.com/akaihola/pytest-darker
|
|
|
|
coveralls = "*"
|
|
|
|
isort = "*"
|
|
|
|
flake8 = "*"
|
2022-10-04 17:52:42 +02:00
|
|
|
EditorConfig = "*" # https://github.com/editorconfig/editorconfig-core-py
|
|
|
|
safety = "*" # https://github.com/pyupio/safety
|
|
|
|
requests = "*" # https://github.com/psf/requests
|
|
|
|
packaging = "*" # https://github.com/pypa/packagi
|
|
|
|
|
2022-04-02 17:44:57 +02:00
|
|
|
|
|
|
|
[build-system]
|
2022-10-04 17:52:42 +02:00
|
|
|
requires = ["poetry-core"]
|
2022-04-02 17:44:57 +02:00
|
|
|
build-backend = "poetry.core.masonry.api"
|
|
|
|
|
|
|
|
|
|
|
|
[tool.darker]
|
|
|
|
src = ['.']
|
|
|
|
revision = "origin/master..."
|
2022-04-02 20:35:22 +02:00
|
|
|
line_length = 100
|
2022-04-02 17:44:57 +02:00
|
|
|
verbose = true
|
|
|
|
skip_string_normalization = true
|
|
|
|
diff = false
|
|
|
|
check = false
|
|
|
|
stdout = false
|
|
|
|
isort = true
|
|
|
|
lint = [
|
|
|
|
"flake8",
|
|
|
|
]
|
|
|
|
log_level = "INFO"
|
|
|
|
|
|
|
|
|
|
|
|
[tool.isort]
|
|
|
|
# https://pycqa.github.io/isort/docs/configuration/config_files/#pyprojecttoml-preferred-format
|
|
|
|
atomic=true
|
|
|
|
profile='black'
|
2022-10-04 17:52:42 +02:00
|
|
|
skip_glob=["*/htmlcov/*","*/migrations/*","*/local_test/*"]
|
2022-04-02 20:35:22 +02:00
|
|
|
line_length=100
|
2022-04-02 17:44:57 +02:00
|
|
|
known_first_party=["djfritz","djfritz_project","djfritz_tests"]
|
|
|
|
lines_after_imports=2
|
|
|
|
|
|
|
|
|
|
|
|
[tool.pytest.ini_options]
|
|
|
|
# https://docs.pytest.org/en/latest/customize.html#pyproject-toml
|
|
|
|
minversion = "6.0"
|
2022-08-16 09:47:54 +02:00
|
|
|
norecursedirs = ".* .git __pycache__ conf local_test coverage* dist htmlcov"
|
2022-04-02 17:44:57 +02:00
|
|
|
# sometimes helpfull "addopts" arguments:
|
|
|
|
# -vv
|
|
|
|
# --verbose
|
|
|
|
# --capture=no
|
|
|
|
# --trace-config
|
|
|
|
# --full-trace
|
|
|
|
# -p no:warnings
|
|
|
|
addopts = """
|
|
|
|
--reuse-db
|
|
|
|
--nomigrations
|
|
|
|
--cov=.
|
|
|
|
--cov-report term-missing
|
|
|
|
--cov-report html
|
|
|
|
--cov-report xml
|
|
|
|
--no-cov-on-fail
|
|
|
|
--showlocals
|
|
|
|
--darker
|
|
|
|
--doctest-modules
|
|
|
|
--failed-first
|
|
|
|
--new-first
|
|
|
|
"""
|
|
|
|
|
2022-08-16 09:47:54 +02:00
|
|
|
|
|
|
|
[tool.coverage.run]
|
|
|
|
omit = [".*"]
|
|
|
|
|
|
|
|
|
2022-04-02 17:44:57 +02:00
|
|
|
[tool.tox]
|
|
|
|
# https://tox.readthedocs.io/en/latest/example/basic.html#pyproject-toml-tox-legacy-ini
|
|
|
|
legacy_tox_ini = """
|
|
|
|
[tox]
|
|
|
|
isolated_build = True
|
2022-08-16 09:47:54 +02:00
|
|
|
envlist = py{37,38,39,310}
|
2022-04-02 17:44:57 +02:00
|
|
|
skip_missing_interpreters = True
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
passenv = *
|
|
|
|
whitelist_externals = make
|
|
|
|
commands =
|
2022-08-16 09:47:54 +02:00
|
|
|
make pytest
|
2022-04-02 17:44:57 +02:00
|
|
|
"""
|