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

You can also run the script manually to see an optional more verbose output

$ selective_linter -u

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.2.1.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

selective_linter-0.2.1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: selective_linter-0.2.1.tar.gz
  • Upload date:
  • Size: 5.8 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.2.1.tar.gz
Algorithm Hash digest
SHA256 708b98d871c54f4bfbab597aaaf824ed3c25f66af7738e56e9d31b14d7d7c888
MD5 eefa4cf13b1f4189aaaaa087dd578054
BLAKE2b-256 43f1046a2d1e81e6cd20c846f7fd50552a0f0f61b6368dc6cb3171289f804660

See more details on using hashes here.

File details

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

File metadata

  • Download URL: selective_linter-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 8.7 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1f86bf811a05312bad5cd4d7bdef9d86ba01f513c2df06e7f49b407dc1c2feb7
MD5 18afb10b67d3a0e970da9c6f75de2241
BLAKE2b-256 6138d7217f055cf667ab7b444c4282bd56d561a4eef2adc3241deed4e6c3cb6c

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