Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CodemodCollection API #275

Merged
merged 2 commits into from
Feb 19, 2024
Merged

Fix CodemodCollection API #275

merged 2 commits into from
Feb 19, 2024

Conversation

drdavella
Copy link
Member

Overview

Remove unused CodemodCollection attributes

Description

  • These should have been removed as part of the API refactoring in Implement new codemod API #213
  • Also fixed an issue that was causing test errors when using pytest-xdist locally

Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@drdavella drdavella added this pull request to the merge queue Feb 19, 2024
@@ -3,7 +3,7 @@
from core_codemods.lazy_logging import LazyLogging

logging_funcs = {"debug", "info", "warning", "warn", "error", "critical"}
each_func = pytest.mark.parametrize("func", logging_funcs)
each_func = pytest.mark.parametrize("func", sorted(logging_funcs))
Copy link
Member Author

@drdavella drdavella Feb 19, 2024

Choose a reason for hiding this comment

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

@clavedeluna this would be a good codemod, although we currently ignore test directories by default. I'd like to update that logic, though, so that the ignored directories are codemod-dependent.

Copy link
Contributor

Choose a reason for hiding this comment

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

sorry which part exactly do you suggest as a codemod? sorting part?

Merged via the queue into main with commit 782311c Feb 19, 2024
13 checks passed
@drdavella drdavella deleted the fix-registry-api branch February 19, 2024 14:59
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.

3 participants