Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

cognitedata/python-pre-commit-hooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cognite logo

Pre-commit hooks for Python

This repository contains pre-commit hook definitions to be used with the pre-commit library.

Hooks

Usage

These pre-commit hooks are configured to be used in a pipenv project. In order to use these pre-commit hooks in your project follow these steps

Install the pre-commit library in your project by running this command

$ pipenv install pre-commit

Add a .pre-commit-config.yaml file to your project root with the following content

repos:
- repo: https://github.com/cognitedata/python-pre-commit-hooks
  rev: <latest-commit-ref>
  hooks:
  - id: isort
  - id: black

Install the pre-commit hooks by running this command

$ pre-commit install

About

Cognite pre-commit hooks for python projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages