-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathpyproject.toml
More file actions
141 lines (123 loc) · 3.48 KB
/
Copy pathpyproject.toml
File metadata and controls
141 lines (123 loc) · 3.48 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
[tool.poetry]
name = "goodmap"
version = "1.8.2"
description = "Map engine to serve all the people :)"
authors = ["Krzysztof Kolodzinski <krzysztof.kolodzinski@problematy.pl>"]
readme = "README.md"
exclude = ["goodmap/locale/*/LC_MESSAGES/*.po"]
[tool.poetry.dependencies]
python = "^3.10"
spectree = "^2.0.1"
Flask-Babel = "^4.0.0"
Babel = "^2.10.3"
gunicorn = ">=20.1,<26.0"
google-cloud-storage = "^2.7.0"
PyYAML = "^6.0"
humanize = "^4.6.0"
Flask-WTF = "^1.2.1"
gql = "^3.4.0"
aiohttp = "^3.8.4"
pydantic = "^2.12.0"
platzky = "2.0.0a3"
deprecation = "^2.1.0"
numpy = "^2.2.0"
# Using fork because official PyPI version (0.7.7) has outdated numpy setup hack
# that breaks with numpy >= 2.0. Fork simply removes the obsolete hack.
pysupercluster-problematy = "^0.7.8"
scipy = "^1.15.1"
sphinx = {version = "^8.0.0", optional = true}
sphinx-rtd-theme = {version = "^3.0.0", optional = true}
myst-parser = {version = "^4.0.0", optional = true}
[tool.poetry.extras]
docs = [
"sphinx",
"sphinx-rtd-theme",
"myst-parser"
]
[tool.poetry.group.dev.dependencies]
pytest = "^7.1.2"
coverage = ">=6.4.3,<8.0.0"
coveralls = ">=3.3.1,<5.0.0"
pyright = "^1.1.291"
freezegun = "^1.2.2"
black = ">=24.8,<27.0"
ruff = ">=0.4.4,<0.16.0"
platzky-redirections = "^0.1.0"
python-semantic-release = "^10.4.1"
interrogate = "^1.7.0"
[build-system]
requires = ["poetry-core>=1.0.0", "numpy"]
build-backend = "poetry.core.masonry.api"
[tool.pyright]
pythonVersion = "3.10"
pythonPlatform = "All"
typeCheckingMode = "strict"
reportMissingImports = true
reportMissingTypeStubs = false
reportMissingParameterType = false
reportUnknownArgumentType = false
reportUnknownMemberType = false
reportUnknownVariableType = false
reportUnknownParameterType = false
reportUnusedFunction = false
reportUnnecessaryTypeIgnoreComment = true
reportUntypedClassDecorator = false
reportUntypedFunctionDecorator = false
reportUnusedClass = false
reportUntypedBaseClass = false
[tool.black]
line-length = 100
target-version = ["py310"]
[tool.ruff]
line-length = 100
target-version = "py310"
show-fixes = true
# TODO unify linting across whole python code
lint.select = [
# "D", # pydocstyle
"I", # isort
"F", # Pyflakes
"E", # pycodestyle Error
"W", # pycodestyle Warning
"RUF", # Ruff-specific rules
]
# TODO unify linting across whole python code
# [tool.ruff.lint.pydocstyle]
# convention = "google"
[tool.pytest.ini_options]
markers = [
"skip_coverage: skip coverage for this test"
]
[tool.semantic_release]
version_toml = ["pyproject.toml:tool.poetry.version"]
build_command = "poetry build"
dist_path = "dist/"
upload_to_release = true
remove_dist = false
commit_author = "semantic-release <semantic-release>"
commit_message = "chore(release): {version} [skip ci]"
tag_format = "{version}"
[tool.semantic_release.changelog]
exclude_commit_patterns = []
[tool.semantic_release.changelog.default_templates]
changelog_file = "CHANGELOG.md"
output_format = "md"
mask_initial_release = true
[tool.semantic_release.branches.main]
match = "main"
prerelease = false
[tool.semantic_release.commit_parser_options]
allowed_tags = ["feat", "fix", "docs", "style", "refactor", "perf", "test", "build", "ci", "chore", "revert"]
minor_tags = ["feat"]
patch_tags = ["fix", "perf"]
[tool.semantic_release.publish]
dist_glob_patterns = ["dist/*"]
upload_to_vcs_release = true
[tool.interrogate]
fail-under = 95
ignore-init-method = true
ignore-init-module = true
ignore-magic = true
ignore-private = true
ignore-semiprivate = false
exclude = ["tests", "docs"]