82 lines
1.1 KiB
TOML
82 lines
1.1 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=68.0"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "hydrogen"
|
|
version = "0.2.0"
|
|
description = "Lightweight highly extensible security framework for your server."
|
|
requires-python = ">=3.11"
|
|
dependencies = [
|
|
"pydantic>=2.13.0",
|
|
"pyyaml>=6.0.0",
|
|
]
|
|
|
|
[project.scripts]
|
|
hydrogen = "main:main"
|
|
|
|
[tool.setuptools]
|
|
py-modules = ["config", "loader", "main"]
|
|
|
|
[tool.setuptools.packages.find]
|
|
include = ["core*", "modules*", "reporting*"]
|
|
|
|
[tool.black]
|
|
line-length = 100
|
|
target-version = ['py311']
|
|
include = '\.pyi?$'
|
|
extend-exclude = '''
|
|
/(
|
|
\.git
|
|
| \.venv
|
|
| venv
|
|
| build
|
|
| dist
|
|
| alembic
|
|
)/
|
|
'''
|
|
|
|
[tool.ruff]
|
|
# Базовые настройки
|
|
line-length = 100
|
|
target-version = "py311"
|
|
|
|
exclude = [
|
|
".git",
|
|
".venv",
|
|
"venv",
|
|
"build",
|
|
"dist",
|
|
"alembic",
|
|
]
|
|
|
|
[tool.ruff.lint]
|
|
select = [
|
|
"E",
|
|
"W",
|
|
"F",
|
|
"I",
|
|
"N",
|
|
"UP",
|
|
"B",
|
|
"SIM",
|
|
"PL",
|
|
"RUF",
|
|
"TID",
|
|
"PT",
|
|
]
|
|
|
|
ignore = [
|
|
"E501",
|
|
"D100",
|
|
"D104",
|
|
"G004",
|
|
"PLR0913",
|
|
"RUF001",
|
|
"RUF002",
|
|
"RUF003",
|
|
"B008"
|
|
]
|
|
|
|
[tool.ruff.lint.isort]
|
|
combine-as-imports = true |