Skip to content

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

License

Notifications You must be signed in to change notification settings

AlbertFarkhutdinov/pylint_af

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages