Skip to main content

The package that allows you to check the Python code for compliance with PEP8.

Project description

pylint_af

GitHub repo size PyPI version GitHub contributors GitHub stars GitHub forks GitHub licence

pylint_af is a Python package that allows you to check the Python code for compliance with PEP8.

Prerequisites

Before you begin, ensure you have installed the latest version of Python.

Installing pylint_af

To install pylint_af, follow these steps:

Linux and macOS:

pip3 install pylint-af

Windows:

pip install pylint-af

Using pylint_af

There are examples of how to use pylint_af.

To use the PyLinter class, import it as shown below:

>>> from pylint_af import PyLinter

Simple checking without additional options:

>>>  PyLinter().check()

--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

Simple checking with printed pylint options:

>>>  PyLinter(is_printed=True).check()
--ignore-imports=yes
***
--------------------------------------------------------------------
Your code has been rated at ...

Here *** is the list of inspected files.

Example of checking with ignored pylint statements.

>>>  PyLinter(is_printed=True, ignored_statements={'C0114'}).check()
--ignore-imports=yes
--disable=C0114
***
--------------------------------------------------------------------
Your code has been rated at ...

See pylint documentation to study the full list of pylint statements.

Example of checking with ignored paths.

>>> PyLinter(is_printed=True, ignored_paths={'example'}).check()
--ignore-imports=yes
--disable=C0114
***
--------------------------------------------------------------------
Your code has been rated at ...

Here *** is the list of all inspected files in the current work directory except files in 'example' folder.

Checking in other directory.

>>> PyLinter(root_directory='C:\\other').check()
--------------------------------------------------------------------
Your code has been rated at ...

Contributing to pylint_af

To contribute to pylint_af, follow these steps:

  1. Fork this repository.
  2. Create a branch: git checkout -b <branch_name>.
  3. Make your changes and commit them: git commit -m '<commit_message>'
  4. Push to the original branch: git push origin <project_name>/<location>
  5. Create the pull request.

Alternatively see the GitHub documentation on creating a pull request.

Contributors

Contact

If you want to contact me you can reach me at albertfarhutdinov@gmail.com.

License

This project uses the following license: MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pylint_af-1.0.3.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

pylint_af-1.0.3-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file pylint_af-1.0.3.tar.gz.

File metadata

  • Download URL: pylint_af-1.0.3.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.9

File hashes

Hashes for pylint_af-1.0.3.tar.gz
Algorithm Hash digest
SHA256 479a1444cc89d0e00d9020cfb4e50668a84cad4be4909bf5423a383902e9674f
MD5 c43a8fa2b33d56f6058797563fc28371
BLAKE2b-256 1b4c44f4a7e69b35dc94a9f4510c297ada89b80967dbe2dd1c7c8895da12ffcc

See more details on using hashes here.

File details

Details for the file pylint_af-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: pylint_af-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.9

File hashes

Hashes for pylint_af-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bb38428966325e763b59111cd1d46fa8958c012154ce9a0686efe6d3c7eeeb3d
MD5 fa8ed31ca904526988ada0e91c1b7b47
BLAKE2b-256 9861ee324524ec67d20b5254baaacf5827f2c1528e1ec3aca1175e303a016921

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page