-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
102 lines (92 loc) · 2.04 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
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[project]
authors = [
{name = "Juncheng Yang"},
]
classifiers = [
# "Development Status :: 5 - Production/Stable",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Operating System :: POSIX",
"Programming Language :: C",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries :: Python Modules",
]
description = "a cache library with dict interface"
dynamic = ["version"]
keywords = [
"cache",
"dict",
"lru",
"s3fifo",
"sieve",
"fast",
]
license = "MIT"
name = "cachemonCache"
readme = "README.md"
[project.optional-dependencies]
test = [
"pytest",
]
[project.urls]
Homepage = "https://github.com/cachemon/py-cachemonCache"
Source = "https://github.com/cachemon/py-cachemonCache"
[tool.hatch.version]
path = "src/cachemonCache/__init__.py"
[tool.hatch.envs.quality]
features = [
"quality",
]
[tool.hatch.envs.quality.scripts]
check = [
"black --check --diff --preview src tests",
"ruff src tests",
]
format = [
"black --preview src tests",
"ruff --fix src tests",
"check",
]
[tool.ruff]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
[tool.ruff.isort]
known-first-party = ["REPLACE_PACKAGE_NAME"]
[tool.hatch.envs.tests]
features = [
"tests",
]
[tool.hatch.build.targets.sdist]
exclude = [
"/data",
"/.github",
"/.vscode",
"/docs",
"/.devcontainer",
"/.pre-commit-config.yaml",
"/.gitignore",
"/tests",
"/Dockerfile",
"/.dockerignore",
]