mirror of
https://github.com/verilator/verilator.git
synced 2024-12-28 02:07:34 +00:00
parent
c48d80592e
commit
685ea0bc65
8
.pre-commit-hooks.yaml
Normal file
8
.pre-commit-hooks.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
- id: verilator
|
||||
name: verilator-lint
|
||||
description: Runs verilator Docker image to lint (System) Verilog designs
|
||||
args: [--lint-only]
|
||||
language: docker_image
|
||||
entry: verilator/verilator:latest
|
||||
types_or: [verilog, system-verilog]
|
@ -1,6 +1,8 @@
|
||||
.. Copyright 2003-2024 by Wilson Snyder.
|
||||
.. SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
|
||||
|
||||
.. _Verilator Build Docker Container
|
||||
|
||||
Verilator Build Docker Container
|
||||
================================
|
||||
|
||||
|
@ -26,6 +26,24 @@ package:
|
||||
For other distributions, refer to `Repology Verilator Distro Packages
|
||||
<https://repology.org/project/verilator>`__.
|
||||
|
||||
.. _pre-commit Quick Install:
|
||||
|
||||
pre-commit Quick Install
|
||||
=============================
|
||||
|
||||
You can use verliator's `pre-commit <https://pre-commit.com/>`_ hook to lint your code before committing it.
|
||||
It encapsulates the :ref:`Verilator Build Docker Container`_, so you need docker on your system to use it.
|
||||
The verilator image will be downloaded automatically.
|
||||
To use the hook, add the following entry to your :code:`.pre-commit-config.yaml`:
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
repos:
|
||||
- repo: https://github.com/verilator/verilator
|
||||
rev: v5.026 # or later
|
||||
hooks:
|
||||
- id: verilator
|
||||
|
||||
.. _Git Install:
|
||||
|
||||
Git Quick Install
|
||||
|
Loading…
Reference in New Issue
Block a user