-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathpyproject.toml
167 lines (149 loc) · 4.51 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
[tool.poetry]
name = "pyinaturalist"
version = "0.20.1"
description = "iNaturalist API client for python"
authors = ["Jordan Cook"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/pyinat/pyinaturalist"
repository = "https://github.com/pyinat/pyinaturalist"
documentation = "https://pyinaturalist.readthedocs.io"
keywords = [
"inaturalist",
"biodiversity",
"conservation",
"citizen-science",
"community-science",
"api",
"api-client",
"data-model",
"requests",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
include = [
{ path = "*.md" },
{ path = "*.yml" },
{ path = "docs", format = "sdist" },
{ path = "examples", format = "sdist" },
{ path = "test", format = "sdist" }
]
packages = [
{ include = "pyinaturalist" },
{ include = "pyinat" },
]
[tool.poetry.dependencies]
python = "^3.8"
attrs = ">=21.2"
keyring = ">=22.3"
platformdirs = ">=2.6"
python-dateutil = ">=2.0"
requests = ">=2.25"
requests-cache = ">=1.2"
requests-ratelimiter = ">=0.5.1"
rich = ">=10.9"
# Optional dependencies
filelock = {optional=true, version=">2.0"}
ujson = {optional=true, version=">5.0"}
# Documentation dependencies needed for Readthedocs builds
furo = {optional=true, version="^2024.8"}
ipython = {optional=true, version="^8.12"}
linkify-it-py = {optional=true, version="^2.0"}
matplotlib = {optional=true, version=">=3.7"}
myst-parser = {optional=true, version=">=1.0"}
nbsphinx = {optional=true, version="^0.9"}
pillow = {optional=true, version=">=10.1"}
sphinx = {optional=true, version="^6.2"}
sphinx-automodapi = {optional=true, version="^0.18"}
sphinx-autodoc-typehints = {optional=true, version="1.20"}
sphinx-copybutton = {optional=true, version=">=0.5"}
sphinx-design = {optional=true, version=">=0.5"}
sphinxcontrib-apidoc = {optional=true, version="^0.5"}
sphinxext-opengraph = {optional=true, version=">=0.9"}
setuptools = "^72.2.0"
[tool.poetry.dev-dependencies]
coverage = ">=7.2"
nox = "^2024.4"
nox-poetry = "^1.0.0"
pre-commit = "^3.5"
pretty-errors = ">=1.2"
pytest = "^8.2"
pytest-asyncio = ">=0.21"
pytest-cov = ">=3.0"
pytest-xdist = ">=2.2"
requests-mock = "^1.8"
sphinx-autobuild = ">=2021.3"
[tool.poetry.extras]
all = ["filelock", "ujson"]
docs = [
"furo",
"ipython",
"linkify-it-py",
"matplotlib",
"myst-parser",
"nbsphinx",
"pillow",
"sphinx",
"sphinx-automodapi",
"sphinx-autodoc-typehints",
"sphinx-copybutton",
"sphinx-design",
"sphinxcontrib-apidoc",
"sphinxext-opengraph",
]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
skip-string-normalization = true
line-length = 100
[tool.coverage.html]
directory = 'test-reports'
[tool.coverage.run]
branch = true
source = ['pyinaturalist', 'pyinat']
omit = ['pyinaturalist/docs/model_docs.py']
[tool.coverage.report]
exclude_lines = [
'pragma: no cover',
'if TYPE_CHECKING:',
]
[tool.isort]
profile = 'black'
line_length = 100
skip_gitignore = true
known_first_party = ['test']
[tool.mypy]
ignore_missing_imports = true
pretty = true
show_column_numbers = true
show_error_codes = true
warn_redundant_casts = true
warn_unused_ignores = true
files = ['pyinaturalist']
[tool.pytest.ini_options]
markers = [
"enable_client_session: Enable all ClientSession features: caching, rate-limiting, etc.",
]
[tool.ruff]
fix = true
unsafe-fixes = true
line-length = 100
output-format = 'grouped'
target-version = 'py37'
exclude = ['examples/', 'test/sample_data/']
[tool.ruff.format]
quote-style = 'single'
[tool.ruff.lint]
select = ['B', 'C4', 'C90', 'E', 'F']
[tool.ruff.lint.isort]
known-first-party = ['test']
# Wrap lines to 100 chars, but don't error on unwrappable lines until 120 chars
[tool.ruff.lint.pycodestyle]
max-line-length = 120