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

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

Uploaded Source

Built Distribution

selective_linter-0.0.2-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: selective_linter-0.0.2.tar.gz
  • Upload date:
  • Size: 4.6 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.0.2.tar.gz
Algorithm Hash digest
SHA256 e708dea4ffc00fa9b071795670fe752b1c3fa2ebfd64ddfe739d1eb5dafd2898
MD5 a9a94ebd9ebeec925ff7ee2d9c38ef43
BLAKE2b-256 1d423744817d0e91a4a0a04e68dae925b5a77b984dd0a8b596f4aa520e424cef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: selective_linter-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.2 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.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 546ac7e793fbf10d7c42fed6fd2c84bbda62ca0bcc8fa51cdf1c4bff0334d25a
MD5 64941431643e041b5b8529d693dff21e
BLAKE2b-256 f4ca575bc0a6ae6a76e799310fbaba7296ade26a31037540bec6a9350b010899

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