-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
97 lines (77 loc) · 2.37 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
[build-system]
requires = ["setuptools>=67.8", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "quantizers"
version = "1.1.0"
authors = [{ name = "Chang Sun", email = "[email protected]" }]
description = ""
readme = "README.md"
requires-python = ">=3.10"
license = { text = "GNU Lesser General Public License v3 (LGPLv3)" }
keywords = ["quantization"]
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Development Status :: 5 - Production/Stable",
]
[project.urls]
repository = "https://github.com/calad0i/quantizers"
[tool.setuptools]
packages = ["quantizers"]
include-package-data = true
package-dir = { "" = "src" }
[tool.setuptools_scm]
write_to = "src/quantizers/_version.py"
[project.optional-dependencies]
dependencies = ["numpy"]
grad = ['keras>=3']
test = [
'pytest',
'pytest-cov',
'pytest-xdist',
'pytest-env',
'keras>=3.0',
'cppyy',
'jax',
]
[tool.pytest.ini_options]
filterwarnings = [
"ignore:WARNING\\W Pytorch converter is not enabled!:UserWarning",
"ignore:.\\[93mcover_factor<1.0 will likely to result in overflows:UserWarning",
"ignore:You are saving your model as an HDF5 file:UserWarning",
"ignore:Even though the `tf.config.experimental_run_functions_eagerly`:UserWarning",
"ignore:pkg_resources is deprecated as an API:DeprecationWarning",
"ignore:distutils Version classes are deprecated:DeprecationWarning",
"ignore:module 'sre_constants' is deprecated:DeprecationWarning",
"ignore:Deprecated call to `pkg_resources.declare_namespace:DeprecationWarning",
]
env = [
"KERAS_BACKEND=jax",
"JAX_PLATFORMS=cpu",
"CUDA_VISIBLE_DEVICES=-1",
"CLING_ENABLE_CUDA=0",
]
addopts = "--import-mode=importlib --cov=src/quantizers --cov-report=xml --cov-report=html"
[tool.coverage.run]
omit = ["*/_version.py"]
[tool.coverage.report]
exclude_lines = ['pragma: no cover', 'if TYPE_CHECKING:']
[tool.ruff]
include = ["src/**/*.py"]
line-length = 130
indent-width = 4
target-version = "py310"
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
skip-magic-trailing-comma = false
docstring-code-format = true
docstring-code-line-length = 130
[tool.ruff.lint]
select = ["E", "W", "F", "I", "F401"]
ignore = ["E501", "F403", "F405"]
explicit-preview-rules = true
fixable = ["ALL"]
unfixable = []