Paradime Setup and Configuration
Easily set up pre-commit hooks using the app panel or 'paradime pre-commit' command. Run checks on all files or only staged changes in your dbt™️ project
Last updated
Easily set up pre-commit hooks using the app panel or 'paradime pre-commit' command. Run checks on all files or only staged changes in your dbt™️ project
Last updated
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.
There are two ways to set up pre-commit hooks:
Click on "pre-commit" in the app and agents panel
Run paradime pre-commit
in the terminal
If your repository doesn't have existing pre-commit configurations, Paradime offers standard recommended hooks to get you started.
These include:
General code quality checks
Example pre commit hooks template
You can run pre-commit checks in two ways:
All Files: Run checks on all files in your project
Staged Files: Run checks only on files staged for commit
To run checks, use the same command and select the option from the menu:
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
Start with Paradime's recommended hooks
Gradually customize configurations as needed
Run checks manually before committing large changes
Keep hook configurations in version control
Common Workflows
Manual Check Before Commit
Checking Specific Files
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.