Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
91 lines (80 loc) · 2.21 KB
/
Copy pathpyproject.toml
File metadata and controls
91 lines (80 loc) · 2.21 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
[build-system]
requires = ["setuptools>=77.0.3"]
build-backend = "setuptools.build_meta"
[project]
name = "github-usage"
version = "0.1.0"
description = "GitHub billing, usage, and scheduled reporting CLI"
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
authors = [
{ name = "Kevin Grizzard" }
]
dependencies = []
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Environment :: Console",
"Operating System :: OS Independent",
]
[project.scripts]
github-usage = "github_usage.cli:main"
[project.optional-dependencies]
dev = [
"bandit>=1.7.10",
"basedpyright>=1.30",
"black>=24.0",
"coverage>=7.0",
"pip-audit>=2.7",
"pre-commit>=3.7",
"radon>=6.0",
"ruff>=0.6",
]
# Export-format optional dependencies. PEP 621 does not support nested extras,
# so users install one of these (not a combined `export` extra):
# pip install github-usage[export-xlsx]
# pip install github-usage[export-pdf]
export-xlsx = ["openpyxl>=3.1"]
export-pdf = ["fpdf2>=2.7"]
# Test extras for the optional writers; run with:
# uv run --extra test-xlsx --extra test-pdf pytest
test-xlsx = ["openpyxl>=3.1"]
test-pdf = ["fpdf2>=2.7", "pypdf>=6.21.4"]
gui = [
"textual>=0.70.0",
]
[tool.setuptools.packages.find]
where = ["src"]
[tool.black]
line-length = 100
target-version = ["py311"]
[tool.ruff]
line-length = 100
target-version = "py311"
exclude = ["backups"]
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM", "D100", "D103", "D104"]
ignore = ["E501"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["D100", "D103", "D104"]
"scripts/**/*" = ["D100", "D103", "D104"]
[tool.basedpyright]
typeCheckingMode = "standard"
include = ["src", "tests"]
exclude = ["backups", ".venv"]
reportMissingImports = "error"
reportMissingTypeStubs = "none"
reportUnknownMemberType = "none"
reportUnknownParameterType = "none"
reportUnknownVariableType = "none"
reportUntypedFunctionDecorator = "none"
reportUntypedClassDecorator = "none"
reportPrivateImportUsage = "none"
pythonVersion = "3.11"
[tool.bandit]
exclude_dirs = ["tests", "backups"]