Skip to content

Commit 30eeadf

Browse files
committed
add deptry package_module_name_map to suppress noisy advisory notices
1 parent e354b27 commit 30eeadf

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

pyproject.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,22 @@ branch = true
6868
omit = ["*_test.py", "*/test/*", "*/tests/*"]
6969
source = ["src"]
7070

71+
[tool.deptry.package_module_name_map]
72+
# map package name to import name
73+
# Making this explicit suppresses deptry notices
74+
coloredlogs = "coloredlogs"
75+
mkdocs = "mkdocs"
76+
mkdocs-material = "mkdocs_material"
77+
mkdocstrings = "mkdocstrings"
78+
mypy = "mypy"
79+
pre-commit = "pre_commit"
80+
pytest = "pytest"
81+
pytest-cov = "pytest_cov"
82+
pyyaml = "yaml"
83+
ruff = "ruff"
84+
tox-uv = "tox_uv"
85+
ty = "ty"
86+
7187
# https://docs.pytest.org/en/6.2.x/customize.html#pyproject-toml
7288
[tool.pytest.ini_options]
7389
addopts = "-s -v -x --strict-markers -m 'not extra' --doctest-modules --cov=src"

0 commit comments

Comments
 (0)