-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
80 lines (70 loc) · 1.86 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
[tool.poetry]
name = "unqdantic"
version = "0.2.0"
description = "A embedded NoSQL database ODM based on UnQLite."
authors = ["CMHopeSunshine <[email protected]>"]
readme = "README.md"
license = "MIT"
repository = "https://github.com/CMHopeSunshine/unqdantic.git"
homepage = "https://github.com/CMHopeSunshine/unqdantic"
[tool.poetry.dependencies]
python = "^3.8"
pydantic = "^1.10.10"
unqlite = "^0.9.6"
[tool.poetry.group.dev.dependencies]
ruff = "^0.1.4"
pre-commit = "^3.1.0"
[tool.poetry.group.test.dependencies]
pytest = "^7.4.0"
[tool.ruff]
select = [
"E",
"W", # pycodestyle
"F", # pyflakes
"UP", # pyupgrade
"I", # isort
"Q", # flake8-quotes
"PTH", # flake8-use-pathlib
"RET", # flake8-return
"RSE", # flake8-raise
"T20", # flake8-print
"PIE", # flake8-pie
"SIM", # flake8-simplify
"ISC", # flake8-implicit-str-concat
"C4", # flake8-comprehensions
"COM", # flake8-commas
"A", # flake8-builtins
"B", # flake8-bugbear
]
ignore = ["E402", "B008", "F403", "F405", "B005"]
line-length = 88
target-version = "py38"
ignore-init-module-imports = true
[tool.ruff.flake8-builtins]
builtins-ignorelist = ["id", "type", "all", "filter", "repr", "open", "range"]
[tool.ruff.isort]
force-sort-within-sections = true
extra-standard-library = ["typing_extensions"]
force-wrap-aliases = true
combine-as-imports = true
order-by-type = false
relative-imports-order = "closest-to-furthest"
section-order = [
"future",
"standard-library",
"first-party",
"local-folder",
"third-party",
]
[tool.ruff.pycodestyle]
ignore-overlong-task-comments = true
max-doc-length = 120
[tool.pyright]
pythonVersion = "3.10"
pythonPlatform = "All"
typeCheckingMode = "basic"
reportShadowedImports = false
disableBytesTypePromotions = true
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"