-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
121 lines (109 loc) · 2.47 KB
/
pyproject.toml
File metadata and controls
121 lines (109 loc) · 2.47 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
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
[project]
name = "curlipie"
description = "Library to convert cURL command line to HTTPie"
authors = [{ name = "Nguyễn Hồng Quân", email = "ng.hong.quan@gmail.com" }]
maintainers = [{ name = "Nguyễn Hồng Quân", email = "ng.hong.quan@gmail.com" }]
dynamic = ["version"]
readme = "README.rst"
license = { text = "MPL-2.0" }
requires-python = "<4.0,>=3.11"
dependencies = [
"multidict>=6.1.0",
"yarl>=1.18.3",
"orjson>=3.10.15",
"first>=2.0.2",
"http-constants>=0.5.0",
"logbook>=1.9.2",
"kiss-headers>=2.5.0",
"pydantic>=2.12.5",
"typed-argument-parser>=1.11.0",
"pydantic-settings>=2.12.0",
]
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Environment :: Web Environment",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries :: Python Modules",
]
keywords = ["api", "http", "curl", "httpie", "cli", "conversion"]
[project.urls]
repository = "https://github.com/hongquan/CurliPie.git"
[dependency-groups]
dev = [
"devtools>=0.12.2",
"fastapi>=0.115.8",
"aiofiles>=24.1.0",
"uvicorn>=0.30.1",
"jinja2>=3.1.5",
]
lint = [
"ruff>=0.14.10",
]
test = [
"mypy>=1.15.0",
"pytest-mypy>=0.10.3",
"types-first>=2.0.5.20240806",
]
[tool.mypy]
python_version = "3.12"
allow_redefinition = true
plugins = [
"pydantic.mypy",
]
# These options are recommended by Pydantic.
follow_imports = "silent"
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
[[tool.mypy.overrides]]
module = [
"devtools.*",
"logbook.*",
"http_constants.headers.*",
]
ignore_missing_imports = true
[tool.pydantic-mypy]
init_typed = true
init_forbid_extra = true
warn_required_dynamic_aliases = true
[tool.pytest.ini_options]
minversion = "8.0"
addopts = "--mypy"
testpaths = ["tests", "curlipie"]
[tool.ruff]
line-length = 120
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
target-version = "py312"
[tool.ruff.lint]
# Enable Pyflakes `E` and `F` codes by default.
select = ["E", "F"]
ignore = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
quote-style = "single"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"