-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
74 lines (67 loc) · 1.6 KB
/
Copy pathpyproject.toml
File metadata and controls
74 lines (67 loc) · 1.6 KB
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
[project]
name = "harbor-bot"
version = "0.1.0"
description = "GitHub bot for Harbor"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"harbor>=0.1.42",
"pyyaml>=6.0",
"pydantic>=2.0",
"pydantic-settings>=2.0",
"click>=8.0",
"PyGithub>=2.0",
"sqlalchemy>=2.0",
"psycopg2-binary>=2.9",
"asyncpg>=0.29",
"scikit-learn>=1.0",
"numpy>=1.24",
"httpx>=0.25",
"structlog>=24.0",
"python-dotenv>=1.0",
"aiofiles>=23.0",
"tenacity>=8.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.23",
"pytest-cov>=4.0",
"ruff>=0.1",
]
[project.scripts]
harbor-bot = "harbor_bot.main:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["harbor_bot"]
[tool.ruff]
line-length = 88
target-version = "py313"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"DJ", # flake8-django
"PLC", # Pylint Convention
"PLE", # Pylint Error
"PLW", # Pylint Warning
"PERF", # Performance anti-patterns
"SIM", # Code simplification
"PT", # flake8-pytest-style
"ERA", # eradicate (commented-out code)
"RUF", # Ruff-specific rules
"PTH", # Use pathlib
"PGH", # pygrep-hooks
"FLY", # flynt (static joins to f-strings)
]
ignore = []
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]