-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
119 lines (100 loc) · 2.53 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
113
114
115
116
117
118
119
[tool.poetry]
name = "pyoak"
version = "2.1.0"
homepage = "https://github.com/mishamsk/pyoak"
description = "Library for building and working with arbitrary ASTs on top dataclasses"
authors = ["Mike Perlov <[email protected]>"]
license = "MIT"
readme = "README.md"
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
]
packages = [{ include = "pyoak", from = "src" }]
[tool.poetry.dependencies]
python = ">=3.10"
rich = ">=12.5.0, <14"
mashumaro = ">=3.8.1"
lark = "^1.1.5"
pyyaml = "^6.0.0"
orjson = "^3.8.7"
msgpack = "^1.0.4"
chardet = "^5.0.0"
[tool.poetry.group.dev.dependencies]
bump2version = "^1.0.1"
tox = "^4.11.1"
tox-gh = "^1.3.1"
[tool.poetry.group.pre.dependencies]
ruff = ">=0.0.280,<0.0.287"
black = "^23.7.0"
pre-commit = "^3.3.3"
[tool.poetry.group.mypy.dependencies]
mypy = "^1.5.1"
types-pyyaml = "^6.0.12.11"
[tool.poetry.group.test.dependencies]
pytest = "^7.4.0"
pytest-cov = "^4.1.0"
deepdiff = "^6.3.1"
[tool.poetry.group.publish]
optional = true
[tool.poetry.group.publish.dependencies]
twine = "^4.0.2"
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "--basetemp=testtemp"
[tool.black]
line-length = 100
[tool.ruff]
line-length = 100
target-version = "py39"
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # bugbear
"PERF",
"PLC",
"PLE",
"RUF",
]
ignore = [
"E501", # line too long, handled by black
# "RUF012", # happens in 3rd party libs mostly
]
# Avoid trying to fix flake8-bugbear (`B`) violations.
unfixable = ["B"]
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]
"tests/*" = ["B", "PERF401"]
[tool.ruff.mccabe]
max-complexity = 18
[tool.ruff.pydocstyle]
convention = "google"
[tool.mypy]
ignore_missing_imports = true
show_column_numbers = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_unused_configs = true
follow_imports = "normal"
[[tool.mypy.overrides]]
module = ["pyoak.*"]
disallow_any_generics = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
no_implicit_optional = true
warn_return_any = true
no_implicit_reexport = true
strict_equality = true
strict_concatenate = true
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"