forked from flagos-ai/FlagScale
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
140 lines (127 loc) · 3.09 KB
/
Copy pathpyproject.toml
File metadata and controls
140 lines (127 loc) · 3.09 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# Copyright 2026 FlagOS Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
[build-system]
requires = [
"setuptools>=77.0",
"wheel>=0.45.1",
]
build-backend = "setuptools.build_meta"
[project]
name = "flagscale"
version = "1.0.0"
description = "FlagScale is a comprehensive toolkit designed to support the entire lifecycle of large models, developed with the backing of the Beijing Academy of Artificial Intelligence (BAAI)."
readme = "README.md"
license = {text = "Apache-2.0"}
requires-python = ">=3.10"
dependencies = ["typer>=0.9.0", "hydra-core"]
dynamic = ["optional-dependencies"]
[project.urls]
Homepage = "https://github.com/flagos-ai/FlagScale.git"
[project.scripts]
flagscale = "flagscale.cli:flagscale"
[tool.setuptools.packages.find]
include = ["flagscale*"]
[tool.setuptools.package-data]
"flagscale" = ["**/*.yaml", "**/*.yml"]
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# isort
"I",
# flake8-bugbear
"B002",
"B003",
"B004",
"B005",
"B009",
"B010",
"B011",
"B012",
"B013",
"B014",
"B015",
"B016",
"B017",
"B018",
"B019",
"B020",
"B021",
"B022",
"B025",
"B029",
"B032",
# flake8-simplify
"SIM101",
"SIM103",
"SIM117",
# flake8-logging-format
"G",
# flake8-type-checking
"TC",
# Ruff-specific rules
"RUF005",
"RUF008",
"RUF009",
"RUF010",
"RUF013",
"RUF015",
"RUF016",
"RUF017",
"RUF018",
"RUF019",
"RUF020",
"RUF024",
"RUF026",
"RUF100",
# flake8-quotes
"Q003",
"Q004",
]
ignore = [
"E402", # Module level import not at top of file
"E501", # Line too long
"E722", # Use bare except, specify exception instead
"E731", # lambda assignment
"E741", # Use variables named 'l', 'O', or 'I'
"F403", "F405", # star imports
"B905", # zip strict
"B007", # unused loop var
"UP032", # f-string format
"G004", # logging f-string
"UP015", # Explicit is better than implicit" rule
]
[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = ["megatron", "vllm"]
known-local-folder = ["flagscale"]
[tool.ruff.format]
docstring-code-format = true
[tool.typos.files]
extend-exclude = ["examples/aquila/tokenizer*"]
[tool.typos.default]
extend-ignore-identifiers-re = [
"NVML.*",
".*thw",
"nd_*",
"\\d+[Bb][-]?[Aa]\\d+(\\.\\d+)?[Bb]", # protect 30BA3B
]
[tool.typos.default.extend-words]
CANN = "CANN"