1
- exclude : ' build|.git/|.tox|dist|octue.egg-info'
1
+ exclude : " build|.git/|.tox|dist|octue.egg-info"
2
2
default_stages : [commit]
3
3
fail_fast : true
4
4
default_language_version :
5
- python : python3 # force all unspecified python hooks to run python3
5
+ python : python3 # force all unspecified python hooks to run python3
6
6
repos :
7
7
- repo : https://github.com/pre-commit/pre-commit-hooks
8
8
rev : v4.3.0
@@ -21,55 +21,60 @@ repos:
21
21
rev : 22.6.0
22
22
hooks :
23
23
- id : black
24
- args : [' --line-length', ' 120' ]
24
+ args : [" --line-length", " 120" ]
25
25
26
26
- repo : https://gitlab.com/pycqa/flake8
27
27
rev : 3.9.2
28
28
hooks :
29
29
- id : flake8
30
30
language_version : python3
31
31
additional_dependencies :
32
- - ' pep8-naming'
32
+ - " pep8-naming"
33
33
args :
34
34
- --ignore-names=setUp,tearDown,setUpClass,tearDownClass,asyncSetUp,asyncTearDown,setUpTestData,failureException,longMessage,maxDiff,startTestRun,stopTestRun
35
35
36
+ - repo : https://github.com/pre-commit/mirrors-prettier
37
+ rev : v2.7.1
38
+ hooks :
39
+ - id : prettier
40
+
36
41
- repo : https://github.com/pycqa/pydocstyle
37
42
rev : 6.1.1
38
43
hooks :
39
- - id : pydocstyle
44
+ - id : pydocstyle
40
45
41
46
- repo : https://github.com/thclark/pre-commit-sphinx
42
47
rev : 0.0.3
43
48
hooks :
44
49
- id : build-docs
45
50
language_version : python3
46
51
additional_dependencies :
47
- - ' poetry==1.2.0b2'
48
- - ' Sphinx>=4,<5'
49
- - ' sphinx-rtd-theme>=1,<2'
50
- - ' sphinx-tabs>=3,<4'
51
- - ' sphinx-toolbox==3.0.0'
52
- - ' git+https://github.com/octue/octue-sdk-python.git@main'
52
+ - " poetry==1.2.0b2"
53
+ - " Sphinx>=4,<5"
54
+ - " sphinx-rtd-theme>=1,<2"
55
+ - " sphinx-tabs>=3,<4"
56
+ - " sphinx-toolbox==3.0.0"
57
+ - " git+https://github.com/octue/octue-sdk-python.git@main"
53
58
54
59
- repo : https://github.com/windpioneers/pre-commit-hooks
55
60
rev : 0.0.5
56
61
hooks :
57
62
- id : check-branch-name
58
63
args :
59
- - ' ^main$'
60
- - ' ^development$'
61
- - ' ^devops/([a-z][a-z0-9]*)(-[a-z0-9]+)*$'
62
- - ' ^doc/([a-z][a-z0-9]*)(-[a-z0-9]+)*$'
63
- - ' ^feature/([a-z][a-z0-9]*)(-[a-z0-9]+)*$'
64
- - ' ^enhancement/([a-z][a-z0-9]*)(-[a-z0-9]+)*$'
65
- - ' ^fix/([a-z][a-z0-9]*)(-[a-z0-9]+)*$'
66
- - ' ^hotfix/([a-z][a-z0-9]*)(-[a-z0-9]+)*$'
67
- - ' ^review/([a-z][a-z0-9]*)(-[a-z0-9]+)*$'
68
- - ' ^refactor/([a-z][a-z0-9]*)(-[a-z0-9]+)*$'
69
- - ' ^test/([a-z][a-z0-9]*)(-[a-z0-9]+)*$'
70
- - ' ^style/([a-z][a-z0-9]*)(-[a-z0-9]+)*$'
71
- - ' ^deprecation/([a-z][a-z0-9]*)(-[a-z0-9]+)*$'
72
- - ' ^dependencies/([a-z][a-z0-9]*)(-[a-z0-9]+)*$'
64
+ - " ^main$"
65
+ - " ^development$"
66
+ - " ^devops/([a-z][a-z0-9]*)(-[a-z0-9]+)*$"
67
+ - " ^doc/([a-z][a-z0-9]*)(-[a-z0-9]+)*$"
68
+ - " ^feature/([a-z][a-z0-9]*)(-[a-z0-9]+)*$"
69
+ - " ^enhancement/([a-z][a-z0-9]*)(-[a-z0-9]+)*$"
70
+ - " ^fix/([a-z][a-z0-9]*)(-[a-z0-9]+)*$"
71
+ - " ^hotfix/([a-z][a-z0-9]*)(-[a-z0-9]+)*$"
72
+ - " ^review/([a-z][a-z0-9]*)(-[a-z0-9]+)*$"
73
+ - " ^refactor/([a-z][a-z0-9]*)(-[a-z0-9]+)*$"
74
+ - " ^test/([a-z][a-z0-9]*)(-[a-z0-9]+)*$"
75
+ - " ^style/([a-z][a-z0-9]*)(-[a-z0-9]+)*$"
76
+ - " ^deprecation/([a-z][a-z0-9]*)(-[a-z0-9]+)*$"
77
+ - " ^dependencies/([a-z][a-z0-9]*)(-[a-z0-9]+)*$"
73
78
74
79
- repo : https://github.com/octue/conventional-commits
75
80
rev : 0.8.1
0 commit comments