forked from Open-Reasoner-Zero/Open-Reasoner-Zero
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
100 lines (91 loc) · 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
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
[build-system]
requires = ["setuptools>=45", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "orz"
version = "0.1.0"
description = "Open-Reasoner-Zero"
authors = [
{name = "Open-Reasoner-Zero team", email = "[email protected]"}
]
license = {text = "MIT"}
readme = "README.md"
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"black==22.8.0",
"joblib",
"tabulate",
"tensorboardX",
"tqdm",
"sentencepiece",
"pytest",
"pytest-cov"
]
[project.optional-dependencies]
dev = [
"pytest>=6.2.5"
]
[tool.setuptools]
packages = ["orz",]
[tool.setuptools.dynamic]
version = {attr = "orz.__version__"}
readme = {file = ["README.md"]}
[tool.pytest.ini_options]
addopts = "-v -s"
testpaths = [
"tests",
]
[tool.isort]
profile = "black"
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
line_length = 120
known_third_party = "wandb"
[tool.black]
line-length = 120
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.flake8]
max-line-length = 120
max-doc-length = 120
extend-ignore = [
# Default ignored errors by flake8
"E121", "E123", "E126", "E226", "E24", "E704",
# F401 module imported but unused
"F401",
# E203 whitespace before ':' (conflict with black)
"E203",
# E231 missing whitespace after ',' (conflict with black)
"E231",
# E501 line too long (conflict with black)
"E501",
# E741 do not use variables named 'l', 'O', or 'I'
"E741",
# W503 line break before binary operator (conflict with black)
"W503",
# W504 line break after binary operator (conflict with black)
"W504",
# W505 doc line too long (conflict with black)
"W505",
# W605 invalid escape sequence 'x' (conflict with latex within docs)
"W605",
]