flake8
-
reviewboard/scmtools/svn/__init__.py (Diff revision 1) Show all issues
Review Request #13223 — Created Aug. 18, 2023 and submitted
Information | |
---|---|
david | |
Review Board | |
release-6.x | |
Reviewers | |
reviewboard | |
We have two cases that have come up semi-frequently, tripping up users
when they're trying to configure their repositories:
- Users were putting in a raw file path to an SVN repository, where it
needs afile://
URL.- When configuring a Git repo, they'd enter their SVN clone address but
leave out the raw file URL. This one is especially confusing because
a lot of people expect Git to just work, and don't read our
documentation about why it doesn't.This change adds new repository form subclasses that can validate these
conditions.
Summary | |
---|---|
Description | From | Last Updated |
---|---|---|
continuation line unaligned for hanging indent Column: 23 Error code: E131 |
![]() |
|
Missing Version Added. |
|
|
This is missing typing. |
|
|
We should also allow file: schemes. |
|
|
Let's link to the relevant docs here. |
|
|
Missing Version Added. |
|
|
This is missing typing. |
|
|
Missing blank line. |
|
|
Should add a -> None so we can opt into typing. Also, let's add tests for supported schemes, just to … |
|
|
Should add a -> None so we can opt into typing. Also, let's add tests for other schemes, just to … |
|
|
No . in unit test docstrings. |
|
|
Leftover debug output. |
|
|
line too long (83 > 79 characters) Column: 80 Error code: E501 |
![]() |
|
line too long (80 > 79 characters) Column: 80 Error code: E501 |
![]() |
|
line too long (80 > 79 characters) Column: 80 Error code: E501 |
![]() |
|
local variable 'x' is assigned to but never used Column: 9 Error code: F841 |
![]() |
|
local variable 'y' is assigned to but never used Column: 9 Error code: F841 |
![]() |
|
line too long (80 > 79 characters) Column: 80 Error code: E501 |
![]() |
|
line too long (80 > 79 characters) Column: 80 Error code: E501 |
![]() |
|
This should be typed as Dict[str, Any]. |
|
|
This should be typed as Dict[str, Any]. |
|
Commits: |
|
|||||||||
---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+210 -16) |
reviewboard/scmtools/tests/test_git.py (Diff revision 2) |
---|
Should add a
-> None
so we can opt into typing.Also, let's add tests for supported schemes, just to make sure we don't ever regress.
reviewboard/scmtools/tests/test_svn.py (Diff revision 2) |
---|
Should add a
-> None
so we can opt into typing.Also, let's add tests for other schemes, just to make sure we don't ever regress that.
Commits: |
|
|||||||||
---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 3 (+392 -24) |
reviewboard/scmtools/git.py (Diff revision 3) |
---|
line too long (83 > 79 characters) Column: 80 Error code: E501
reviewboard/scmtools/git.py (Diff revision 3) |
---|
line too long (80 > 79 characters) Column: 80 Error code: E501
reviewboard/scmtools/tests/test_git.py (Diff revision 3) |
---|
line too long (80 > 79 characters) Column: 80 Error code: E501
reviewboard/scmtools/tests/test_git.py (Diff revision 3) |
---|
local variable 'x' is assigned to but never used Column: 9 Error code: F841
reviewboard/scmtools/tests/test_git.py (Diff revision 3) |
---|
local variable 'y' is assigned to but never used Column: 9 Error code: F841
reviewboard/scmtools/tests/test_git.py (Diff revision 3) |
---|
line too long (80 > 79 characters) Column: 80 Error code: E501
reviewboard/scmtools/tests/test_git.py (Diff revision 3) |
---|
line too long (80 > 79 characters) Column: 80 Error code: E501
Commits: |
|
|||||||||
---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 4 (+388 -28) |