-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
122 lines (111 loc) · 2.18 KB
/
pyproject.toml
File metadata and controls
122 lines (111 loc) · 2.18 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
122
[tool.poetry]
name = "pyro_compiler"
version = "0.1.0"
description = ""
authors = ["Antony Redman <RumataYounger@gmail.com>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
[tool.poetry.group.dev.dependencies]
ruff = "^0.0.292"
flake8 = "^6.1.0"
pytest = "^7.4.2"
isort = "^5.12.0"
autoflake = "^2.2.1"
black = "^23.9.1"
autopep8 = "^2.0.4"
pytest-snapshot = "^0.9.0"
[tool.autoflake]
remove-all-unused-imports = true
ignore-init-module-imports = true
expand-star-imports = true
remove-duplicate-keys = true
[tool.black]
line-length = 100
target-version = ['py311']
exclude = '''
(
\.eggs
|\.git
|\.hg
|\.mypy_cache
|\.nox
|\.tox
|\.venv
|\.pyc
|\.pyi
|_build
|buck-out
|build
|dist
)
'''
[tool.isort]
line_length = 100
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
multi_line_output = 3
profile = "black"
src_paths = "."
lines_after_imports = 2
skip = "__init__.py"
[tool.ruff]
line-length = 120
target-version = "py39"
ignore = ["E501"]
fix = true
select = [
"F", # pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"UP", # pyupgrade
"C90", # mccabe
"N", # pep8-naming
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"T20", # flake8-print
"Q", # flake8-quotes
]
exclude = [
"eggs",
".git",
".hg",
".mypy_cache",
".nox",
".tox",
".venv",
".pyc",
".pyi",
"_build",
"buck-out",
"build",
"dist",
"migrations",
]
[tool.pytest.ini_options]
pythonpath = [
"."
]
addopts = """
--disable-warnings
"""
markers = [
"slow: slow test",
"tokenizer: tokenizer tests",
"parser: parser tests",
"int_rep: intermediate representation tests",
"gen: assembly generation",
"errors: error reporting framework tests",
"integration: integration of multiple components"
]
python_files = "test_*.py"
test_paths = "test"
junit_duration_report = "total"
[tool.ruff.mccabe]
# Настройка максимальной сложности
max-complexity = 100
[tool.mypy]
explicit_package_bases = true
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"