-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
100 lines (87 loc) · 2.42 KB
/
pyproject.toml
File metadata and controls
100 lines (87 loc) · 2.42 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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pytrim"
version = "0.2.0"
description = "Auto-detect and trim unused Python imports and dependencies"
readme = "README.md"
requires-python = ">=3.10"
license = {file = "LICENSE"}
authors = [
{name = "Konstantinos Karakatsanis"},
{name = "George Alexopoulos"},
{name = "Giannis Karyotakis"},
{name = "Foivos Proestakis"},
{name = "Evangelos Talos"},
]
keywords = ["dependencies", "imports", "cleanup", "trim", "python", "packaging", "optimization", "auto-detection", "unused"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
"Topic :: System :: Archiving :: Packaging",
]
dependencies = [
"tomli>=1.2.0;python_version<'3.11'",
"fawltydeps",
"pkginfo",
"toml",
"colorama",
"ruff",
"pipdeptree",
"deptry"
]
[project.optional-dependencies]
dev = [
"pytest>=6.0",
"requests",
"pre-commit",
]
docs = [
]
[project.scripts]
trim = "pytrim.cli:main"
pytrim = "pytrim.cli:main"
[project.urls]
Homepage = "https://github.com/TrimTeam/PyTrim"
Repository = "https://github.com/TrimTeam/PyTrim.git"
"Bug Reports" = "https://github.com/TrimTeam/PyTrim/issues"
[tool.setuptools]
packages = { find = { where = ["."], include = ["pytrim", "pytrim.*"] } }
[tool.setuptools.package-data]
pytrim = ["py.typed", "utils/import_mappings.json"]
[tool.black]
line-length = 88
target-version = ['py310']
include = '\.pyi?$'
[tool.isort]
profile = "black"
line_length = 88
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = "--strict-markers --strict-config --cov=pytrim"
[tool.coverage.run]
source = ["pytrim"]
omit = ["tests/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
]