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

$ selective_linter -i

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

To deactivate the script run

$ git config hooks.skipswiftlint 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.3.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

selective_linter-0.3.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: selective_linter-0.3.0.tar.gz
  • Upload date:
  • Size: 5.2 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.4

File hashes

Hashes for selective_linter-0.3.0.tar.gz
Algorithm Hash digest
SHA256 7e2e4c0c017b29d029db441a76b2e1ade366428a8b05b1f1c8bd692f9def979d
MD5 66739fa87ccc23bb809037e0e0f4952f
BLAKE2b-256 4e015a3de26624cdba6371e782f78060baaf9408813fa46bd3409d29411410f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: selective_linter-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 8.1 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.4

File hashes

Hashes for selective_linter-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f242b0a0eca46f68d7c2cf725c70fb4ef11281d3387bbac85000b3135a7e36e6
MD5 af2861160209bb3f291b885b63d57bea
BLAKE2b-256 1de45eebefabc7364f7e1a64df6265fbf6ad6e199bd0a5a628553b64154f357d

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