File tree Expand file tree Collapse file tree 2 files changed +42
-5
lines changed Expand file tree Collapse file tree 2 files changed +42
-5
lines changed Original file line number Diff line number Diff line change 8
8
9
9
# Conventional Commit message checker (commitizen)
10
10
- repo : https://github.com/commitizen-tools/commitizen
11
- rev : v3.21.3
11
+ rev : v3.29.1
12
12
hooks :
13
13
- id : commitizen
14
14
stages :
19
19
20
20
# Standard pre-commit rules
21
21
- repo : https://github.com/pre-commit/pre-commit-hooks
22
- rev : v4.1 .0
22
+ rev : v5.0 .0
23
23
hooks :
24
24
- id : check-case-conflict
25
25
- id : check-docstring-first
@@ -32,17 +32,26 @@ repos:
32
32
- id : trailing-whitespace
33
33
args :
34
34
- --markdown-linebreak-ext=md
35
+ # isort (in black-compatibility mode)
36
+ - repo : https://github.com/pycqa/isort
37
+ rev : 5.13.2
38
+ hooks :
39
+ - id : isort
40
+ args :
41
+ - --profile
42
+ - black
43
+ - --filter-files
35
44
# Black (uncompromising) Python code formatter
36
45
- repo : https://github.com/psf/black
37
- rev : 24.3 .0
46
+ rev : 24.10 .0
38
47
hooks :
39
48
- id : black
40
49
args :
41
50
- --target-version
42
51
- py312
43
52
# MyPy
44
53
- repo : https://github.com/pre-commit/mirrors-mypy
45
- rev : v1.9.0
54
+ rev : v1.11.2
46
55
hooks :
47
56
- id : mypy
48
57
files : ^workflow
56
65
- id : yamllint
57
66
# Pylint
58
67
- repo : https://github.com/pycqa/pylint
59
- rev : v3.1.0
68
+ rev : v3.3.1
60
69
hooks :
61
70
- id : pylint
62
71
name : pylint
Original file line number Diff line number Diff line change @@ -31,6 +31,34 @@ formed from the definition YAML file) with:
31
31
32
32
.. _PyPI : https://pypi.org/project/im-data-manager-workflow-decoder
33
33
34
+ Contributing
35
+ ============
36
+
37
+ The project's written in Python and uses `Poetry `_ for dependency and package
38
+ management. We also use `pre-commit `_ to manage our pre-commit hooks, which
39
+ rely on `black `_, `mypy `_, `pylint `_, amongst others.
40
+
41
+ Create your enverionewmnt::
42
+
43
+ poetry shell
44
+ poetry install --with dev
45
+ pre-commit install -t commit-msg -t pre-commit
46
+
47
+ And then start by running the pre-commit hooks to ensure you're stating with a
48
+ _clean_ project::
49
+
50
+ pre-commit run --all
51
+
52
+ And then running the tests::
53
+
54
+ pytest
55
+
56
+ .. _Poetry : https://python-poetry.org
57
+ .. _pre-commit : https://pre-commit.com
58
+ .. _black : https://github.com/psf/black
59
+ .. _mypy : https://github.com/python/mypy
60
+ .. _pylint : https://pypi.org/project/pylint/
61
+
34
62
Get in touch
35
63
============
36
64
You can’t perform that action at this time.
0 commit comments