-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
54 lines (47 loc) · 1.5 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
[project]
name = "structer"
version = "0.3.0"
description = "Structer is a structurer written in Python based on C language structs."
authors = [{name = "Lelzin λ", email = "[email protected]"}]
license = {file = "LICENSE"}
readme = "README.md"
dependencies = []
requires-python = ">=3.9"
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
[project.urls]
Repository = "https://github.com/d3cryptofc/structer"
[dependency-groups]
dev = [
"pytest>=8.3.3",
"pytest-sugar>=1.0.0",
"mypy>=1.13.0",
"taskipy>=1.14.0",
"ruff>=0.7.2",
"pytest-cov>=6.0.0",
]
[tool.taskipy.tasks]
test = "pytest -v"
lint_mypy = "mypy tests structer"
lint_ruff = "ruff check structer && ruff format --diff"
lint = "task lint_mypy && task lint_ruff"
format = "ruff format structer && ruff check structer --fix"
githooks = "rm -rf .git/hooks && mkdir .git/hooks && $(find .githooks -type f -printf \"ln -s \"$PWD/%p\" \".git/hooks/%f\"\") && chmod -R +x .githooks"
[tool.pytest.ini_options]
addopts = "--cov=structer --cov-report=html --cov-report=term --show-capture=stdout -x"
[tool.ruff]
line-length = 79
indent-width = 4
[tool.ruff.lint]
select = ["F", "W", "E", "I", "RET", "R", "ANN"]
ignore = ["ANN101", "ANN102"]
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"