-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add tests that don't use poetry to check behaviour without pytype and ipython
- Loading branch information
1 parent
b8f0280
commit 290e25b
Showing
12 changed files
with
93 additions
and
29 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
WARNING: foobar skipped: not a folder, Python file or notebook |
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,20 @@ | ||
usage: allowed [-h] [-V] [-f] [-m] [-u UNIT] [-c CONFIG] | ||
file_or_folder [file_or_folder ...] | ||
|
||
Check that the code only uses certain constructs. See http://dsa- | ||
ou.github.io/allowed for how to specify the constructs. | ||
|
||
positional arguments: | ||
file_or_folder file or folder to check | ||
|
||
options: | ||
-h, --help show this help message and exit | ||
-V, --version show program's version number and exit | ||
-f, --first report only the first of each disallowed construct | ||
(per file) | ||
-m, --methods enable method call checking | ||
-u UNIT, --unit UNIT only allow constructs from units 1 to UNIT (default: | ||
all units) | ||
-c CONFIG, --config CONFIG | ||
allow the constructs given in CONFIG (default: | ||
m269.json) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
10,15c10,17 | ||
< tests/sample.ipynb:cell_3:1: SYNTAX ERROR: this cell wasn't checked | ||
< tests/sample.ipynb:cell_4:1: SYNTAX ERROR: this cell wasn't checked | ||
< tests/sample.ipynb:cell_5:17: SYNTAX ERROR: this cell wasn't checked | ||
< tests/sample.ipynb:cell_6:3: SYNTAX ERROR: this cell wasn't checked | ||
< WARNING: didn't check method calls (pytype not installed) | ||
< WARNING: didn't check notebook cells with %-commands (IPython not installed) | ||
--- | ||
> tests/sample.ipynb:cell_5:7: break | ||
> tests/sample.ipynb:cell_5:12: continue | ||
> tests/sample.ipynb:cell_5:13: while-else | ||
> tests/sample.ipynb:cell_6:4: f-string | ||
> tests/sample.ipynb:cell_6:9: << | ||
> tests/sample.ipynb:cell_6:10: math.e | ||
> tests/sample.ipynb:cell_6:11: type() | ||
> WARNING: didn't check method calls (use option -m) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
16c16 | ||
< WARNING: didn't check method calls (pytype not installed) | ||
--- | ||
> WARNING: didn't check method calls (use option -m) |
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