forked from fpgmaas/deptry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
109 lines (93 loc) · 2.48 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
[tool.poetry]
name = "deptry"
version = "0.0.1"
description = "A command line utility to check for obsolete, missing and transitive dependencies in a Python project."
authors = ["Florian Maas <[email protected]>"]
maintainers = ["Mathieu Kniewallner <[email protected]>"]
repository = "https://github.com/fpgmaas/deptry"
documentation = "https://fpgmaas.github.io/deptry/"
readme = "README.md"
license = "MIT"
packages = [
{ include = "deptry" }
]
keywords = ["dependency", "poetry"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
]
[tool.poetry.dependencies]
python = ">=3.7,<4.0"
tomli = { version = "^2.0.1", python = "<3.11" }
click = "^8.0.0"
importlib-metadata = { version = "*", python = "<=3.7" }
chardet = ">=4.0.0"
[tool.poetry.group.dev.dependencies]
mypy = "^0.991"
pre-commit = "^2.20.0"
pytest = "^7.1.2"
pytest-cov = "^4.0.0"
types-chardet = "^5.0.4"
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.3.0"
mkdocs-material = "^8.3.8"
mkdocstrings = "^0.19.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
target-version = ["py37"]
preview = true
[tool.coverage.report]
skip_empty = true
[tool.coverage.run]
branch = true
source = ["deptry"]
[tool.isort]
profile = "black"
[tool.mypy]
files = ["deptry", "scripts", "tests"]
exclude = ["tests/data"]
disallow_any_unimported = true
enable_error_code = [
"ignore-without-code",
"redundant-expr",
"truthy-bool",
]
strict = true
warn_unreachable = true
pretty = true
show_error_codes = true
# Ignore warnings for unused ignores because of https://github.com/python/mypy/issues/8823.
# In some Python versions, we can end up with backport modules being untyped, while they are typed on others.
[[tool.mypy.overrides]]
module = [
"deptry.cli",
"deptry.dependency",
"deptry.module",
]
warn_unused_ignores = false
[tool.deptry]
exclude = [
"venv",
".venv",
"docs",
"tests",
"scripts",
]
ignore_missing = ["tomllib"]
[tool.poetry.scripts]
deptry = "deptry.cli:deptry"
[tool.ruff]
line-length = 120
select = ["E", "F", "C", "B"]
# PEP-8 The following are ignored:
# E731 do not assign a lambda expression, use a def
# E501 line too long
ignore = ["E731", "E501"]
extend-exclude = ["tests/data/*"]