-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
71 lines (60 loc) · 1.54 KB
/
pyproject.toml
File metadata and controls
71 lines (60 loc) · 1.54 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
[project]
name = "hebcal-api"
version = "0.2.0"
description = "Async client for Hebcal API"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.12"
license = { text = "MIT" }
authors = [
{ name = "sudo-py-dev", email = "sudopydev@gmail.com" }
]
dependencies = [
"httpx>=0.28.1",
"pydantic>=2.7.0",
"loguru>=0.7.2",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=4.0.0",
"ruff>=0.3.0",
"pyright>=1.1.300",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/hebcal_api"]
[tool.ruff]
line-length = 100
target-version = "py312"
[tool.ruff.lint]
select = [
"E", "F", # pyflakes + pycodestyle
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # simplify
"TCH", # type-checking imports
"ANN", # annotations (enforce type hints)
"RUF", # ruff-specific
]
[tool.ruff.lint.per-file-ignores]
"test/**" = ["ANN", "S", "RUF001"] # relax annotations + security + ambiguous chars in tests
[tool.pyright]
pythonVersion = "3.12"
typeCheckingMode = "strict"
venvPath = "."
venv = ".venv"
[tool.pytest.ini_options]
testpaths = ["test"]
asyncio_mode = "auto"
addopts = "--tb=short -q"
[tool.coverage.run]
source = ["src"]
omit = ["*/test/*"]
[project.urls]
Homepage = "https://github.com/sudo-py-dev/hebcal-api"
Issues = "https://github.com/sudo-py-dev/hebcal-api/issues"