-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
57 lines (45 loc) · 1.21 KB
/
pyproject.toml
File metadata and controls
57 lines (45 loc) · 1.21 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
[tool.poetry]
name = "api-client-template"
version = "0.1.0"
description = ""
authors = ["Aristide <aristide.bamazi@imsp-uac.org>"]
license = "mit"
readme = "README.md"
packages = [{include = "src"}]
# [tool.poetry.scripts]
# lint = "ruff check src"
# format = "black --check src"
# provide npm interface to run script with poetry
# poetry task lint
[tool.taskipy.tasks]
lint = { cmd = "sh ./scripts/lint.sh" }
format = { cmd = "sh ./scripts/format.sh"}
[tool.isort]
profile = "black"
known_third_party = ["src"]
# ruff config starting point
[tool.ruff]
# Enable flake8-bugbear (`B`) rules.
select = ["E", "F", "B"]
# Never enforce `E501` (line length violations).
ignore = ["E501"]
# Avoid trying to fix flake8-bugbear (`B`) violations.
unfixable = ["B"]
# Ignore `E402` (import violations) in all `__init__.py` files.
[tool.ruff.per-file-ignores]
"__init__.py" = ["E402"]
[tool.ruff.isort]
known-third-party = ["src"]
[tool.poetry.dependencies]
python = "^3.10"
httpx = "^0.24.0"
python-dotenv = "^1.0.0"
taskipy = "^1.10.4"
[tool.poetry.group.dev.dependencies]
black = "^23.3.0"
ruff = "^0.0.264"
pre-commit = "^3.3.1"
isort = "^5.12.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"