-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
104 lines (86 loc) · 2.43 KB
/
pyproject.toml
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
[project]
name = "ngtonic"
version = "1.0.0"
description = "Personal finances on your terminal"
authors = [
{name = "Daniel Pañeda", email = "dpaneda@gmail.com"},
]
requires-python = ">=3.10"
classifiers = [
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: MIT License",
]
readme = "README.md"
license = {text = "MIT"}
dependencies = [
"matplotlib",
"xlrd",
"unidecode",
"pyyaml>=6.0.2",
"pip>=25.0",
"typer>=0.15.1",
"fastclasses-json>=0.8.0",
"lazy-import>=0.2.2",
"pyqt6>=6.8.1",
"pre-commit>=4.2.0",
]
[dependency-groups]
dev = [
"mypy>=1.13.0",
"ruff>=0.8.1",
"vulture>=2.13",
"bpython",
"types-PyYAML",
"py-spy",
"pre-commit>=4.2.0",
"types-python-dateutil>=2.9.0.20241206",
]
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"COM812", # Conflicts with the formatter
"ANN", # TODO: It would be nice but we have a lot of missing annotations right now
"D" # No need to have docstrings everywhere, not being a library
]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.per-file-ignores]
# Is completely ok to have boolean parameters and many parameters, as they are arguments
"src/ngtonic/__main__.py" = ["FBT002", "PLR0913"]
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
docstring-code-format = true
docstring-code-line-length = 20
[tool.pdm]
distribution = true
[[tool.pdm.source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[tool.pdm.scripts]
lint = ["scripts/lint.sh"]
format = ["scripts/format.sh"]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[project.scripts]
ngtonic = "ngtonic.__main__:app"