Remove all Bitbucket Pipelines logic from the codebase#1515
Merged
Conversation
- Delete src/usethis/_integrations/ci/bitbucket/ directory (12 files) - Delete src/usethis/_pipeweld/ directory (5 files) - Delete src/usethis/_core/ci.py - Delete src/usethis/_types/ci.py (CIServiceEnum) - Delete src/usethis/_detect/ci/ directory - Delete docs/pipeweld.md - Delete all bitbucket-related test directories and files - Remove bitbucket methods from Tool base class - Remove bitbucket overrides from pre_commit, ruff, pytest tools - Remove bitbucket step calls from all use_* tool functions - Remove bitbucket status from usage list - Remove BitbucketPipelinesYAMLManager from config_file.py - Remove --ci parameter from init command - Remove init_ci_opt from options.py Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com> Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/2b46fad4-b933-4c23-a33c-8f7cd4dbbb21
…removal Removed all Bitbucket-related test code from: - tests/usethis/_core/test_core_tool.py: Removed import, TestAllBitbucketCompatibleSteps class, all test_bitbucket_integration methods, and all TestBitbucketIntegration inner classes - tests/usethis/_tool/impl/base/test_pytest.py: Removed bitbucket import and TestUpdateBitbucketSteps/TestRemoveBitbucketSteps inner classes - tests/usethis/_ui/interface/test_init.py: Removed test_bitbucket_docstyle_and_status method - tests/usethis/_core/test_list.py: Removed Bitbucket Pipelines UsageRow entries - tests/usethis/_integrations/pre_commit/test_hooks.py: Removed bitbucket sync comment - tests/conftest.py: Updated comment to remove Bitbucket reference Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Remove bitbucket test methods/classes from test_core_tool.py - Remove bitbucket test classes from test_pytest.py - Remove bitbucket test from test_init.py - Remove Bitbucket Pipelines rows from test_list.py - Remove bitbucket comment from test_hooks.py - Update conftest.py comment - Remove bitbucket from docs/cli/reference.md - Remove bitbucket basedpyright config from pyproject.toml - Remove pipeweld from mkdocs.yml navigation - Update .importlinter to remove pipeweld, ci, and bitbucket references Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com> Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/2b46fad4-b933-4c23-a33c-8f7cd4dbbb21
Copilot
AI
changed the title
[WIP] Remove all references to bitbucket pipelines logic from the codebase
Remove all Bitbucket Pipelines logic from the codebase
Mar 25, 2026
Collaborator
|
@copilot please restore pipeweld - even if there's no consumer anymore I plan to use it for pre-commit/prek later, and it's useful code that could be pulled out into its own package. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
The pipeweld utility is kept for future use with pre-commit/prek and as a potential standalone package. Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com> Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/f8fe25b7-3495-4399-91be-a5274472ea4b
Contributor
Author
Restored |
nathanjmcdougall
approved these changes
Mar 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Complete removal of Bitbucket Pipelines CI integration. The internal
_pipeweldmodule is retained for future use with pre-commit/prek.Deleted modules
src/usethis/_integrations/ci/bitbucket/— schema, YAML management, step/cache/anchor handling (12 files)src/usethis/_core/ci.py,src/usethis/_types/ci.py,src/usethis/_detect/ci/Modified source
_tool/base.py— Removedget_bitbucket_steps,get_managed_bitbucket_step_names,remove_bitbucket_steps,update_bitbucket_steps,unconditional_update_bitbucket_stepsand their imports_tool/impl/base/{pre_commit,ruff,pytest}.py— Removed bitbucket step override methods_core/tool.py— Strippedupdate_bitbucket_steps()/remove_bitbucket_steps()calls from alluse_*functions; removed_add_bitbucket_linter_steps_to_defaultand_remove_bitbucket_linter_steps_from_defaulthelpers_core/list.py— Removed Bitbucket Pipelines row and"ci"category from usage table_config_file.py— RemovedBitbucketPipelinesYAMLManagerfromfiles_manager()_ui/interface/init.py+_ui/options.py— Removed--ciparameter andCIServiceEnumusageConfig & docs
.importlinter— Removedcifrom core layers, bitbucket from CI contractpyproject.toml— Removed bitbucket basedpyright execution environmentdocs/cli/reference.md— Removed--cidocumentationRetained
src/usethis/_pipeweld/— Kept for planned future use with pre-commit/prek; tests and docs also retainedOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.