Skip to content

Instantly share code, notes, and snippets.

@textbook
Last active August 11, 2020 10:04
Show Gist options
  • Save textbook/6fcc3b7a025364c47a32e09e31a54ed3 to your computer and use it in GitHub Desktop.
Save textbook/6fcc3b7a025364c47a32e09e31a54ed3 to your computer and use it in GitHub Desktop.
$ pwd
path/to/PackageX
$ pylint --version
pylint 2.5.3
astroid 2.4.2
Python 3.8.5 (default, Jul 21 2020, 10:48:26)
[Clang 11.0.3 (clang-1103.0.32.62)]
$ pylint PackageY
************* Module PackageY
PackageY/__init__.py:2:0: C0305: Trailing newlines (trailing-newlines)
PackageY/__init__.py:1:0: C0103: Module name "PackageY" doesn't conform to snake_case naming style (invalid-name)
PackageY/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module PackageY.SubPkgZ
PackageY/SubPkgZ/__init__.py:1:0: C0103: Module name "SubPkgZ" doesn't conform to snake_case naming style (invalid-name)
************* Module PackageY.SubPkgZ.mod1
PackageY/SubPkgZ/mod1.py:3:0: C0305: Trailing newlines (trailing-newlines)
PackageY/SubPkgZ/mod1.py:1:0: C0114: Missing module docstring (missing-module-docstring)
PackageY/SubPkgZ/mod1.py:1:0: C0116: Missing function or method docstring (missing-function-docstring)
-----------------------------------------------------------------------
Your code has been rated at -13.33/10
$ python -m pylint PackageY
************* Module PackageY
PackageY/__init__.py:2:0: C0305: Trailing newlines (trailing-newlines)
PackageY/__init__.py:1:0: C0103: Module name "PackageY" doesn't conform to snake_case naming style (invalid-name)
PackageY/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module PackageY.SubPkgZ
PackageY/SubPkgZ/__init__.py:1:0: C0103: Module name "SubPkgZ" doesn't conform to snake_case naming style (invalid-name)
************* Module PackageY.SubPkgZ.mod1
PackageY/SubPkgZ/mod1.py:3:0: C0305: Trailing newlines (trailing-newlines)
PackageY/SubPkgZ/mod1.py:1:0: C0114: Missing module docstring (missing-module-docstring)
PackageY/SubPkgZ/mod1.py:1:0: C0116: Missing function or method docstring (missing-function-docstring)
----------------------------------------------------------------------
Your code has been rated at -13.33/10 (previous run: -13.33/10, +0.00)
$ touch __init__.py
$ pylint PackageY
************* Module PackageY
PackageY/__init__.py:2:0: C0305: Trailing newlines (trailing-newlines)
PackageY/__init__.py:1:0: C0103: Module name "PackageY" doesn't conform to snake_case naming style (invalid-name)
PackageY/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)
PackageY/__init__.py:1:0: E0611: No name 'SubPkgZ' in module 'PackageY' (no-name-in-module)
PackageY/__init__.py:1:0: E0401: Unable to import 'PackageY.SubPkgZ.mod1' (import-error)
************* Module PackageY.SubPkgZ
PackageY/SubPkgZ/__init__.py:1:0: C0103: Module name "SubPkgZ" doesn't conform to snake_case naming style (invalid-name)
************* Module PackageY.SubPkgZ.mod1
PackageY/SubPkgZ/mod1.py:3:0: C0305: Trailing newlines (trailing-newlines)
PackageY/SubPkgZ/mod1.py:1:0: C0114: Missing module docstring (missing-module-docstring)
PackageY/SubPkgZ/mod1.py:1:0: C0116: Missing function or method docstring (missing-function-docstring)
-----------------------------------------------------------------------
Your code has been rated at -46.67/10 (previous run: -13.33/10, -33.33)
$ python -m pylint PackageY
************* Module PackageY
PackageY/__init__.py:2:0: C0305: Trailing newlines (trailing-newlines)
PackageY/__init__.py:1:0: C0103: Module name "PackageY" doesn't conform to snake_case naming style (invalid-name)
PackageY/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)
PackageY/__init__.py:1:0: E0611: No name 'SubPkgZ' in module 'PackageY' (no-name-in-module)
PackageY/__init__.py:1:0: E0401: Unable to import 'PackageY.SubPkgZ.mod1' (import-error)
************* Module PackageY.SubPkgZ
PackageY/SubPkgZ/__init__.py:1:0: C0103: Module name "SubPkgZ" doesn't conform to snake_case naming style (invalid-name)
************* Module PackageY.SubPkgZ.mod1
PackageY/SubPkgZ/mod1.py:3:0: C0305: Trailing newlines (trailing-newlines)
PackageY/SubPkgZ/mod1.py:1:0: C0114: Missing module docstring (missing-module-docstring)
PackageY/SubPkgZ/mod1.py:1:0: C0116: Missing function or method docstring (missing-function-docstring)
----------------------------------------------------------------------
Your code has been rated at -46.67/10 (previous run: -46.67/10, +0.00)
from PackageY.SubPkgZ.mod1 import mod1fn1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment