-
Notifications
You must be signed in to change notification settings - Fork 11
/
pyproject.toml
148 lines (129 loc) · 3.58 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
[tool.poetry]
name = "django-flatpickr"
version = "0.0.0"
description = """\
Flatpickr based DatePickerInput, TimePickerInput and \
DateTimePickerInput with date-range-picker functionality \
for django >= 2.0\
"""
authors = ["Munim Munna <[email protected]>"]
repository = "https://github.com/monim67/django-flatpickr"
license = "MIT"
readme = "README.rst"
packages = [{ include = "django_flatpickr", from = "src" }]
keywords = [
"django",
"flatpickr",
"date-picker",
"time-picker",
"datetime-picker",
"date-range-picker",
]
classifiers = [
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities",
"Environment :: Web Environment",
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
"Framework :: Django",
"Framework :: Django :: 2.0",
"Framework :: Django :: 3.0",
"Framework :: Django :: 4.0",
"Framework :: Django :: 5.0",
]
[tool.poetry.dependencies]
python = "^3.8"
Django = ">=2,<6"
pydantic = ">=1,<3"
pydantic-settings = "*"
typing-extensions = "*"
[tool.poetry.group.build.dependencies]
pytest-django = "^4.5.2"
pytest-dotenv = "^0.5.2"
black = "^22.6.0"
isort = "^5.10.1"
pydocstyle = {extras = ["toml"], version = "^6.1.1"}
mypy = "^1.0.1"
django-stubs = "^1.12.0"
coverage = { extras = ["toml"], version = "^6.5.0" }
pylint = "^2.12.0"
rstcheck = "^6.1.0"
pywebcopy = "^7.0.2"
poethepoet = "^0.15.0"
django-crispy-forms = "^1.14.0"
crispy-bulma = "^0.8.0"
django-filter = "^22.1"
[tool.poetry.group.dev.dependencies]
tox = "^3.24.5"
pre-commit = "^2.20.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry_bumpversion.file."src/django_flatpickr/__init__.py"]
[tool.pylint.master]
disable = ["R", "C", "missing-docstring", "unused-argument"]
[tool.pylint.format]
max-line-length = 88
[tool.isort]
py_version = "38"
profile = "black"
[tool.pydocstyle]
convention = "google"
add_select = "D401,D404"
[tool.mypy]
python_version = "3.8"
namespace_packages = true
strict = true
plugins = ["mypy_django_plugin.main"]
[[tool.mypy.overrides]]
module = ["pywebcopy.*", "django_filters.*", "importlib_metadata.*"]
ignore_missing_imports = true
[tool.django-stubs]
django_settings_module = "dev.mysite.settings"
[tool.pytest.ini_options]
pythonpath = "." # pytest-django needs it to find dev module
django_find_project = false
DJANGO_SETTINGS_MODULE = "dev.mysite.settings"
addopts = "--reuse-db"
testpaths = ["tests"]
env_files = [".env", ".env.defaults"]
[tool.coverage.run]
command_line = "-m pytest"
source = ["django_flatpickr"]
parallel = true
[tool.coverage.paths]
source = [
"src/django_flatpickr",
"**/site-packages/django_flatpickr",
]
[tool.tox]
legacy_tox_ini = """
[tox]
isolated_build = True
envlist = py{311,310,39,38}
[testenv]
allowlist_externals = poetry
skip_install = true
commands =
poetry install --no-root --only build
pip install -c tests/pip-constraints.txt .
pytest
"""
[tool.poe]
envfile = [".env.defaults", ".env"]
[tool.poe.tasks]
start = { cmd = "python dev/manage.py runserver localhost:8000", help = "Start dev server (press F5 on vscode)" }
lint = [
{ cmd = "python -m black --check src tests dev" },
{ cmd = "python -m isort --check-only src tests dev" },
{ cmd = "mypy src tests dev" },
{ cmd = "pydocstyle src" },
{ cmd = "rstcheck --report-level warning README.rst" },
]
test-cov = [
{ cmd = "coverage run" },
{ cmd = "coverage combine" },
{ cmd = "coverage lcov -o coverage/lcov.info" },
{ cmd = "coverage report" },
]