Skip to main content

Autohooks plugin for include sorting via isort

Project description

Greenbone Logo

autohooks-plugin-isort

PyPI release

An autohooks plugin for Python code formatting via isort.

Installation

Install using pip

You can install the latest stable release of autohooks-plugin-isort from the Python Package Index using pip:

pip install autohooks-plugin-isort

Note the pip refers to the Python 3 package manager. In a environment where Python 2 is also available the correct command may be pip3.

Install using pipenv

It is highly encouraged to use pipenv for maintaining your project's dependencies. Normally autohooks-plugin-isort is installed as a development dependency.

pipenv install --dev autohooks-plugin-isort

Usage

To activate the isort autohooks plugin please add the following setting to your pyproject.toml file.

[tool.autohooks]
pre-commit = ["autohooks.plugins.isort"]

By default, autohooks plugin isort checks all files with a .py ending. If only the imports of files in a sub-directory or files with different endings should be sorted, just add the following setting:

[tool.autohooks]
pre-commit = ["autohooks.plugins.isort"]

[tool.autohooks.plugins.isort]
include = ['foo/*.py', '*.foo']

Maintainer

This project is maintained by Greenbone Networks GmbH.

Contributing

Your contributions are highly appreciated. Please create a pull request on GitHub. Bigger changes need to be discussed with the development team via the issues section at GitHub first.

License

Copyright (C) 2019 Greenbone Networks GmbH

Licensed under the GNU General Public License v3.0 or later.

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

autohooks-plugin-isort-1.0.0.tar.gz (17.4 kB view details)

Uploaded Source

Built Distribution

autohooks_plugin_isort-1.0.0-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file autohooks-plugin-isort-1.0.0.tar.gz.

File metadata

  • Download URL: autohooks-plugin-isort-1.0.0.tar.gz
  • Upload date:
  • Size: 17.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3

File hashes

Hashes for autohooks-plugin-isort-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3308b24fa60562c3193c6bc443051e213986216155b37d0550443db337f0f90b
MD5 25f76bc2a0bff7dd241e715fc5bae16b
BLAKE2b-256 1ef4069c651b13d9f5af73cfebfffc43c0826d095de84ac8f900e94c4e0eacb2

See more details on using hashes here.

File details

Details for the file autohooks_plugin_isort-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: autohooks_plugin_isort-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3

File hashes

Hashes for autohooks_plugin_isort-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a43442277aa2c1f4c9d6ac57ccbb87cc2508b1f29ab2e621a2f0b599773c250f
MD5 c81f29ac9c25ee7f19cc91e54fcbb202
BLAKE2b-256 d0630cc4b41a9eb85c8b3b011b25b1eae794ce66f2cacbec2c9f0b57c9bd7350

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