Created
May 12, 2023 02:01
-
-
Save Samreay/0af44d4f15f8cd96e6e09315d738d441 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[build-system] | |
build-backend = "poetry.core.masonry.api" | |
requires = [ | |
"poetry-core", | |
"setuptools", | |
"cython>=0.29.32", | |
"numpy>=1.23.4", | |
] | |
[tool.poetry] | |
authors = ["Samuel Hinton <sh@arenko.group>"] | |
description = "Optimus Prime" | |
name = "optimiser" | |
packages = [{ include = "optimiser" }] | |
include = [{ path = "**/*.so", format = "wheel" }] | |
readme = "README.md" | |
version = "0.1.0" | |
[tool.poetry.build] | |
script = 'builder.py' | |
generate-setup-file = true | |
[tool.poetry.dependencies] | |
python = ">=3.9,<3.11" | |
numpy = "^1.22.3" | |
pandas = "^1.4.2" | |
cython = "^0.29.32" | |
scipy = "^1.7.3" | |
cloudpickle = "2.1.0" | |
fastapi = "^0.85.2" | |
uvicorn = { extras = ["standard"], version = "^0.19.0" } | |
omegaconf = "^2.2.3" | |
json-logging = "^1.3.0" | |
prometheus-client = "^0.15.0" | |
ray = "1.13.0" | |
pdpyras = "^4.5.0" | |
[tool.poetry.group.test.dependencies] | |
pytest = "^7.1" | |
pytest-cov = "^3.0.0" | |
pytest-mock = "^3.10.0" | |
requests-mock = "^1.10.0" | |
[tool.poetry.group.dev.dependencies] | |
black = "^22.12.0" | |
flake8 = "^5.0.4" | |
ipython = "^8.5.0" | |
isort = "^5.10" | |
mypy = "^0.971" | |
pre-commit = "^2.20" | |
pylint = "^2.15.3" | |
[tool.black] | |
line-length = 120 | |
target-version = ['py39'] | |
[tool.coverage.report] | |
exclude_lines = [ | |
"pragma: no cover", | |
"def __repr__", | |
"raise AssertionError", | |
"raise NotImplementedError", | |
"pass", | |
"if 0:", | |
"if __name__ == .__main__.:", | |
"nocov", | |
"if TYPE_CHECKING:", | |
] | |
[tool.coverage.run] | |
branch = true | |
omit = ["tests/*"] | |
[tool.isort] | |
profile = "black" | |
[tool.mypy] | |
plugins = "pydantic.mypy" | |
check_untyped_defs = true | |
disallow_any_generics = true | |
disallow_incomplete_defs = true | |
disallow_subclassing_any = true | |
disallow_untyped_calls = true | |
disallow_untyped_decorators = false | |
disallow_untyped_defs = true | |
implicit_reexport = false | |
no_implicit_optional = true | |
python_version = "3.9" | |
strict_equality = true | |
warn_redundant_casts = true | |
warn_return_any = true | |
warn_unused_ignores = true | |
[tool.pylint.FORMAT] | |
max-line-length = 120 | |
[tool.pylint."MESSAGES CONTROL"] | |
disable = "missing-docstring, line-too-long, logging-fstring-interpolation, no-self-argument, duplicate-code, no-name-in-module, too-few-public-methods" | |
[tool.pytest.ini_options] | |
addopts = "-v --cov=optimiser --cov-report term-missing --no-cov-on-fail" | |
# pythonpath = ["src"] | |
testpaths = ["test"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment