-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathpyproject.toml
More file actions
125 lines (114 loc) · 2.77 KB
/
Copy pathpyproject.toml
File metadata and controls
125 lines (114 loc) · 2.77 KB
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
# SPDX-FileCopyrightText: Kartoza
# SPDX-License-Identifier: AGPL-3.0
#
# Python project configuration for Django BIMS
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "django-bims"
version = "1.0.0"
description = "Biodiversity Information Management System"
readme = "README.md"
license = {text = "AGPL-3.0"}
requires-python = ">=3.12"
authors = [
{name = "Kartoza", email = "info@kartoza.com"},
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django :: 6.0",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: GIS",
]
[project.urls]
Homepage = "https://github.com/kartoza/django-bims"
Documentation = "https://github.com/kartoza/django-bims#readme"
Repository = "https://github.com/kartoza/django-bims.git"
Issues = "https://github.com/kartoza/django-bims/issues"
[tool.black]
line-length = 120
target-version = ['py312']
include = '\.pyi?$'
extend-exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| venv
| _build
| buck-out
| build
| dist
| migrations
| static
| media
| node_modules
)/
'''
[tool.isort]
profile = "black"
line_length = 120
skip = [".venv", "venv", "migrations", "static", "media", "node_modules"]
known_django = ["django"]
known_third_party = ["rest_framework", "celery", "geonode"]
sections = ["FUTURE", "STDLIB", "DJANGO", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "core.settings.test"
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
testpaths = ["bims", "core"]
addopts = [
"--strict-markers",
"-ra",
"-q",
"--tb=short",
]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
]
[tool.coverage.run]
source = ["bims", "core"]
branch = true
omit = [
"*/migrations/*",
"*/tests/*",
"*/__pycache__/*",
"*/admin.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
fail_under = 50
show_missing = true
[tool.bandit]
exclude_dirs = [".venv", "venv", "tests", "migrations"]
skips = ["B101", "B104", "B311"]
[tool.mypy]
python_version = "3.12"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
exclude = [
"migrations",
".venv",
"venv",
]
[[tool.mypy.overrides]]
module = "django.*"
ignore_missing_imports = true