-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathpyproject.toml
167 lines (148 loc) · 4.02 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
[build-system]
requires = ["hatchling", "hatch-fancy-pypi-readme"]
build-backend = "hatchling.build"
[project]
name = "gsppy"
version = "2.3.0"
description = "GSP (Generalized Sequence Pattern) algorithm in Python"
keywords = ["GSP", "sequential patterns", "data analysis", "sequence mining"]
license = { file = "LICENSE" }
requires-python = ">=3.8"
readme = { file = "README.md", content-type = "text/markdown" }
homepage = "https://github.com/jacksonpradolima/gsp-py"
repository = "https://github.com/jacksonpradolima/gsp-py"
authors = [{ name = "Jackson Antonio do Prado Lima", email = "[email protected]" }]
maintainers = [{ name = "Jackson Antonio do Prado Lima", email = "[email protected]" }]
classifiers = [
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Software Development :: Libraries :: Python Modules",
"Natural Language :: English",
]
dependencies = []
[project.urls]
Homepage = "https://github.com/jacksonpradolima/gsp-py"
[project.scripts]
gsppy = "gsppy.cli:main"
[project.optional-dependencies]
dev = [
"cython==3.0.11",
"hatch==1.14.0",
"hatchling==1.27.0",
"mypy==1.14.1",
"pylint==3.3.3",
"pyright==1.1.391",
"pytest==8.3.4",
"pytest-benchmark==5.1.0",
"pytest-cov==6.0.0",
"ruff==0.8.5",
"tox==4.23.2",
]
[tool.hatch.build]
include = ["gsppy/*"]
[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = "text/markdown"
[tool.hatch.build.targets.sdist]
# Basically everything except hidden files/directories (such as .github, .python-version, etc)
include = [
"/*.toml",
"/*.json",
"/*.md",
"/*.ini",
"bin/*",
"gsppy/*",
"tests/*",
]
[tool.mypy]
python_version = "3.8"
check_untyped_defs = true
ignore_missing_imports = true
[tool.ruff]
line-length = 120
output-format = "grouped"
target-version = "py38"
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
select = [
# isort
"I",
# bugbear rules
"B",
# mutable defaults
"B006",
# remove unused imports
"F401",
# bare except statements
"E722",
# unused arguments
"ARG",
# print statements
"T201",
"T203",
# misuse of typing.TYPE_CHECKING
"TCH004",
# import rules
"TID251",
]
ignore = [
# mutable defaults
"B006",
]
unfixable = [
# disable auto fix for print statements
"T201",
"T203",
]
[tool.ruff.lint.flake8-tidy-imports.banned-api]
"functools.lru_cache".msg = "This function does not retain type information for the wrapped function's arguments; The `lru_cache` function from `_utils` should be used instead"
[tool.ruff.lint.isort]
length-sort = true
length-sort-straight = true
combine-as-imports = true
extra-standard-library = ["typing_extensions"]
known-first-party = ["gsp", "tests"]
[tool.ruff.lint.per-file-ignores]
"tests/**.py" = ["T201", "T203"]
"gsppy/utils.py" = ["TID251"]
[tool.pyright]
# this enables practically every flag given by pyright.
# there are a couple of flags that are still disabled by
# default in strict mode as they are experimental and niche.
typeCheckingMode = "strict"
pythonVersion = "3.8"
exclude = []
reportImplicitOverride = true
reportImportCycles = false
reportPrivateUsage = false
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--tb=short -v"
xfail_strict = true
filterwarnings = [
"error"
]
[tool.rye]
dev-dependencies = [
"pyright>=1.1.391",
"ruff>=0.8.4",
"pytest>=8.3.4",
"pytest-benchmark>=4.0.0",
"tox>=4.23.2",
"pylint>=3.2.7",
"pytest-xdist>=3.6.1",
]
[tool.rye.scripts]
test = "pytest -n auto"
format = "ruff check --fix ."
lint = "ruff check ."
typecheck = "pyright"
tox = "tox -r"