-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
83 lines (71 loc) · 2 KB
/
pyproject.toml
File metadata and controls
83 lines (71 loc) · 2 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "cursor-credits"
version = "0.2.0"
description = "A clean, command-line tool to check your Cursor account usage credits"
authors = [
{ name = "CaptainCodeAU", email = "captain@example.com" },
]
readme = "README.md"
requires-python = ">=3.13, <3.14"
license = { text = "MIT" } # Example license
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"requests",
"colorama",
"PyJWT"
]
[project.optional-dependencies]
dev = [
"ruff",
"pytest",
"pytest-cov",
# Add other dev tools like type checkers (mypy, pyright) if desired
]
[project.urls]
Homepage = "https://github.com/CaptainCodeAU/cursor_credits" # Optional: Update URL
Repository = "https://github.com/CaptainCodeAU/cursor_credits" # Optional: Update URL
[project.scripts]
cursor-credits = "cursor_credits.cli:main"
# Use hatch to manage version based on __init__.py
[tool.hatch.version]
path = "src/cursor_credits/__init__.py"
# Example Ruff configuration (adjust as needed)
[tool.ruff]
src = ["src", "tests"]
line-length = 88
indent-width = 4
target-version = "py313" # e.g., py311
[tool.ruff.lint]
select = ["E", "W", "F", "I", "C", "B", "A", "RUF"] # Sensible defaults
ignore = ["E501"] # Handled by formatter
fixable = ["ALL"]
unfixable = []
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint.isort]
known-first-party = ["cursor_credits"]
combine-as-imports = true
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101"] # Allow 'assert' in tests
# Example Pytest configuration
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q --cov=cursor_credits --cov-report=term-missing"
testpaths = ["tests"]
python_files = "test_*.py"
[dependency-groups]
dev = [
"build>=1.3.0",
"twine>=6.1.0",
]