-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathpyproject.toml
More file actions
117 lines (105 loc) · 2.81 KB
/
Copy pathpyproject.toml
File metadata and controls
117 lines (105 loc) · 2.81 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
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
[build-system]
requires = ["hatchling>=1.21.0", "hatch-vcs>=0.4.0"]
build-backend = "hatchling.build"
[project]
name = "graphtage"
description = "A utility to diff tree-like files such as JSON and XML."
readme = "README.md"
requires-python = ">=3.8"
license = {text = "LGPL-3.0-or-later"}
authors = [
{name = "Trail of Bits"},
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"Programming Language :: Python :: 3 :: Only",
"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",
"Topic :: Utilities",
]
dependencies = [
"colorama",
"fickling>=0.1.3",
"intervaltree",
"json5==0.9.5",
"numpy>=1.19.4",
"PyYAML",
"scipy>=1.4.0",
"toml>=0.10.2",
"tqdm",
"typing_extensions>=3.7.4.3",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"ruff>=0.1.0",
"sphinx>=5.0.0",
"sphinx_rtd_theme==3.0.2",
"twine>=4.0.0",
]
[project.scripts]
graphtage = "graphtage.__main__:main"
[project.urls]
Homepage = "https://github.com/trailofbits/graphtage"
Documentation = "https://trailofbits.github.io/graphtage"
Issues = "https://github.com/trailofbits/graphtage/issues"
Source = "https://github.com/trailofbits/graphtage"
[tool.hatch.version]
path = "graphtage/version.py"
[tool.hatch.build]
include = [
"graphtage/**/*.py",
"LICENSE",
"README.md",
]
[tool.hatch.build.targets.sdist]
include = [
"graphtage/**/*.py",
"test/**/*.py",
"LICENSE",
"README.md",
"pyproject.toml",
]
[tool.hatch.build.targets.wheel]
packages = ["graphtage"]
[tool.ruff]
target-version = "py38"
line-length = 120
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"B904", # raise without from inside except
"SIM108", # use ternary operator instead of if-else block
]
[tool.ruff.per-file-ignores]
"test/**/*.py" = [
"F401", # unused imports in tests
"F841", # unused variables in tests
]
[tool.ruff.isort]
known-first-party = ["graphtage"]
[tool.pytest.ini_options]
testpaths = ["test"]
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"