python-compute/pyproject.toml

75 lines
1.4 KiB
TOML
Raw Permalink Normal View History

2023-06-17 20:07:50 +03:00
[tool.poetry]
2023-11-09 01:17:50 +03:00
name = 'compute'
2024-05-17 00:07:51 +03:00
version = '0.1.0-dev5'
2023-12-13 01:42:50 +03:00
description = 'Compute instances management library'
license = 'GPL-3.0-or-later'
2023-11-09 01:17:50 +03:00
authors = ['ge <ge@nixhacks.net>']
readme = 'README.md'
2023-12-13 02:05:12 +03:00
include = ['computed.toml', 'instance.full.yaml']
2023-06-17 20:07:50 +03:00
[tool.poetry.dependencies]
2023-11-09 01:17:50 +03:00
python = '^3.11'
libvirt-python = '9.0.0'
lxml = '^4.9.2'
pydantic = '1.10.4'
pyyaml = "^6.0.1"
2023-07-22 23:59:49 +03:00
[tool.poetry.scripts]
2023-12-13 01:42:50 +03:00
compute = 'compute.cli.parser:run'
2023-11-06 12:52:19 +03:00
[tool.poetry.group.dev.dependencies]
2023-11-09 01:17:50 +03:00
ruff = '^0.1.3'
isort = '^5.12.0'
2023-11-06 12:52:19 +03:00
[tool.poetry.group.docs.dependencies]
2023-11-09 01:17:50 +03:00
sphinx = '^7.2.6'
sphinx-autobuild = '^2021.3.14'
sphinx-multiversion = '^0.2.4'
2023-12-03 23:25:34 +03:00
sphinx-argparse = "^0.4.0"
2023-06-17 20:07:50 +03:00
[build-system]
2023-11-09 01:17:50 +03:00
requires = ['poetry-core']
build-backend = 'poetry.core.masonry.api'
[tool.isort]
skip = ['.gitignore']
lines_after_imports = 2
include_trailing_comma = true
split_on_trailing_comma = true
2023-08-24 22:36:12 +03:00
2023-11-06 12:52:19 +03:00
[tool.ruff]
line-length = 79
indent-width = 4
2023-11-09 01:17:50 +03:00
target-version = 'py311'
2023-11-06 12:52:19 +03:00
[tool.ruff.lint]
2023-11-09 01:17:50 +03:00
select = ['ALL']
2023-11-06 12:52:19 +03:00
ignore = [
2023-12-01 01:39:26 +03:00
'Q000', 'Q003',
'D211', 'D212',
'ANN101', 'ANN102', 'ANN204',
'ISC001',
'COM812',
'D203',
'T201',
'S320',
'EM102',
'TRY003',
'EM101',
'TD003', 'TD006',
'FIX002',
2023-12-13 01:42:50 +03:00
'C901',
'PLR0912', 'PLR0913', 'PLR0915',
2023-08-24 22:36:12 +03:00
]
2023-11-09 01:17:50 +03:00
exclude = ['__init__.py']
2023-11-06 12:52:19 +03:00
[tool.ruff.lint.flake8-annotations]
mypy-init-return = true
allow-star-arg-any = true
[tool.ruff.format]
2023-11-09 01:17:50 +03:00
quote-style = 'single'
2023-11-06 12:52:19 +03:00
[tool.ruff.isort]
lines-after-imports = 2