Skip to content

Commit

Permalink
Merge pull request #1310 from PythonCoderAS/add-disclaimers
Browse files Browse the repository at this point in the history
Add more documentation info to the static check tool
  • Loading branch information
bboe committed Jan 18, 2020
2 parents 9620872 + b8ba63d commit 1d9eb79
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -62,7 +62,7 @@
license="Simplified BSD License",
long_description=README,
package_data={"": ["LICENSE.txt"], PACKAGE_NAME: ["*.ini"]},
packages=find_packages(exclude=["tests", "tests.*"]),
packages=find_packages(exclude=["tests", "tests.*", "tools", "tools.*"]),
url="https://praw.readthedocs.org/",
version=VERSION,
)
12 changes: 12 additions & 0 deletions tools/static_word_checks.py
Expand Up @@ -108,6 +108,18 @@ def run_checks(self) -> bool:
It runs the checks located in the ``self.full_file_checks`` and
``self.line_checks`` lists, with full file checks being run first.
Full-file checks are checks that can also fix the errors they find,
while the line checks can just warn about found errors.
* Full file checks:
* :meth:`.check_for_code_statement`
* :meth:`.check_for_double_syntax`
* Line checks
* :meth:`.check_for_noreturn`
"""
status = True
directory = os.path.abspath(os.path.join(__file__, "..", "..", "praw"))
Expand Down

0 comments on commit 1d9eb79

Please sign in to comment.