-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
157 lines (139 loc) · 3.23 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
[tool.poetry]
package-mode = true
name = "junglescout-client"
packages = [
{ include = "junglescout", from = "src" },
]
version = "0.4.1"
license = "MIT"
authors = ["Jungle Scout <[email protected]>"]
description = "Jungle Scout API Client"
readme = "README.md"
repository = "https://github.com/Junglescout/jungle-scout-python-client"
[tool.poetry.dependencies]
python = "^3.9"
pydantic = "^2.6.3"
python-dateutil = "^2.8.2"
httpx = "^0.27.2"
[tool.poetry.group.dev.dependencies]
pytest = "^8.0.2"
pytest-sugar = "^1.0.0"
black = "24.3.0"
isort = "5.13.2"
ipython = {version = "^8.22.2", python = ">=3.10,<4.0"}
pytest-dotenv = "^0.5.2"
pyright = "^1.1.352"
ruff = "^0.3.0"
factory-boy = "^3.3.0"
sphinx = "^7.2.6"
sphinx-autodoc-typehints = "^2.0.0"
sphinx-rtd-theme = "^2.0.0"
python-semantic-release = "^9.1.1"
autodoc-pydantic = "^2.1.0"
respx = "^0.21.1"
pytest-asyncio = "^0.24.0"
sphinx-autobuild = "^2024.10.3"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
target-version = ['py39']
[tool.isort]
profile = "black"
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
env_files = [".env", ".env.test"]
markers = [
"integration: mark a test as an integration test",
]
[tool.ruff]
line-length = 120
target-version = "py39"
[tool.ruff.lint]
preview = true
select = [
"A",
"ARG",
"B",
"C4",
"D",
"DTZ",
"E",
"EM",
"ERA",
"F",
"FLY",
"FURB",
"INP",
"ISC",
"LOG",
"N",
"PERF",
"PIE",
"PL",
"PT",
"PYI",
"Q",
"RET",
"RUF",
"S",
"SIM",
"T10",
"T20",
"TD004",
"TD005",
"TD006",
"TD007",
"TRY",
"W",
]
ignore = [
"D203",
"D213",
"D100",
"S101",
"PLR0913",
"PLR0917",
"RET503", # TODO: reenable this check once we figure out a better way to manage exceptions
"TRY003", # TODO: reenable this check once we figure out a better way to manage exceptions
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"__init_.py" = ["E402", "F401"]
"tests/*.py" = ["D"]
"docs/*.py" = ["D"]
"src/junglescout/models/requests/*.py" = ["D101", "D102"]
[tool.semantic_release]
major_on_zero = false
build_command = "poetry build"
version_variables = [
"src/junglescout/__init__.py:__version__",
"docs/conf.py:release",
]
version_toml = [
"pyproject.toml:tool.poetry.version"
]
[tool.semantic_release.branches.main]
match = "main"
prerelease = false
[tool.semantic_release.commit_parser_options]
allowed_tags = ["build", "chore", "ci", "docs", "feat", "fix", "perf", "style", "refactor", "test"]
minor_tags = ["feat"]
patch_tags = ["fix", "perf"]
[tool.semantic_release.remote]
name = "origin"
type = "github"
[tool.semantic_release.remote.token]
env = "GH_TOKEN"
[tool.semantic_release.publish]
dist_glob_patterns = ["dist/*"]
upload_to_vcs_release = true
[tool.poetry.urls]
Homepage = "https://developer.junglescout.com/api"
Documentation = "https://python-client.junglescout.com"
"Postman Collection" = "https://postman.junglescout.com/"
Repository = "https://github.com/Junglescout/junglescout-python-client.git"
Issues = "https://github.com/Junglescout/junglescout-python-client/issues"