/
pyproject.toml
95 lines (73 loc) · 2.32 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
[tool.poetry]
name = "elasticai.creator"
version = "0.59.2"
description = "Design, train and compile neural networks optimized specifically for FPGAs."
readme = "README.md"
repository = "https://github.com/es-ude/elastic-ai.creator"
authors = ["Department Embedded Systems - University Duisburg Essen"]
packages = [
{ include = "elasticai/" }
]
exclude = ["elasticai/**/*_test.py", "elasticai/**/test_*.py"]
[tool.poetry.dependencies]
python = "~3.11"
torch = ">=1.11 < 2.0.1" # missing libcurand.so shared object in 2.0.1 (try again with later versions)
numpy = "^1.23.0"
setuptools = "^67.5.1"
mypy = "^1.1.1"
pytest-cov = "^4.1.0"
[tool.poetry.dev-dependencies]
python-language-server = "^0.36.2"
black = ">21.12"
prospector = {extras = ["with_mypy"], version = "^1.7.7"}
pre-commit = "^3.0.0"
wily = "^1.24.0"
import-linter = "^1.7.0"
impulse = "^1.0"
pylint = "^2.16.2"
pytest = "^7.2.2"
setuptools = "^67.5.1"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pylint]
max-line-length = 88
accept-no-raise-doc = "False"
disable="C0115, C0116, C0114" # disable missing docstring messages as they incourage adding noise comments
[tool.black]
preview = true
[tool.pytest.ini_options]
minversion = "6.0"
markers = [
"simulation: possibly slow running integration tests including hw simulation"
]
testpaths = [
"elasticai",
"tests",
]
python_files = ["*_test.py", "test_*.py"]
[tool.coverage.run]
omit = ["elasticai/creator/examples/*py", "elasticai/creator/tests/*py", "elasticai/creator/*Tests/*py", "elasticai/**/__init__.py"]
source = ["elasticai/creator"]
command_line = "-m unittest discover ."
[tool.importlinter]
root_package = "elasticai"
contract_types = [
"package_private_modules: import_contract.PackagePrivateModules"]
[[tool.importlinter.contracts]]
name = "package private"
type = "package_private_modules"
targets = ["elasticai.creator"]
sources = ["elasticai.creator"]
[tool.semantic_release]
version_toml = ["pyproject.toml:tool.poetry.version"]
major_on_zero = false
repository = "pypi"
upload_to_release = true
build_command = "python3 -m pip install poetry && poetry build"
branch = "main"
parser_angular_allowed_types="chore,docs,feat,style,fix,refactor,wip,perf,revert"
parser_angular_minor_types="feat"
parser_angular_patch_types="fix,perf"
[tool.isort]
profile = "black"