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 -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
$ python3 -m selective_linter -u
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
Built Distribution
File details
Details for the file selective_linter-0.2.0.tar.gz
.
File metadata
- Download URL: selective_linter-0.2.0.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.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7600ff7727c8d25a497ff4ab37b3cb0570e686728e56b13b72cbb77a83574e70 |
|
MD5 | 1a126d908dc9c8fa813cf3838a333c3a |
|
BLAKE2b-256 | 00547247470a2d05219938285a1b1c45c322d3472d20f023346d5146bcb289db |
File details
Details for the file selective_linter-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: selective_linter-0.2.0-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.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 484bedd8135ef2ed871e5a2c9c2b2d1c131834e470523c1be4002f80f073f68f |
|
MD5 | e2309a2febc227707e15070b8dde88f4 |
|
BLAKE2b-256 | 8023cd0b0477d02bfaee716321a7a19085eda3d8b59dae60c06cbb59b881310b |