Skip to main content

Overview

Paradime comes pre-installed with pre-commits, making it easy to get started with code quality checks. You only need to configure the hooks you want to use, and Paradime handles the rest.

Getting Started

To get started, Run paradime pre-commit in the terminal

Initial Setup

If your repository doesn’t have existing pre-commit configurations, Paradime offers standard recommended hooks to get you started. These include: Example pre commit hooks template
.pre-commit-config.yaml

Running Pre-commit

You can run pre-commit checks in two ways:
  1. All Files: Run checks on all files in your project
  2. Staged Files: Run checks only on files staged for commit
To run checks, use the same command and select the option from the menu:

First-Time Installation

Note: When running pre-commits for the first time, Paradime will install all necessary hooks. This initial setup might take a minute to complete as it downloads and configures the required components.
Automatic Pre-commit Checks To enable automatic pre-commit checks when creating commits via terminal, run:
Important: This is recommended only if you use git in the terminal to create commits. For commits made through Git Lite or Git Advanced panel, hook errors/warnings are not currently displayed.
To disable automatic pre-commit checks when creating commits via terminal, run:
Best Practices
  1. Start with Paradime’s recommended hooks
  2. Gradually customize configurations as needed
  3. Run checks manually before committing large changes
  4. Keep hook configurations in version control
Common Workflows
  1. Manual Check Before Commit
  1. Checking Specific Files
  1. Updating Hook Configurations
  • Modify .pre-commit-config.yaml
  • Auto-update the config to the latest repos’ versions by executing pre-commit autoupdate
  • Run paradime pre-commit to apply changes
Remember: Paradime’s pre-commit integration makes it easy to maintain code quality without complex setup or configuration steps.