-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
84 lines (73 loc) · 2.2 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
[build-system]
requires = ["ninja", "scikit-build-core>=0.4.3", "nanobind>=1.3.2"]
build-backend = "scikit_build_core.build"
[project]
name = "tessellate_ipu"
version = "0.1"
description="TessellateIPU library."
readme = "README.md"
authors = [
{ name = "Paul Balanca", email = "[email protected]" },
]
requires-python = ">=3.8"
classifiers = [
"License :: Apache 2.0",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dependencies = [
"chex == 0.1.6",
"jax >= 0.3.16",
"jaxlib >= 0.3.15",
"numpy >= 1.22.4"
]
[project.urls]
Website = "https://github.com/graphcore-research/tessellate-ipu/#readme"
"Source Code" = "https://github.com/graphcore-research/tessellate-ipu/"
"Bug Tracker" = "https://github.com/graphcore-research/tessellate-ipu/issues"
[project.optional-dependencies]
test = ["pytest"]
[tool.scikit-build]
wheel.expand-macos-universal-tags = true
sdist.exclude = [".devcontainer", ".github", ".gradient", "notebooks"]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = ["-ra", "--showlocals", "--strict-config", "-p no:hypothesispytest"]
xfail_strict = true
filterwarnings = [
"error",
"ignore:(ast.Str|Attribute s|ast.NameConstant|ast.Num) is deprecated:DeprecationWarning:_pytest", # Python 3.12
]
testpaths = ["tests"]
markers = ["ipu_hardware"]
[tool.cibuildwheel]
test-command = "pytest {project}/tests"
test-extras = ["test"]
test-skip = ["*universal2:arm64"]
build-verbosity = 1
[tool.black]
line-length = 120
target-version = ['py38', 'py39', 'py310']
[tool.isort]
line_length = 120
known_first_party = "tessellate_ipu"
[tool.mypy]
python_version = "3.8"
plugins = ["numpy.typing.mypy_plugin"]
# Config heavily inspired by Pydantic!
show_error_codes = true
# strict_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_unused_configs = true
check_untyped_defs = true
disallow_any_generics = true
no_implicit_optional = false
# disallow_incomplete_defs = true
# disallow_untyped_decorators = true
# disallow_untyped_calls = true
# # disallow_subclassing_any = true
# # for strict mypy: (this is the tricky one :-))
# disallow_untyped_defs = true