Matt Martz
|
7cc11e4ad5
|
mark requests and boto as blacklisted imports for new modules. Fixes #21
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
9ce546d03e
|
Don't check for basic.py redeclarations. Fixes #10
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
b8b3003b29
|
Rework module_utils detection for zipmodule
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
38464b1fdc
|
Don't exit after individual file
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
074661ef0e
|
Make modules accept multiple paths
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
a90e1c353e
|
Drop bottom import checking. Fixes #22
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
71562d83e1
|
Consolidate blackist imports, remove JSON import check. See #23
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
9c029eca9e
|
Fix license headers and copyright across all files
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
d945198faf
|
Fix license headers and copyright across all files
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
eb352e2876
|
Ignore the .github directory
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
3d2c5f3016
|
Choices should be a list, not a string
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
a103f81513
|
Validate DOCUMENTATION schema
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
10d683a962
|
Look inside try/except for requests imports
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
28774875b4
|
On ast parser failure, try compiliation to get error
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
9b31175cf8
|
Get module version_added from existing, and catch invalid versions
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
3842ae9ded
|
Don't error on version_added for arg, if version_added should be the same as when the module was added. Fixes #18
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
113c74faac
|
flake8 clean ups
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
75b299e6de
|
Add CaptureStd context manager for capturing stdout and stderr
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
60a2165987
|
Improved documentation error handling
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
ddf0474a76
|
Manipulate YAMLError for docs. Fixes #14
* reference the section the error came from
* offset the line number to reference the actual line in the file
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
6bcc5e6f6a
|
Add *.txt and test dir to exclusions
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
cd88cb753c
|
Make sure we find the .py file when looking for a module to compare docs with
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
87808797ea
|
Fix flake8 error
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
8ca303032f
|
Clean up and re-order imports
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
ef55f9a243
|
Clarify that RETURN is a form of documentation
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
fca2f088ea
|
Verify that new arguments have a correct version added. Fixes #16
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
ab74928259
|
Fix local variable 'version_added' referenced before assignment. Fixes #15
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
f0e769e125
|
s/Regex/RegEx/
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
ccd49201b1
|
Cast version to string for comparisons
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
8daaa75027
|
Note that sys.exit should be exit_json or fail_json
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
e37ba8dd29
|
Fix bottom import check weirdness
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
bc51bb97dd
|
No RETURN should be an error for new modules
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
69ec1e8e6a
|
Check for requests imports. Fixes #12
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
61a49e0420
|
Only check version correctness on new modules. Fixes #11
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
1d2cb3968f
|
Still look for EXAMPLES and RETURN if DOCUMENTATION is invalid. Fixes #7
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
99158a6a89
|
If no version_added is found, we should assume the string 0.0 instead of the int 0
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
8c6c2caf61
|
Still scan modules with no extension assuming they are python. Fixes #8
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
e9de4d136f
|
Better tab checking, since we care about any tabs in the line, not just in initial indentation
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
72690c89bd
|
Try to parse RETURN as YAML
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
2218e763f8
|
Get the index of the tab, not the line itself
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
e3dbe85f25
|
Check the version_added value
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
86c50839bd
|
We are using enumerate to get line numbers, so we need to add 1 since it is 0 offset
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
1464f246a3
|
Add a version
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
cbe7052ebe
|
get_docstring has changed output, rework code to get exception raised by get_docstring
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
4d24f3ba61
|
Don't abspath things, and don't do root based magic
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
2ce2b7a416
|
Detect duplicate globals from basic.py
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
3760ae3bfe
|
Add option for regex pattern exclusions for file paths
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
cf9b22103d
|
Warnings should not increment the exit status
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
95c9e11cba
|
Give line no and column for indentation
|
2016-10-13 14:22:34 +01:00 |
|
Matt Martz
|
cb87eeccad
|
Catch the traceback from get_docstring so we can output it in the correct spot
|
2016-10-13 14:22:34 +01:00 |
|