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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for selective_linter-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f242b0a0eca46f68d7c2cf725c70fb4ef11281d3387bbac85000b3135a7e36e6 |
|
MD5 | af2861160209bb3f291b885b63d57bea |
|
BLAKE2b-256 | 1de45eebefabc7364f7e1a64df6265fbf6ad6e199bd0a5a628553b64154f357d |