Skip to content

Set [tool.deptry.ignore_notebooks] explicitly as deptry config#989

Merged
nathanjmcdougall merged 4 commits intomainfrom
983-deptry-has-no-default-config-doesnt-get-detected-in-bitbucket-integration-for-none-backend
Oct 13, 2025
Merged

Set [tool.deptry.ignore_notebooks] explicitly as deptry config#989
nathanjmcdougall merged 4 commits intomainfrom
983-deptry-has-no-default-config-doesnt-get-detected-in-bitbucket-integration-for-none-backend

Conversation

@nathanjmcdougall
Copy link
Copy Markdown
Collaborator

No description provided.

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Oct 13, 2025

CodSpeed Performance Report

Merging #989 will degrade performances by 3.51%

Comparing 983-deptry-has-no-default-config-doesnt-get-detected-in-bitbucket-integration-for-none-backend (285a080) with main (dcc710e)

Summary

❌ 1 (👁 1) regression
✅ 1 untouched

Benchmarks breakdown

Mode Benchmark BASE HEAD Change
👁 Instrumentation test_several_tools_add_and_remove 1.5 s 1.5 s -3.51%

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@nathanjmcdougall
Copy link
Copy Markdown
Collaborator Author

Regression is expected since we're now writing pyproject.toml in a case where we wouldn't have before.

@nathanjmcdougall nathanjmcdougall marked this pull request as ready for review October 13, 2025 16:36
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR configures deptry to explicitly set [tool.deptry.ignore_notebooks] to false in the pyproject.toml file. This ensures deptry has an explicit configuration rather than relying on defaults.

  • Adds explicit deptry configuration to set ignore_notebooks = false
  • Updates the order of linter initialization to run deptry before ruff
  • Updates test expectations to reflect the new configuration behavior

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/usethis/_tool/impl/deptry.py Adds configuration item for ignore_notebooks setting
src/usethis/_core/tool.py Adds call to add_configs() in use_deptry() function
src/usethis/_toolset/lint.py Reorders linter initialization to run deptry before ruff
tests/usethis/_tool/impl/test_deptry.py Updates test to expect pyproject.toml creation
tests/usethis/_core/test_core_tool.py Adds test for ignore_notebooks setting and updates output expectations
tests/usethis/_core/test_rule.py Updates expected output to include deptry config message
tests/usethis/_ui/interface/test_lint.py Updates test expectations for new output order and pyproject.toml creation
tests/usethis/_ui/interface/test_init.py Updates expected output order in test assertions

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@nathanjmcdougall nathanjmcdougall merged commit 9053086 into main Oct 13, 2025
18 checks passed
@nathanjmcdougall nathanjmcdougall deleted the 983-deptry-has-no-default-config-doesnt-get-detected-in-bitbucket-integration-for-none-backend branch October 13, 2025 16:36
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.

deptry has no default config, doesn't get detected in bitbucket integration for none backend

2 participants