-
Notifications
You must be signed in to change notification settings - Fork 24
/
pyproject.toml
63 lines (57 loc) · 1.2 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
[tool.poetry]
name = "vn-open-api-provinces"
version = "0.4.0"
description = ""
authors = ["Nguyễn Hồng Quân <[email protected]>"]
license = "GPL-3.0-or-later"
[tool.poetry.dependencies]
python = "^3.12"
fastapi = "^0.111.0"
pydantic = "^2.8.2"
Logbook = "^1.7.0.post0"
uvicorn = "^0.30.1"
aiofiles = "^24.1.0"
lunr = "^0.7.0.post1"
Unidecode = "^1.3.8"
single-version = "^1.5.1"
vietnam-provinces = "^0.5.0"
pydantic-settings = "^2.3.4"
[tool.poetry.group.dev.dependencies]
pytest = "^8.3.2"
ruff = "^0.5.1"
[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 = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"