-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (76 loc) · 1.91 KB
/
pyproject.toml
File metadata and controls
87 lines (76 loc) · 1.91 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
75
76
77
78
79
80
81
82
83
84
85
86
87
[project]
name = "xerotrust"
version = "1.1.0"
description = "Export and explore data from Xero accounts."
readme = "README.rst"
authors = [
{ name = "Chris Withers", email = "chris@withers.org" }
]
requires-python = ">=3.13"
dependencies = [
"click>=8.2",
"enlighten>=1.14.1",
"fastapi>=0.115.12",
"hypercorn>=0.17.3",
"jinja2>=3.1.6",
"pook>=2.1.3",
"python-dateutil>=2.9.0.post0",
"pyxero>=0.9.5",
"rich>=13.7",
]
[project.urls]
"Homepage" = "https://xerotrust.readthedocs.io/"
"Documentation" = "https://xerotrust.readthedocs.io/"
"Repository" = "https://github.com/cjw296/xerotrust"
[project.scripts]
xerotrust = "xerotrust.main:cli"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
docs = [
"furo>=2024.8.6",
"sphinx>=8.1.3,<9.0", # https://github.com/executablebooks/sphinx-tabs/issues/206
"sphinx-tabs>=3.4.7",
]
dev = [
"httpx>=0.28.1",
"mypy>=1.15.0",
"pytest>=8.3.5",
"pytest-asyncio>=0.26.0",
"pytest-cov>=6.1.1",
"pytest-insta>=0.3.0",
"testfixtures>=9.0.1",
"types-python-dateutil>=2.9.0.20250516",
]
[tool.hatch.build.targets.sdist]
# paranoidly only include the package in the sdist: https://github.com/pypa/hatch/issues/304
packages = ["src/xerotrust"]
[tool.mypy]
strict= true
check_untyped_defs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
[[tool.mypy.overrides]]
module = [
"pook",
"oauthlib.*",
"requests_oauthlib",
"xero.*",
"enlighten.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
asyncio_default_fixture_loop_scope = "function"
filterwarnings = [
# Filter warnings from xero library that we can't fix:
"ignore:datetime.datetime.utc.+\\(\\) is deprecated.*:DeprecationWarning:xero.+",
]
[tool.ruff]
line-length = 100
[tool.ruff.format]
quote-style = "preserve"
[tool.coverage.report]
exclude_also = [
"\\.\\.\\.",
]