-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
106 lines (90 loc) · 2.64 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
[build-system]
requires = ["setuptools>=60", "setuptools-scm>=8.0"]
[project]
name = "caikit-compose"
dynamic = ["version"]
description = "Dynamic composition framework for caikit modules"
license = {text = "Apache-2.0"}
readme = "README.md"
requires-python = ">=3.11"
classifiers=[
"License :: OSI Approved :: Apache Software License"
]
dependencies = [
"caikit>=0.25,<0.26",
]
[project.optional-dependencies]
## Runtime Extra Sets ##
dev-test = [
"pytest-cov>=2.10.1,<5.0",
"pytest-html>=3.1.1,<5.0",
"pytest>=6.2.5,<8.0",
"wheel>=0.38.4",
]
dev-fmt = [
"ruff==0.8.6",
"pre-commit>=3.0.4,<4.0",
"pydeps>=1.12.12,<4",
]
# NOTE: This is "all" from the user and dev perspective
all-dev = [
"caikit-compose[dev-test, dev-fmt]"
]
[tool.setuptools.packages.find]
where = [""]
include = ["caikit_compose"]
[tool.setuptools_scm]
write_to = "caikit_compose/_version.py"
# [project.urls]
# Source = "https://github.com/caikit/caikit"
[tool.ruff]
line-length = 100
target-version = "py38"
exclude = []
[tool.ruff.lint]
select = [ "E", "F", "UP", "B", "SIM", "I"]
ignore = [
"UP032", # f-string
"UP034", # extraneous-parentheses
# "UP035", # deprecated-import
## original errors fromt pylint
"F403", # unable to detect undefined names
"I001", # import block unsorted/unformatted
"E402", # module level import not at top of file
# "B028", # warnings: no explicit stacklevel keyword argument found
# "I0001", # raw-checker-failed
# "I0010", # bad-inline-option
# "I0011", # locally-disabled
# "I0013", # file-ignored
# "I0020", # suppressed-message
# "I0021", # useless-suppression
# "I0022", # deprecated-pragma
## added messages in caikit
# "I0023", # use-symbolic-message-instead
# "C0103", # invalid-name
# "C0115", # missing-class-docstring
# "C0114", # missing-module-docstring
# "C0116", # missing-function-docstring
# "C0209", # consider-using-f-string
# "R1710", # inconsistent-return-statements
# "E1101", # no-member
# "R0913", # too-many-arguments
# "R0914", # too-many-locals
# "R0912", # too-many-branches
# "R0915", # too-many-statements
# "R0401", # cyclic-import
# "R0903", # too-few-public-methods
# "W0212", # protected-access
# "W0511", # fixme
# "W1202", # logging-format-interpolation
# "E1205", # logging-too-many-args
# "W0201", # attribute-defined-outside-init
# "W0223", # abstract-method
# "W0104", # pointless-statement
# "C0411", # wrong-import-order
]
[tool.ruff.per-file-ignores]
"__init__.py" = [
"F401", # imported but unused
"F403" # unable to detect undefined names
]