Skip to content

Commit 9b33f8f

Browse files
author
Alan Christie
committed
docs: Improved README
1 parent 3d3e2bd commit 9b33f8f

File tree

2 files changed

+42
-5
lines changed

2 files changed

+42
-5
lines changed

.pre-commit-config.yaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repos:
88

99
# Conventional Commit message checker (commitizen)
1010
- repo: https://github.com/commitizen-tools/commitizen
11-
rev: v3.21.3
11+
rev: v3.29.1
1212
hooks:
1313
- id: commitizen
1414
stages:
@@ -19,7 +19,7 @@ repos:
1919

2020
# Standard pre-commit rules
2121
- repo: https://github.com/pre-commit/pre-commit-hooks
22-
rev: v4.1.0
22+
rev: v5.0.0
2323
hooks:
2424
- id: check-case-conflict
2525
- id: check-docstring-first
@@ -32,17 +32,26 @@ repos:
3232
- id: trailing-whitespace
3333
args:
3434
- --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
3544
# Black (uncompromising) Python code formatter
3645
- repo: https://github.com/psf/black
37-
rev: 24.3.0
46+
rev: 24.10.0
3847
hooks:
3948
- id: black
4049
args:
4150
- --target-version
4251
- py312
4352
# MyPy
4453
- repo: https://github.com/pre-commit/mirrors-mypy
45-
rev: v1.9.0
54+
rev: v1.11.2
4655
hooks:
4756
- id: mypy
4857
files: ^workflow
@@ -56,7 +65,7 @@ repos:
5665
- id: yamllint
5766
# Pylint
5867
- repo: https://github.com/pycqa/pylint
59-
rev: v3.1.0
68+
rev: v3.3.1
6069
hooks:
6170
- id: pylint
6271
name: pylint

README.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,34 @@ formed from the definition YAML file) with:
3131

3232
.. _PyPI: https://pypi.org/project/im-data-manager-workflow-decoder
3333

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+
3462
Get in touch
3563
============
3664

0 commit comments

Comments
 (0)