Pre-commit hooks for linting .dot files

Overview

graphviz-dot-hooks

This is a pre-commit hook that uses graphviz python library to validate or render .dot files

Installation

Whether you use it as a cli or through pre-commit hook, this tool requires graphviz to be installed

Thus, if you are on Debian, that is:

sudo apt install graphviz

Rationale

Linters are cool but auto-generated documentation are even cooler

CLI Usage

Verify the syntax of .dot files:

check-dot your-dot-file1.dot your-dot-file2.dot

Render .dot files to .dot.png:

render-dot your-dot-file1.dot your-dot-file2.dot

Pre-commit integration

An example .pre-commit-config.yaml:

repos:
  - repo: https://github.com/bagerard/graphviz-dot-hooks
    rev: master
    hooks:
      - id: check-dot
      - id: render-dot
You might also like...

This is an example of a modern ROS2 development environment which utilises a devcontainer and integrated with VS Code debug, linting and testing.

Modern ROS2 Development Environment This is an example of a modern ROS2 (Robot Operating System v2) development environment (Python) which utilises a

Nov 1, 2022

These files are for bulk renaming files, bulk render blender files, convert xml to csv (labelimg), export blender camera data, export additional test files from frcnn tests.

FRCNN_Related_Code The file you see here are all used for preparing frcnn training and testing files. Software Version Windows 11 Blender 3.1 Python 3

Sep 23, 2022

Generate Frida hooks directly from JEB!

Generate Frida hooks directly from JEB!

JEB4Frida Generate Frida hooks directly from JEB! How to use Copy the Jeb4frida.py python script in JEB's scripts folder. Open the target APK in JEB G

Jan 7, 2023

Hassle-free git hooks for python projects

barb Hassle free git hooks for python projects Installation pip install barb Initializing a new project barb init Running this command both initialize

Jun 26, 2022

Git hooks for python, inspired by Husky.

huspy Git hooks for python. Huspy is inspired by Husky. The code is transfered from Husky's typscript to python. Usage pip install huspy # In a git r

Sep 6, 2022

Hooks your keys to only type the thing you selected.

Auto-Typer Hooks your keys to only type the thing you selected. Installation You need to download Tesseract OCR for your OS. Here is a guide. Warning:

Nov 8, 2022

A few scripts to draw art to you commit graph on github

A few scripts to draw art to you commit graph on github

GitHub art A few scripts to draw art to you commit graph on github. Running: The art to draw is defined in gendates.py, you likley want to edit it. Th

Jun 16, 2022

List of all dependencies affected by node-ipc malicious commit

List of all dependencies affected by node-ipc malicious commit

node-ipc-dependencies-list List of all dependencies affected by node-ipc malicious commit as of 17/3/2022 - 19/3/2022 (timestamp) Please improve upon

Oct 15, 2022

Armazena em SQLite3 o branch atual do projeto de cada pasta, cria comentário com emoji ao efetuar commit

Armazena em SQLite3 o branch atual do projeto de cada pasta, cria comentário com emoji ao efetuar commit

Faz commit com um comentário prefixado com emoji sequencial Features sequenciais com persistência em Sqlite3 Idéia e deploy por Robinson Enedino Visit

May 29, 2022
Releases(v0.1.0)
Owner
Bastien Gérard
Python lover, Dad, Principal Engineer @CluePoints
Bastien Gérard
Some pre-commit hooks for SI-Analytics repositories.

pre-commit-hooks Some pre-commit hooks for SI-Analytics repositories. Using pre-commit-hooks with pre-commit Add this to your .pre-commit-config.yaml

SI Analytics 2 Sep 7, 2022
a pre-commit hook for finding unused variables in terraform modules and removing them.

terraform-check-unused-variables a pre-commit hook for finding unused variables in terraform modules and removing them. Scan terraform module(s) for u

Mason 3 Sep 6, 2022
Poetry plugin for automatically installing pre-commit hook when it is added to a project

Poetry pre-commit Plugin A Poetry plugin for automatically installing git pre-commit hooks whenever pre-commit is specified as a dependency of the pro

Vytautas Strimaitis 8 Dec 14, 2022
The Norminette pre-commit hook.

Norminette Hook The Norminette pre-commit hook. Requirements Pre-commit must be installed on the system or in the repository virtual environment. Usag

Victor Wildner 13 Dec 13, 2022
Tool for checking entry points in the pre-commit config with ShellCheck.

pre-commit-config-shellcheck documentation pre-commit-config-shellcheck is a tool for checking entry points in the pre-commit config with ShellCheck.

Anadea 7 Sep 24, 2022
dot (aka Deepfake Offensive Toolkit) makes real-time, controllable deepfakes ready for virtual cameras injection.

Deepfake Offensive Toolkit dot (aka Deepfake Offensive Toolkit) makes real-time, controllable deepfakes ready for virtual cameras injection. dot is cr

sensity 2.9k Dec 31, 2022
Benchmarking for dot-accessible dict packages in python

dotdict-bench Benchmarking for dot-accessible dict packages in python More test ideas? Submit an issue! Package Information As of 2022-09-21 23:11:19.

null 2 Dec 7, 2022
The Data Observation Toolkit (DOT) can be used to monitor data in order to flag problems with data integrity and scenarios that might need attention.

The Data Observation Toolkit (DOT) The Data Observation Toolkit (DOT) can be used to monitor data in order to flag problems with data integrity and sc

DataKind 14 Dec 26, 2022
Linting support for python using the pylint library.

Pylint extension for Visual Studio Code A Visual Studio Code extension with support for the pylint linter. The extension ships with pylint=2.14.1. Not

Microsoft 36 Dec 4, 2022
Simple python app with typing, linting, formating and venv

create-python-app Simple python app with typing, linting, formating and venv This template has been created following this article : set-up-perfect-py

laurentvandelle 1 Aug 6, 2022