forked from huggingface/optimum
-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
82 lines (69 loc) · 1.95 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
# Copyright 2021 The HuggingFace Team. All rights reserved.
#
# 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.
[tool.ruff]
# Never enforce `E501` (line length violations).
ignore = ["C901", "E501", "E741", "W605"]
select = ["C", "E", "F", "I", "W"]
line-length = 119
# Ignore import violations in all `__init__.py` files.
[tool.ruff.per-file-ignores]
"__init__.py" = ["E402", "F401", "F403", "F811"]
[tool.ruff.isort]
lines-after-imports = 2
known-first-party = ["optimum"]
[tool.pytest.ini_options]
markers = [
"gpu_test",
"tensorflow_test",
"run_in_series",
"run_slow",
"accelerate_test",
"fp16",
"quantization",
]
# FuriosaAI pyproject.toml
[tool.black]
line-length = 100
[tool.isort]
force_sort_within_sections = true
known_first_party = ['furiosa']
line_length = 100
profile = 'black'
[[tool.mypy.overrides]]
module = [
'PIL.*',
'cv2.*',
'onnx.*', # https://github.com/onnx/onnx/pull/3939
'tf2onnx.*',
'torchvision.*', # https://github.com/pytorch/vision/issues/2025
'tqdm.*',
]
ignore_missing_imports = true
[tool.pylint.format]
max-line-length = 100
[tool.pylint.master]
load-plugins = ['pylint_protobuf']
[tool.pylint.message_control]
disable = [
# Warning
'fixme', # W0511
# Convention
'line-too-long', # C0301
'missing-function-docstring', # C0116
'missing-module-docstring', # C0114
# Refactor
'duplicate-code', # R0801
]
[tool.pylint.typecheck]
generated-members =['cv2.*', 'torch.*']