-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
112 lines (107 loc) · 2.36 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
[project]
name = "cidr-listing"
version = "1.0.0"
description = "Asynchrounous API for storing and retrieving lists of IP addresses"
authors = [ { name = "Manuel Sanchez Pinar", email = "[email protected]" } ]
license = "MIT"
requires-python = ">=3.11"
readme = "README.md"
dependencies = [
"argon2-cffi",
"asyncpg",
"litestar[standard]",
"msgspec",
"pydantic",
"pydantic-settings",
"PyJWT",
]
[project.optional-dependencies]
dev = [
"asyncpg-stubs",
"httpx",
"ipython",
"pytest",
"pytest-asyncio",
"pytest-xdist",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.pytest.ini_options]
pythonpath = "src"
asyncio_mode = "auto"
[tool.black]
profile = "black"
line-length = 120
target-version = ['py37'] # 'py38'
include = '\.pyi?$' # ^(?!urls).*\.pyi?$
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| migrations
)/
'''
[tool.ruff]
src = ["src"]
# https://beta.ruff.rs/docs/configuration/#using-pyprojecttoml
target-version = "py310"
line-length = 120
select = [
"A", # flake8-builtins
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"C90", # mccabe
"D", # pydocstyle
"DJ", # flake8-django
"DTZ", # flake8-datetimez
"E", # pycodestyle errors
"ERA", # eradicate
"EXE", # flake8-executable
"F", # pyflakes
"G", # flake8-logging-format
"I", # isort
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"PIE", # flake8-pie
"PLC", # pylint - convention
"PLE", # pylint - error
"PLW", # pylint - warning
"PTH", # flake8-use-pathlib
"Q", # flake8-quotes
"RET", # flake8-return
"RUF", # Ruff-specific rules
"S", # flake8-bandit
"SIM", # flake8-simplify
"T10", # flake8-debugger
"T20", # flake8-print
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"W", # pycodestyle - warning
"YTT", # flake8-2020
]
ignore = [
"E501", # line too long
"D100", # docstring module
"D101", # docstring
"RUF012", # mutable class attributes
"RUF100", # remove unused 'noqa' directives
"A002", # argument "id" shadowing ...
]
[tool.ruff.per-file-ignores]
"tests/**/*.*" = [
"S",
"D",
"T201", # use of print
]