Skip to content

chore: configure deptry for src layout - #1927

Merged
bhirsz merged 1 commit into
mainfrom
chore/configure-deptry
Aug 31, 2026
Merged

chore: configure deptry for src layout#1927
bhirsz merged 1 commit into
mainfrom
chore/configure-deptry

Conversation

@bhirsz

@bhirsz bhirsz commented Aug 31, 2026

Copy link
Copy Markdown
Member

What

Configure deptry for this src-layout project.

Why

The distribution is robotframework-robocop but the import package is robocop, so deptry could not map imports to the first-party package and reported ~442 issues (almost entirely false-positive DEP003 'robocop' transitive).

What changed

  • pyproject.toml: add [tool.deptry] with known_first_party = ["robocop"] and extend_exclude = ["docs", "noxfile.py"] (dev-only tooling: mkdocs_gen_files, nox).

Result

deptry . now reports 0 issues.

Declare robocop as a first-party module so deptry stops flagging internal
imports as transitive, and exclude dev-only scripts (docs, noxfile) that
import dev/doc dependencies. deptry now runs clean.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bhirsz
bhirsz force-pushed the chore/configure-deptry branch from ea0e1d7 to 112741f Compare August 31, 2026 08:22
@bhirsz
bhirsz merged commit b1b0652 into main Aug 31, 2026
11 checks passed
@bhirsz
bhirsz deleted the chore/configure-deptry branch August 31, 2026 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant