-
Notifications
You must be signed in to change notification settings - Fork 11
/
pyproject.toml
127 lines (112 loc) · 3.06 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
[tool.poetry]
name = "gn2pg_client"
packages = [{ include = "gn2pg" }]
version = "1.6.9"
description = "Import tool from GeoNature to a PostgreSQL database through Export module API (client side)"
authors = ["lpofredc <[email protected]>"]
maintainers = ["lpofredc <[email protected]>"]
license = "AGPL-3.0-or-later"
readme = "README.md"
homepage = "https://github.com/lpoaura/gn2gn_client/"
keywords = ["GeoNature", "Export", "SINP", "opendata", "biodiversity"]
classifiers = [
"Development Status :: 1 - Planning",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Natural Language :: French",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Documentation",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Installation/Setup",
"Topic :: System :: Software Distribution",
]
[tool.poetry.scripts]
gn2pg_cli = "gn2pg.main:run"
[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
requests = "^2"
psycopg2-binary = "^2"
coloredlogs = ">=0.0.0"
schema = "^0"
toml = "^0"
sqlalchemy = "^1"
flask = { version = "^2", optional = true }
flask-sqlalchemy = { version = "^3", optional = true }
flask-admin = { version = "^1", optional = true }
gunicorn = { version = ">=0.0.0", optional = true }
python-decouple = "^3.8"
python-dotenv = { version = "^1", optional = true }
[tool.poetry.extras]
dashboard = [
'flask',
'flask-sqlalchemy',
'flask-admin',
'gunicorn',
'python-decouple',
'python-dotenv',
]
[tool.poetry.group.dev.dependencies]
flake8 = "^7.0.0"
coverage = "^7.4.4"
pylint = "^3.1.0"
mypy = "^1.9.0"
tox = "^4.14.2"
isort = "^5.13.2"
pre-commit = "^3.5"
black = "^24.3.0"
click = "^8.1.7"
types-setuptools = "^69.2.0.20240317"
no-implicit-optional = "^1.3"
types-toml = "^0.10.8.20240310"
types-requests = "^2.31.0.20240406"
[tool.poetry.group.docs.dependencies]
sphinx = ">=6,<8"
sphinx-rtd-theme = "^1.2.0"
sphinxcontrib-napoleon = "^0.7"
myst-parser = "^2.0.0"
[tool.poetry.group.test.dependencies]
sqlalchemy-utils = "^0.39.0"
pytest = "^7.2.1"
[tool.isort]
include_trailing_comma = true
line_length = 99
multi_line_output = 3
profile = "black"
[tool.black]
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
| foo.py # also separately exclude a file named foo.py in
# the root of the project
)
'''
include = '\.pyi?$'
line-length = 99
target-version = ['py37']
[tool.pylint.'MESSAGES CONTROL']
max-line-length = 99
disable = """
too-many-arguments,
too-many-instance-attributes,
too-few-public-methods
"""
good-names=["i","j" ,"k","ex","Run","_","db"]
[tool.mypy]
ignore_missing_imports = true
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"