-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
126 lines (104 loc) · 3.5 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
[tool.poetry]
name = "xnbtd"
version = "1.0.9"
description = "xNBTD est une application de gestion pour entreprise de livraison. Elle facilite la gestion des tournées et des plannings."
authors = [
"André Théo LAURET <[email protected]>",
]
maintainers = [
"André Théo LAURET <[email protected]>",
]
homepage = "https://github.com/eldertek/xnbtd"
license = "GPL-3.0-or-later"
readme = 'README.md'
packages = [{ include = "xnbtd" }]
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/eldertek/xnbtd/issues"
[tool.poetry.dependencies]
python = ">=3.9,<4.0.0" # Stay with 3.9 until YunoHost used >=Debian 11 (Bullseye)
pip = "^23.1.2"
[tool.poetry.dev-dependencies]
django_yunohost_integration = "*" # https://github.com/YunoHost-Apps/django_yunohost_integration
bx_py_utils = "*" # https://github.com/boxine/bx_py_utils
django-tools = "*" # https://github.com/jedie/django-tools/
tox = "*"
darker = "*" # https://github.com/akaihola/pytest-darker
coveralls = "*"
isort = "*"
flake8 = "*"
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/packaging
poetry-publish = '*' # https://github.com/jedie/poetry-publish
beautifulsoup4 = "*" # https://pypi.org/project/beautifulsoup4/
mypy = "*" # https://github.com/python/mypy
[tool.poetry.scripts]
publish = "xnbtd.publish:publish"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.darker]
src = ['.']
revision = "origin/main..."
line_length = 100
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'
skip_glob=['.*', '*/htmlcov/*','*/migrations/*','*/local_test/*']
known_first_party=['xnbtd']
line_length=100
lines_after_imports=2
[tool.coverage.run]
omit = ['.*', '*/tests/*']
[tool.tox]
# https://tox.readthedocs.io/en/latest/example/basic.html#pyproject-toml-tox-legacy-ini
legacy_tox_ini = """
[tox]
isolated_build = True
envlist = py{39,310}
skip_missing_interpreters = True
[testenv]
passenv = *
whitelist_externals = make
commands =
make test
"""
[tool.mypy]
warn_unused_configs = true
ignore_missing_imports = true
allow_redefinition = true # https://github.com/python/mypy/issues/7165
show_error_codes = true
check_untyped_defs = true
plugins = []
exclude = ['.venv', 'tests']
[manageprojects] # https://github.com/jedie/manageprojects
initial_revision = "1a938d2"
initial_date = 2022-11-21T19:40:33+01:00
cookiecutter_template = "https://github.com/jedie/cookiecutter_templates"
cookiecutter_directory = "poetry-python"
applied_migrations = [
"dd69dcf", # 2022-11-22T19:48:28+01:00
]
[manageprojects.cookiecutter_context.cookiecutter]
full_name = "André Théo LAURET"
github_username = "eldertek"
author_email = "[email protected]"
package_name = "xnbtd"
package_version = "0.0.2"
package_description = "xnbtd is an open-source digital signage system for high schools."
package_url = "https://github.com/eldertek/xnbtd"
issues_url = "https://github.com/eldertek/xnbtd/issues"
license = "GPL-3.0-or-later"
_template = "https://github.com/jedie/cookiecutter_templates"