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

Add check for enumerate instead of range and len #847

Closed

Conversation

Rishit-dagli
Copy link

@Rishit-dagli Rishit-dagli commented Sep 22, 2022

Motivation and Context

Closes #655

Your Changes

Description: This PR adds the ability to check for the C0200 Pylint check which checks for using enumerate() instead of range and len.

Type of change (select all that apply):

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Refactoring (internal change to codebase, without changing functionality)
  • Test update (change that modifies or updates tests only)
  • Documentation update (change that modifies or updates documentation only)
  • Other (please specify):

Checklist

  • I have performed a self-review of my own code.
  • I have verified that the CI tests have passed.
  • I have reviewed the test coverage changes reported on Coveralls.
  • I have added tests for my changes.
  • I have updated the CHANGELOG.md file.

@david-yz-liu
Copy link
Contributor

(See #655 (comment))

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.

PyTA Documentation: Error C0200 (consider-using-enumerate)
2 participants