python-isort plugin is designed to be run in combination with the
By default, it will run recursively from the root of the repository being linted and will exit with an error if the code is not properly sorted.
Optional. Version of
isort to use. Defaults to latest version of
Optional. List of paths to sort, relative to your project root. Defaults to
isort configuration options to pass to the
isort CLI. Defaults to
Optional. Paths to python requirements files to install before running isort. If multiple requirements files are provided, they should be separated by a space. If custom package installation is required, dependencies should be installed in a separate step before using this action.
It is important that the project's dependencies be installed before running isort so that third-party libraries are properly sorted.
Output of the
name: Run isort on: - push jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 with: python-version: 3.8 - uses: jamescurtin/isort-action@master with: requirementsFiles: "requirements.txt requirements-test.txt"