-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
113 lines (102 loc) · 3.23 KB
/
Copy pathpyproject.toml
File metadata and controls
113 lines (102 loc) · 3.23 KB
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
[build-system]
requires = ["setuptools>=77.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "cosy-examples"
version = "0.1.0"
description = "Elaborate examples for the CoSy framework"
readme = "README.md"
requires-python = ">=3.11,<3.13"
license = "Apache-2.0"
authors = [
{name = "CoSy Contributors"}
]
keywords = [
"bayesian-optimization",
"gaussian-process",
"evolutionary-algorithm",
"grammar-based-search",
"cosy"
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Information Analysis",
]
dependencies = [
"networkx==3.5",
"numpy==1.26.4",
"scikit-learn==1.6.1",
"scipy==1.12.0",
"combinatory-synthesizer @ git+https://github.com/tudo-seal/cosy.git",
"grakel==0.1.10",
"torch",
"torchvision",
"pandas",
"matplotlib",
"tqdm",
]
[project.optional-dependencies]
dev = [
"mypy==1.15.0",
"mypy_extensions==1.1.0",
"pydot",
"pytest",
"hypothesis>=6.100",
"pytest-cov>=4.1",
]
test = [
"pytest",
"pytest-cov>=4.1",
"hypothesis>=6.100",
]
[project.urls]
Homepage = "https://github.com/tudo-seal/cosy-examples"
Repository = "https://github.com/tudo-seal/cosy-examples.git"
"Bug Tracker" = "https://github.com/tudo-seal/cosy-examples/issues"
[tool.setuptools.packages.find]
include = ["bayesian_optimization*"]
namespaces = false
[tool.setuptools.package-data]
bayesian_optimization = ["examples/simple_nas/data/*"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["."]
addopts = "-ra --strict-markers"
markers = [
"slow: repeats suggest and observe for several rounds instead of a single call",
"integration: exercises the whole optimization loop instead of a single component",
"property: checks an invariant against inputs generated by hypothesis",
]
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
ignore_missing_imports = true
[tool.ruff]
line-length = 100
[tool.ruff.lint]
# The selection covers syntax errors, import placement, the pyflakes checks and the
# import order. The remaining pycodestyle rules stay out until the examples are
# rewritten, because they flag long lines and ambiguous names that only the rewrite
# can settle.
select = ["E4", "E9", "F", "I"]
ignore = [
# Unused imports and unused local variables are left standing for the rewrite of
# the modules that carry them. Neither rule can be applied in bulk without risk.
# Deleting an unused import can drop a name that another module imports from that
# file, and deleting an unused assignment can drop a call that was made for its
# effect.
"F401",
"F841",
]
[tool.ruff.lint.per-file-ignores]
# The example inserts the repository root into sys.path so that it runs from a plain
# checkout. The imports that follow that insertion are what this rule flags, and the
# one that needs it is the import of the package itself.
"bayesian_optimization/examples/simple_nas/simple_nas.py" = ["E402"]