Skip to content

Commit

Permalink
Add setuptools-odoo-makedefault pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Jan 16, 2020
1 parent 21863ee commit 053eba2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-hooks.yaml
@@ -0,0 +1,7 @@
- id: setuptools-odoo-make-default
name: Generate default setup.py for an addons directory
always_run: true
entry: setuptools-odoo-make-default
args: ["--addons-dir=.", "--clean"]
language: python
pass_filenames: false
11 changes: 11 additions & 0 deletions README.rst
Expand Up @@ -357,6 +357,17 @@ Available options::
are no installable addons.
--commit Git commit changes, if any.

``setuptools-odoo-make-default`` is also available as a `pre-commit
<https://pre-commit.com/>`_ hook. To use it, you can add such an entry
in your `.pre-commit-config.yaml`:

.. code:: yaml
repos:
- repo: https://github.com/acsone/setuptools-odoo
rev: 2.5.2
hooks:
- id: setuptools-odoo-make-default
Versioning
~~~~~~~~~~
Expand Down

0 comments on commit 053eba2

Please sign in to comment.