/pre-commit.novaextension

Primary LanguageJavaScriptBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

pre-commit provides integration with pre-commit, for automatically linting / formatting your code.

This extension is not officially affiliated with or endorsed by the pre-commit project itself.

Requirements

pre-commit must be installed on your system:

pip install pre-commit

Usage

To run pre-commit manually on one or more files:

  • Select the Editor → pre-commit menu item; or
  • Open the command palette and type pre-commit

Configuration

To configure global preferences, open Extensions → Extension Library... then select pre-commit's Preferences tab.

You can also configure preferences on a per-project basis in Project → Project Settings...

Pre-commit can run automatically on save (for files with pre-commit config enabled). This is disabled by default, but can be enabled in preferences. If enabled, pre-commit will only run on files in a repo with a pre-commit config.