Skip to content

Instantly share code, notes, and snippets.

@etaMS20
Created October 18, 2023 08:03
Show Gist options
  • Save etaMS20/225f460367c540dfc7390a200ee370b8 to your computer and use it in GitHub Desktop.
Save etaMS20/225f460367c540dfc7390a200ee370b8 to your computer and use it in GitHub Desktop.
pyproject.toml
[tool.poetry]
name = "eta_control"
version = "0.58.3"
description = "Framework to run eta_opt in the scripting engine"
authors = ["etalytics GmbH <info@etalytics.com>"]
[tool.poetry.dependencies]
python = "~3.11"
eta-opt = "^0.80.0"
etaone-py-sdk = "^0.38.0"
trio = "^0.22.0"
rich = "^13.5.0"
eta-forecast = { version = "~0.3", optional = true }
py-base-types = "^0.13.4"
[tool.poetry.extras]
forecast = ["eta-forecast"]
[tool.poetry.group.dev.dependencies]
pre-commit = "^3.4.0"
pytest = "^7.4.0"
[tool.poetry.group.ci]
optional = true
[tool.poetry.group.ci.dependencies]
pytest-cov = "^4.1.0"
coverage = "^7.3.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.coverage.run]
source = ["src"]
[tool.pytest.ini_options]
python_classes = ''
testpaths = ["tests/eta_control_tests"]
[tool.black]
line-length = 120
[tool.commitizen]
version = "0.58.3"
update_changelog_on_bump = true
bump_message = "bump: $current_version → $new_version [skip-ci]"
tag_format = "v$version"
version_files = ["pyproject.toml:version"]
[tool.coverage.report]
skip_empty = true
[[tool.poetry.source]]
name = "etalytics-gitlab"
url = "https://gitlab.com/api/v4/groups/8159104/-/packages/pypi/simple"
priority = "supplemental"
[[tool.poetry.source]]
name = "etalytics-gitlab-basetypes"
url = "https://gitlab.com/api/v4/projects/35871707/packages/pypi/simple"
priority = "supplemental"
[[tool.poetry.source]]
name = "PyPI"
priority = "primary"
[tool.ruff]
select = [
"F", # Pyflakes
"E",
"W", # Pycodestyle
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
"A", # flake8-builtins
"DTZ", # flake8-datetimez
"G", # flake8-logging-format
"Q", # flake8-quotes
"SIM", # flake8-simplify
"ERA", # eradicate
"PD", # pandas
"PL", # pylint
"RUF", # ruff specific
]
unfixable = ["ERA"]
ignore = ["PLR0913", "DTZ005", "PLR0915", "PLR0912", "PD002"]
line-length = 120
target-version = "py311"
extend-exclude = ["tests/resources"]
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]
[tool.ruff.pydocstyle]
convention = "google"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment