-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed PythonTA crash when reporting error messages in config files (#920
- Loading branch information
Showing
7 changed files
with
139 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
16 changes: 16 additions & 0 deletions
16
tests/test_config/file_fixtures/test_json_with_errors.pylintrc
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[REPORTS] | ||
|
||
output-format = python_ta.reporters.JSONReporter | ||
|
||
[FORMAT] | ||
|
||
max-line-length = 100 | ||
|
||
ignore-long-lines = ^\s*((# )?<?https?://\S+>?)|(>>>.*)$ | ||
|
||
[FORBIDDEN IMPORT] | ||
extra-imports = math, tkinter | ||
|
||
[MESSAGES CONTROL] | ||
disable = | ||
ooga |
16 changes: 16 additions & 0 deletions
16
tests/test_config/file_fixtures/test_plain_with_errors.pylintrc
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[REPORTS] | ||
|
||
output-format = python_ta.reporters.PlainReporter | ||
|
||
[FORMAT] | ||
|
||
max-line-length = 100 | ||
|
||
ignore-long-lines = ^\s*((# )?<?https?://\S+>?)|(>>>.*)$ | ||
|
||
[FORBIDDEN IMPORT] | ||
extra-imports = math, tkinter | ||
|
||
[MESSAGES CONTROL] | ||
disable = | ||
ooga |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[REPORTS] | ||
|
||
output-format = python_ta.reporters.HTMLReporter | ||
|
||
[FORMAT] | ||
|
||
max-line-length = 100 | ||
|
||
ignore-long-lines = ^\s*((# )?<?https?://\S+>?)|(>>>.*)$ | ||
|
||
[FORBIDDEN IMPORT] | ||
extra-imports = math, tkinter | ||
|
||
[MESSAGES CONTROL] | ||
disable = | ||
ooga |
This file contains 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