-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
121 lines (109 loc) · 2.81 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
[build-system]
requires = ["setuptools", "setuptools_scm", "setuptools-git-versioning"]
build-backend = "setuptools.build_meta"
[project]
name = "natural-language-geocoding"
description = "Natural Language Geocoding implements an AI technique to convert natural language descriptions of spatial areas into polygons."
readme = "README.md"
requires-python = ">=3.12"
license = { file = "LICENSE" }
dependencies = [
"requests>=2.32.3",
"e84-geoai-common>=0.0.4"
]
dynamic = ["version"]
[tool.setuptools-git-versioning]
enabled = true
dev_template = "{tag}"
dirty_template = "{tag}"
[project.urls]
Github = "https://github.com/Element84/natural-language-geocoding"
[project.scripts]
natural-language-geocoding = "natural_language_geocoding.main:main"
[tool.pytest.ini_options]
pythonpath = "src"
testpaths = ["tests"]
[project.optional-dependencies]
demo = [
"streamlit>=1.38.0",
"streamlit-folium>=0.22.1",
"watchdog>=6.0.0"
]
dev = [
"pytest>=8.3.3",
"ipykernel>=6.29.5",
"ruff>=0.6.8",
"pyright>=1.1.381",
"build>=1.2.2",
"pre-commit>=3.8.0",
"pre-commit-hooks>=4.6.0",
]
[tool.pyright]
pythonVersion = "3.12"
include = ["src/", "tests/"]
ignore = ["**/venv/**", "*.pyc", "build/"]
typeCheckingMode = "strict"
reportGeneralTypeIssues = true
reportImplicitStringConcatenation = "none"
reportPropertyTypeMismatch = "error"
reportShadowedImports = "error"
reportTypedDictNotRequiredAccess = "none"
reportUninitializedInstanceVariable = "error"
reportUnknownArgumentType = "error"
reportUnknownMemberType = "error"
reportUnknownVariableType = "error"
reportUnnecessaryComparison = "error"
reportIncompatibleVariableOverride = "none"
[tool.ruff]
line-length = 100
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint]
# http://docs.astral.sh/ruff/rules/
select = ['ALL']
ignore = [
# Unnecessary assignment before return statement
'RET504',
# Trailing comma missing
'COM812',
# Missing docstring for module
'D100',
# Docstring in public class
'D101',
# Documentation in public method
'D102',
# Missing docstring in magic method
'D105',
# Missing docstring for init
'D107',
# 1 blank line required before class docstring
'D203',
# Multi-line docstring summary should start at the second line
'D213',
# Allow messages in exception declarations
'TRY002',
'TRY003',
'EM101',
'EM102'
]
[tool.ruff.lint.per-file-ignores]
'__init__.py' = [
# Module level import not at top of cell
'E402',
# Imported but unused
'F401',
]
'tests/**/*' = [
# Use of assert detected
'S101',
# Missing return type annotation for public function
'ANN201',
# Missing docstrings
'D1',
# Private member accessed
'SLF001',
# magic values
'PLR2004',
]