Skip to main content

A script to be used as a pre-commit git hook for projects written in Swift

Project description

Selective (Swift) Linter

This is a package to be used as a pre-commit git hook to lint changes in .swift files using Swiftlint Installed via Homebrew.

Installation and Dependencies

To install swiftlint from the terminal use Homebrew:

$ brew install swiftlint

To install this Python3 package

$ pip3 install selective_linter

To install the git hook to a repository, navigate to the root of that repository and run

$ python3 -m selective_linter --install

This also adds the .lint_cache file to your .gitignore.

To deactivate the script run

$ git config hooks.skipswitflint true

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

selective_linter-0.1.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

selective_linter-0.1.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file selective_linter-0.1.0.tar.gz.

File metadata

  • Download URL: selective_linter-0.1.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.3

File hashes

Hashes for selective_linter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 304932986c6b6cedffd23559a71671d54e846af75b9db8934cd8f27174c6c73d
MD5 b4d7e5758249d5350e191a35338095a3
BLAKE2b-256 750198cebaed4e26963a085baaf8b7eaedee528630f0bd0efd29b74a002233e6

See more details on using hashes here.

File details

Details for the file selective_linter-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: selective_linter-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.3

File hashes

Hashes for selective_linter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b79e207afea62877fe73470c973b398f52d201c17c387ca24a57b4af0634b0a3
MD5 de894137565f2272632960d827e387b4
BLAKE2b-256 89708cf59b024397f5bd055fe6a5036ffc9637aea2fe98a752906c318db1fe4f

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