Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
113 lines (97 loc) · 2.76 KB
/
Copy pathpyproject.toml
File metadata and controls
113 lines (97 loc) · 2.76 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
[project]
name = "pdc-api"
version = "0.4.1"
description = "Python client for the Philanthropy Data Commons (PDC) API"
readme = "README.md"
license = "AGPL-3.0-only"
license-files = ["LICENSE"]
authors = [{ name = "Philanthropy Data Commons" }]
maintainers = [{ name = "DrivenData", email = "info@drivendata.org" }]
requires-python = ">=3.12"
keywords = ["philanthropy", "philanthropy data commons", "pdc", "grantmaking", "api client"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Typing :: Typed",
]
dependencies = [
"pydantic>=2.7",
"requests>=2.34",
"urllib3>=2",
]
[project.optional-dependencies]
testing = ["responses>=0.23"]
seeding = ["faker>=26", "python-keycloak>=6"]
[project.urls]
Repository = "https://github.com/PhilanthropyDataCommons/pdc-api-python"
Issues = "https://github.com/PhilanthropyDataCommons/pdc-api-python/issues"
Changelog = "https://github.com/PhilanthropyDataCommons/pdc-api-python/blob/main/CHANGELOG.md"
"PDC API" = "https://api.philanthropydatacommons.org/"
[dependency-groups]
dev = [
"datamodel-code-generator[ruff]>=0.87",
"ruff>=0.17",
{ include-group = "tests" },
{ include-group = "typecheck" },
]
tests = [
"pdc-api[seeding,testing]",
"pytest-cov>=7",
"pytest>=9",
]
typecheck = [
"mypy>=2.4.1",
"pyrefly>=1.4.1",
"ty>=0.0.100",
]
[build-system]
requires = ["uv_build>=0.12"]
build-backend = "uv_build"
[tool.uv.build-backend]
module-name = "pdc_api"
source-include = [
"CHANGELOG.md",
"codegen/*.py",
"integration_tests/*.py",
"just/*.just",
"justfile",
"tests/*.py",
]
wheel-exclude = ["pdc_api/openapi.json"]
[tool.coverage.run]
branch = true
relative_files = true
[tool.coverage.paths]
pdc_api = ["src/pdc_api/", "*/site-packages/pdc_api/"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = ["--cov=pdc_api", "--cov-report=term-missing"]
[tool.mypy]
files = ["src", "tests", "integration_tests"]
mypy_path = ["src", "tests"]
explicit_package_bases = true
check_untyped_defs = true
plugins = ["pydantic.mypy"]
[tool.pyrefly]
project-includes = ["src", "tests", "integration_tests"]
search-path = ["src", "tests"]
[tool.ty.src]
include = ["src", "tests", "integration_tests"]
[tool.ty.environment]
extra-paths = ["tests"]
[tool.ruff]
line-length = 120
extend-exclude = ["src/pdc_api/_generated.py"]
[tool.ruff.lint]
extend-select = ["I", "S", "INT", "PLC0415"]
unfixable = ["F"]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["S101", "S106", "S107", "S603"]
"integration_tests/**" = ["S101", "S105", "S106", "S107", "S603"]
[tool.uv]
exclude-newer = "1 week"