-
Notifications
You must be signed in to change notification settings - Fork 13
/
pyproject.toml
120 lines (106 loc) · 3.66 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
[project]
name = "nycmesh-meshdb"
version = "0.1"
dependencies = [
"celery[redis]==5.3.*",
"django==4.2.*",
# We need djangorestframework features that are coming in 3.15.*
# but that release hasn't shipped yet, so grab the commit that is likely to ship.
# This will likely have a small diff with the final 3.15.* release, but is much better
# then pulling their master branch (which changes constantly)
# FIXME: Go back to PyPI once https://github.com/encode/django-rest-framework/pull/8794 is merged
"djangorestframework@git+https://github.com/encode/django-rest-framework.git@4bbfa8d4556b5847e91ba95f457cc862b7a0f027",
"drf-hooks==0.1.3",
"psycopg2-binary==2.9.*",
"gunicorn==22.0.*",
"python-dotenv==1.0.*",
"stringcase==1.2.*",
"python-dotenv==1.0.*",
"py3-validate-email@git+https://gitea.ksol.io/karolyi/py3-validate-email#[email protected]",
"phonenumbers==8.13.*",
"requests==2.32.*",
"requests-mock==1.12.*",
"geopy==2.4.*",
"django-cors-headers==4.3.*",
"nameparser==1.1.*",
"inflect==7.0.*",
"fastkml[lxml]==1.0a12", # FIXME: Update me to stable, once 1.0 is released officially
"drf-spectacular==0.27.*",
"djangorestframework-dataclasses==1.3.*",
"django-nonrelated-inlines==0.2.*",
"django-filter==24.1",
# FIXME: Go back to PyPI when https://github.com/bhch/django-jsonform/pull/162 is merged
"django-jsonform@git+https://github.com/willnilges/django-jsonform.git@51cbed42ccdaec81a35c97a919d054e2c9ca0207",
"faker==24.3.*",
# FIXME: Go back to PyPI when https://github.com/jazzband/django-dbbackup/pull/515 or https://github.com/jazzband/django-dbbackup/pull/511 is merged
"django-dbbackup@git+https://github.com/willnilges/django-dbbackup.git@62048411ff5beac4beac1578f686824214f1f33a",
"django-storages==1.14.*",
"django-import-export==4.0.*",
"boto3==1.34.*",
"six==1.16.0",
]
[project.optional-dependencies]
dev = [
"invoke == 2.2.*",
"pytest == 7.4.*",
"parameterized == 0.9.*",
"flake8 == 6.1.*",
"black == 23.7.*",
"isort == 5.12.*",
"coverage == 7.3.*",
"mypy == 1.10.0",
"flask == 3.0.*",
"django-cprofile-middleware==1.0.5",
"django-silk==5.1.0",
"types-requests==2.32.*",
"types-six==1.16.0.*",
"django-stubs[compatible-mypy]==5.0.*",
"djangorestframework-stubs[compatible-mypy]==3.15.*",
"django-filter-stubs==0.1.3",
"requests-mock==1.12.*",
"beautifulsoup4==4.12.*"
]
[project.scripts]
meshdb-spreadsheet-import = "meshdb.utils.spreadsheet_import.main:main"
[build-system]
requires = [ "setuptools >= 61", "wheel", "mypy" ]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src"]
[tool.mypy]
plugins = ["mypy_django_plugin.main", "mypy_drf_plugin.main"]
check_untyped_defs = true
show_error_codes = true
pretty = true
ignore_missing_imports = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
warn_unused_configs = true
files = [ "src/" ]
exclude = [
"src/meshapi/tests/.*",
"src/meshapi_hooks/tests/.*",
"src/meshapi/migrations/.*",
"src/meshdb/utils/spreadsheet_import/.*",
"src/meshapi/util/django_pglocks.py",
"src/meshapi/models/util/custom_many_to_many.py",
"src/meshapi/docs.py"
]
[[tool.mypy.overrides]]
module = [
"meshdb.utils.spreadsheet_import.*",
"meshapi.util.django_pglocks",
"meshapi.models.util.custom_many_to_many",
"meshapi.docs",
]
follow_imports = "skip"
[tool.django-stubs]
django_settings_module = "meshdb.settings"
[tool.black]
line-length = 120
include = '\.pyi?$'
[tool.isort]
profile = "black"
line_length = 120
known_first_party = [ "meshdb" ]