-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathpyproject.toml
129 lines (115 loc) · 3.63 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
[project]
name = "nycmesh-meshdb"
version = "0.1"
dependencies = [
"celery[redis]==5.3.*",
"django==4.2.*",
# FIXME: Go back to PyPI once DRF adds support for using Django's read-only permissions
# https://github.com/nycmeshnet/meshdb/issues/524
"djangorestframework@git+https://github.com/encode/django-rest-framework.git@4bbfa8d4556b5847e91ba95f457cc862b7a0f027",
"drf-hooks==0.1.3",
"psycopg2-binary==2.9.*",
"gunicorn==22.0.*",
"django-csp==3.*",
"django-permissions-policy==4.22.*",
"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.*",
"inflect==7.0.*",
# FIXME: Update me to stable, once 1.0 is released officially
# https://github.com/nycmeshnet/meshdb/issues/525
"fastkml[lxml]==1.0a12",
"drf-spectacular==0.27.*",
"djangorestframework-dataclasses==1.3.*",
"django-nonrelated-inlines==0.2.*",
"django-filter==24.1",
"django-jsonform==2.23.*",
"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
# https://github.com/nycmeshnet/meshdb/issues/527
"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",
"django-flags==5.0.*",
"django-sql-explorer==5.2.*",
"django-simple-history==3.7.*",
"prettytable==3.11.*",
"matplotlib==3.9.*",
"django-ipware==7.0.1",
"django-admin-site-search==1.1.*",
]
[project.optional-dependencies]
dev = [
"invoke == 2.2.*",
"pytest == 7.4.*",
"parameterized == 0.9.*",
"flake8 == 6.1.*",
"black == 24.10.*",
"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.*",
"freezegun==1.5.1",
"moto[s3]==5.0.*",
]
[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" ]