forked from keras-team/keras
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
110 lines (97 loc) · 2.49 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
107
108
109
[build-system]
requires = ["setuptools >=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "keras"
authors = [
{name = "Keras team", email = "[email protected]"},
]
description = "Multi-backend Keras"
readme = "README.md"
requires-python = ">=3.9"
license = {text = "Apache License 2.0"}
dynamic = ["version"]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
"Operating System :: Unix",
"Operating System :: MacOS",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Topic :: Software Development",
]
dependencies = [
"absl-py",
"numpy",
"rich",
"namex",
"h5py",
"optree",
"ml-dtypes",
"packaging",
"scikit-learn",
]
# Run also: pip install -r requirements.txt
[project.urls]
Home = "https://keras.io/"
Repository = "https://github.com/keras-team/keras"
[tool.setuptools.dynamic]
version = {attr = "keras.src.version.__version__"}
[tool.setuptools.packages.find]
include = ["keras", "keras.*"]
[tool.ruff]
line-length = 80
[tool.ruff.lint]
select = [
"E", # pycodestyle error
"F", # Pyflakes
"I", # isort
]
ignore = [
"E722", # do not use bare 'except'
"E741", # ambiguous variable name
"E731", # do not assign a `lambda` expression, use a `def`
]
[tool.ruff.lint.per-file-ignores]
"**/__init__.py" = ["E501", "F401"] # lines too long; imported but unused
"**/random.py" = ["F401"] # imported but unused
"examples/*" = ["I", "E"]
"guides/*" = ["I", "E", "F"]
[tool.ruff.lint.isort]
force-single-line = true
known-first-party = ["keras"]
[tool.pytest.ini_options]
filterwarnings = [
"error",
"ignore::DeprecationWarning",
"ignore::ImportWarning",
"ignore::RuntimeWarning",
"ignore::PendingDeprecationWarning",
"ignore::FutureWarning",
"ignore::UserWarning",
# Ignore a spurious warning on tf-nightly related to save model changes.
"ignore:Custom mask layers require a config",
]
addopts = "-vv"
# Do not run tests in the `build` folders
norecursedirs = ["build"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"@abstract",
"raise NotImplementedError",
]
omit = [
"*/*_test.py",
"keras/src/legacy/*",
]
[tool.coverage.run]
branch = true
omit = [
"*/*_test.py",
"keras/src/legacy/*",
]