generated from microsoft/python-package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
128 lines (112 loc) · 2.8 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[build-system]
requires = ["flit"]
build-backend = "flit.buildapi"
[project]
name = "tabular-tf"
authors = [
{name = "Mathias Claassen", email = "[email protected]"},
]
description = "TF Tabular simplifies the experimentation and preprocessing of tabular datsets for TensorFlow models."
readme = "README.md"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11"
]
requires-python = ">=3.10"
dynamic = ["version"]
dependencies = [
'numpy >= 1.26',
'pandas >= 2.2.1',
'tensorflow <= 2.15.1',
]
[project.optional-dependencies]
test = [
"ruff>=0.2.0",
"mypy==1.11.2",
"pre-commit==3.8.0",
"pytest-cov==5.0.0",
"pytest-mock<3.14.1",
"pytest-runner",
"pytest==8.3.3",
"pytest-github-actions-annotate-failures",
]
examples = [
'jupyter',
'tensorflow_datasets >= 4.9.4',
'tensorflow-recommenders >= 0.7.3',
'matplotlib >= 3.8.4',
]
[project.urls]
Documentation = "https://github.com/mats-claassen/tf-tabular/tree/main#readme"
Source = "https://github.com/mats-claassen/tf-tabular"
Tracker = "https://github.com/mats-claassen/tf-tabular/issues"
[tool.flit.module]
name = "tf_tabular"
[tool.coverage.run]
branch = true
[tool.coverage.report]
fail_under = 100
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"build",
"dist",
]
# Same as Black.
line-length = 120
indent-width = 4
# Assume Python 3.10
target-version = "py310"
[tool.ruff.lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
select = ["E4", "E7", "E9", "F"]
ignore = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
ignore-init-module-imports = true
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
exclude = ["*.ipynb"]
[tool.pytest.ini_options]
addopts = "--cov-report html:coverage.html --cov src --cov-fail-under 0 --cov-append -m 'not integration'"
pythonpath = [
"src"
]
testpaths = "tests"
junit_family = "xunit2"
markers = [
"integration: marks as integration test",
"notebooks: marks as notebook test",
"gpu: marks as gpu test",
"spark: marks tests which need Spark",
"slow: marks tests as slow",
"unit: fast offline tests",
]
[tool.mypy]
ignore_missing_imports = true