Skip to content

Commit 345d823

Browse files
committed
feat: Adding pre-commit hooks (to stop running black time to time)
1 parent d7738e9 commit 345d823

12 files changed

Lines changed: 12 additions & 12 deletions

.pre-commit-config.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v2.3.0
4+
hooks:
5+
- id: check-yaml
6+
- id: end-of-file-fixer
7+
- id: trailing-whitespace
8+
- repo: https://github.com/psf/black
9+
rev: 22.10.0
10+
hooks:
11+
- id: black

AUTHORS.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,3 @@ This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypack
2222

2323
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
2424
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
25-

CONTRIBUTING.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,3 @@ Tips
139139
To run a subset of tests::
140140

141141
$ py.test tests.test_statemachine
142-

LICENSE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
88
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
99

1010
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11-

docs/integrations.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,3 @@ Supported module names for auto-discovery:
2020
```{note}
2121
Your Django Model should include the [](mixins.md#machinemixin).
2222
```
23-

docs/releases/0.5.0.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@
55
- Custom exceptions.
66
- Duplicated definition of ``on_execute`` callback is not allowed.
77
- Fix bug on ``StateMachine.on_<transition.identifier>`` being called with extra ``self`` param.
8-

docs/releases/0.6.0.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@
55

66
- Auto-discovering `statemachine`/`statemachines` under a Django project when
77
they are requested using the mixin/registry feature.
8-

docs/releases/0.6.1.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44

55

66
- Fix deploy issues.
7-

docs/releases/0.6.2.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,3 @@
44

55

66
- Fix README.
7-
8-

docs/releases/0.7.0.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44

55

66
- New event callbacks: `on_enter_<state>` and `on_exit_<state>`.
7-

0 commit comments

Comments
 (0)