-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
108 lines (97 loc) · 2.74 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "creosote"
description = 'Identify unused dependencies and avoid a bloated virtual environment.'
readme = "README.md"
requires-python = ">=3.8"
license = "MIT"
keywords = []
authors = [{ name = "Fredrik Averpil", email = "[email protected]" }]
classifiers = [
# https://pypi.org/classifiers/
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"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",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dynamic = ["version"]
dependencies = [
"dotty-dict>=1.3.1,<1.4",
"loguru>=0.6.0,<0.8",
"nbconvert>=7.16.4,<8.0",
"nbformat>=5.10.4,<6.0",
"pip-requirements-parser>=32.0.1,<33.1",
"tomli>=2.1.0,<3.0.0 ; python_version < '3.11'",
]
[tool.hatch.version]
path = "src/creosote/__about__.py"
[project.optional-dependencies]
# PEP-440
lint = ["ruff>=0.5.0,<0.8"]
types = ["mypy", "loguru-mypy"]
test = ["pytest", "pytest-mock", "coverage"]
dev = ["creosote[lint,types,test]"]
[project.urls]
Source = "https://github.com/fredrikaverpil/creosote"
Tracker = "https://github.com/fredrikaverpil/creosote/issues"
[project.scripts]
creosote = "creosote.cli:main"
[tool.ruff]
src = ["src", "tests"]
line-length = 88 # black default
[tool.ruff.lint]
select = [
"E", # pycodestyle (supersedes pep8)
"W", # pycodestyle warnings
# "D", # pydocstyle
"F", # pyflakes
# "UP", # pyupgrade
"S", # flake8-bandit
"B", # flake8-bugbear
"I", # isort
"N", # pep8-naming
# "ERA", # eradicate
"C4", # flake8-comprehensions
"A", # flake8-builtins
"Q", # flake8-quotes
"YTT", # flake8-2020
# "ANN", # flake8-annotations
"BLE", # flake8-blind-except
# "FBT", # flake8-boolean-trap
"C90", # mccabe
"T10", # flake8-debugger
# "EM", # flake8-errmsg
"ICN", # flake8-import-conventions
# "T20", # flake8-print
# "RET", # flake8-return
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
# "ARG", # flake8-unused-arguments
"PGH", # pygrep-hooks
"PLC", # pylint
"PLE", # pylint
"PLR", # pylint
"PLW", # pylint
"RUF", # ruff-specific rules
]
ignore = []
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"S101", # assert used
"S105", # hardcoded password
]
[tool.mypy]
python_version = "3.8"
[[tool.mypy.overrides]]
module = ["dotty_dict.*", "pip_requirements_parser.*", "tomli.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = "--ignore=tests/manual"