-
Notifications
You must be signed in to change notification settings - Fork 57
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
Additional Pycodestyle Checker Tests - E304, 303, 301, 275, 266 #1037
Additional Pycodestyle Checker Tests - E304, 303, 301, 275, 266 #1037
Conversation
Pull Request Test Coverage Report for Build 9296652307Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lana-w good work, I just left a few minor comments. Also, since I merged in #1036 you'll need to resolve some merge conflicts. Before doing a pull from upstream master
, I recommend changing the git diff algorithm in the git configuration, described in the "Using Git Effectively" page. That will hopefully help reduce the number of merge conflicts.
@@ -100,7 +100,107 @@ def test_error_e262(self) -> None: | |||
self.checker.process_module(mod) | |||
|
|||
def test_no_error_e262(self) -> None: | |||
"""Test that PEP8 error E262 (inline comment should start with '# ') is not triggered""" | |||
"""Test that PEP8 error E262 (inline comment should start with '#') is not triggered""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change isn't correct (and also not related to the purpose of this PR). pycodestyle checks for a leading #
and space character for comments.
CHANGELOG.md
Outdated
@@ -45,6 +45,7 @@ list only contains the Pylint checkers enabled by default in PythonTA. | |||
### 🔧 Internal changes | |||
|
|||
- Updated changelog and pull request template formats | |||
- Added unit tests for pep8 errors E304, 303, 301, 275, 266 for `pycodestyle_checker` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please follow the same entry as the wording in #1036
@david-yz-liu Made all requested changes! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lana-w I left one more comment. Additionally make sure you are running the pre-commit hooks on your computer (follow the setup instructions on the README); there shouldn't be any additional commits added to your PR by the pre-commit bot.
CHANGELOG.md
Outdated
@@ -47,6 +47,8 @@ list only contains the Pylint checkers enabled by default in PythonTA. | |||
- Updated changelog and pull request template formats | |||
- Added unit tests for PEP8 errors E223, E224, E227, E228, E265 for `PycodestyleChecker` | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete this blank line
Merge branch 'pycodestyle_checker-tests' of https://github.com/lana-w/pyta into pycodestyle_checker-tests "Consolidating local and remote branches"
This reverts commit 72a1127.
for more information, see https://pre-commit.ci
…/pyta into pycodestyle_checker-tests " "Merging local to remote"
CHANGELOG.md
Outdated
@@ -46,6 +46,7 @@ list only contains the Pylint checkers enabled by default in PythonTA. | |||
|
|||
- Updated changelog and pull request template formats | |||
- Added unit tests for PEP8 errors E223, E224, E227, E228, E265 for `PycodestyleChecker` | |||
- Added unit tests for PEP8 errors E266, E275, E2301, E303, E304 for `PycodestyleChecker` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a typo on this line, I think the code E2301 is incorrect.
Proposed Changes
This pull requests adds the following tests to the test_pycodestyle_checker suite to increase the coverage of PycodestyleChecker:
Type of Change
Checklist
(Complete each of the following items for your pull request. Indicate that you have completed an item by changing the
[ ]
into a[x]
in the raw text, or by clicking on the checkbox in the rendered description on GitHub.)Before opening your pull request:
After opening your pull request:
Questions and Comments