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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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