pre-commit-crocodile 2.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. pre_commit_crocodile-2.0.0/.coveragerc +7 -0
  2. pre_commit_crocodile-2.0.0/.cz.yaml +188 -0
  3. pre_commit_crocodile-2.0.0/.gitattributes +2 -0
  4. pre_commit_crocodile-2.0.0/.gitignore +30 -0
  5. pre_commit_crocodile-2.0.0/.gitlab-ci.yml +686 -0
  6. pre_commit_crocodile-2.0.0/.markdownlint.json +8 -0
  7. pre_commit_crocodile-2.0.0/.pre-commit-config.yaml +102 -0
  8. pre_commit_crocodile-2.0.0/.pre-commit-hooks.yaml +10 -0
  9. pre_commit_crocodile-2.0.0/.style.yapf +45 -0
  10. pre_commit_crocodile-2.0.0/.vscode/extensions.json +19 -0
  11. pre_commit_crocodile-2.0.0/.vscode/settings.json +38 -0
  12. pre_commit_crocodile-2.0.0/CHANGELOG.md +217 -0
  13. pre_commit_crocodile-2.0.0/LICENSE +201 -0
  14. pre_commit_crocodile-2.0.0/PKG-INFO +212 -0
  15. pre_commit_crocodile-2.0.0/README.md +180 -0
  16. pre_commit_crocodile-2.0.0/config/cliff.toml +100 -0
  17. pre_commit_crocodile-2.0.0/containers/codestyle/Dockerfile +18 -0
  18. pre_commit_crocodile-2.0.0/containers/commits/Dockerfile +12 -0
  19. pre_commit_crocodile-2.0.0/containers/deploy/Dockerfile +16 -0
  20. pre_commit_crocodile-2.0.0/containers/pages/Dockerfile +12 -0
  21. pre_commit_crocodile-2.0.0/containers/preview/Dockerfile +20 -0
  22. pre_commit_crocodile-2.0.0/containers/test-coverage-linux/Dockerfile +19 -0
  23. pre_commit_crocodile-2.0.0/containers/test-coverage-windows/Dockerfile +22 -0
  24. pre_commit_crocodile-2.0.0/containers/test-linux/Dockerfile +13 -0
  25. pre_commit_crocodile-2.0.0/docs/commitizen.md +15 -0
  26. pre_commit_crocodile-2.0.0/docs/commits.md +23 -0
  27. pre_commit_crocodile-2.0.0/docs/components.md +39 -0
  28. pre_commit_crocodile-2.0.0/docs/hooks.md +67 -0
  29. pre_commit_crocodile-2.0.0/docs/pre-commit.md +15 -0
  30. pre_commit_crocodile-2.0.0/docs/prepare.sh +85 -0
  31. pre_commit_crocodile-2.0.0/docs/preview.py +175 -0
  32. pre_commit_crocodile-2.0.0/docs/preview.svg +414 -0
  33. pre_commit_crocodile-2.0.0/docs/settings.md +38 -0
  34. pre_commit_crocodile-2.0.0/docs/template.svg +54 -0
  35. pre_commit_crocodile-2.0.0/mkdocs.yml +119 -0
  36. pre_commit_crocodile-2.0.0/mypy.ini +17 -0
  37. pre_commit_crocodile-2.0.0/pre_commit_crocodile.egg-info/PKG-INFO +212 -0
  38. pre_commit_crocodile-2.0.0/pre_commit_crocodile.egg-info/SOURCES.txt +84 -0
  39. pre_commit_crocodile-2.0.0/pre_commit_crocodile.egg-info/dependency_links.txt +1 -0
  40. pre_commit_crocodile-2.0.0/pre_commit_crocodile.egg-info/entry_points.txt +3 -0
  41. pre_commit_crocodile-2.0.0/pre_commit_crocodile.egg-info/requires.txt +3 -0
  42. pre_commit_crocodile-2.0.0/pre_commit_crocodile.egg-info/top_level.txt +1 -0
  43. pre_commit_crocodile-2.0.0/requirements/build.txt +4 -0
  44. pre_commit_crocodile-2.0.0/requirements/commits.txt +2 -0
  45. pre_commit_crocodile-2.0.0/requirements/coverage.txt +1 -0
  46. pre_commit_crocodile-2.0.0/requirements/deploy.txt +2 -0
  47. pre_commit_crocodile-2.0.0/requirements/docs.txt +2 -0
  48. pre_commit_crocodile-2.0.0/requirements/pages.txt +3 -0
  49. pre_commit_crocodile-2.0.0/requirements/quality.txt +6 -0
  50. pre_commit_crocodile-2.0.0/requirements/runtime.txt +3 -0
  51. pre_commit_crocodile-2.0.0/requirements/tests.txt +1 -0
  52. pre_commit_crocodile-2.0.0/setup.cfg +4 -0
  53. pre_commit_crocodile-2.0.0/setup.py +109 -0
  54. pre_commit_crocodile-2.0.0/sonar-project.properties +15 -0
  55. pre_commit_crocodile-2.0.0/src/__init__.py +5 -0
  56. pre_commit_crocodile-2.0.0/src/__main__.py +5 -0
  57. pre_commit_crocodile-2.0.0/src/assets/.cz.yaml +188 -0
  58. pre_commit_crocodile-2.0.0/src/assets/.pre-commit-config.yaml +68 -0
  59. pre_commit_crocodile-2.0.0/src/assets/__init__.py +0 -0
  60. pre_commit_crocodile-2.0.0/src/cli/__init__.py +0 -0
  61. pre_commit_crocodile-2.0.0/src/cli/entrypoint.py +414 -0
  62. pre_commit_crocodile-2.0.0/src/cli/main.py +269 -0
  63. pre_commit_crocodile-2.0.0/src/hooks/__init__.py +0 -0
  64. pre_commit_crocodile-2.0.0/src/hooks/configurations.py +322 -0
  65. pre_commit_crocodile-2.0.0/src/hooks/prepare_commit_message.py +258 -0
  66. pre_commit_crocodile-2.0.0/src/package/__init__.py +0 -0
  67. pre_commit_crocodile-2.0.0/src/package/bundle.py +34 -0
  68. pre_commit_crocodile-2.0.0/src/package/settings.py +148 -0
  69. pre_commit_crocodile-2.0.0/src/package/updates.py +228 -0
  70. pre_commit_crocodile-2.0.0/src/package/version.py +80 -0
  71. pre_commit_crocodile-2.0.0/src/prints/__init__.py +0 -0
  72. pre_commit_crocodile-2.0.0/src/prints/boxes.py +82 -0
  73. pre_commit_crocodile-2.0.0/src/prints/colors.py +85 -0
  74. pre_commit_crocodile-2.0.0/src/system/__init__.py +0 -0
  75. pre_commit_crocodile-2.0.0/src/system/commands.py +90 -0
  76. pre_commit_crocodile-2.0.0/src/system/platform.py +74 -0
  77. pre_commit_crocodile-2.0.0/src/types/__init__.py +0 -0
  78. pre_commit_crocodile-2.0.0/src/types/environments.py +92 -0
  79. pre_commit_crocodile-2.0.0/src/types/strings.py +152 -0
  80. pre_commit_crocodile-2.0.0/templates/commits.yml +84 -0
  81. pre_commit_crocodile-2.0.0/tests/arguments/test.sh +13 -0
  82. pre_commit_crocodile-2.0.0/tests/colors/test.sh +22 -0
  83. pre_commit_crocodile-2.0.0/tests/macos/test.sh +22 -0
  84. pre_commit_crocodile-2.0.0/tests/settings/test.sh +22 -0
  85. pre_commit_crocodile-2.0.0/tests/versions/test.sh +32 -0
  86. pre_commit_crocodile-2.0.0/tests/windows/test.sh +30 -0
@@ -0,0 +1,7 @@
1
+ # .coveragerc to control coverage.py
2
+
3
+ [paths]
4
+ source =
5
+ src/
6
+ */src
7
+ *\src
@@ -0,0 +1,188 @@
1
+ ---
2
+ commitizen:
3
+
4
+ # commitizen configurations
5
+ always_signoff: true
6
+ bump_message: 'docs(changelog): regenerate release tag changes history'
7
+ changelog_incremental: false
8
+ major_version_zero: true
9
+ retry_after_failure: false
10
+ tag_format: $version
11
+ update_changelog_on_bump: false
12
+ use_shortcuts: true
13
+ version_provider: scm
14
+ version_scheme: pep440
15
+
16
+ # commitizen rules
17
+ # - Based upon 'cz_conventional_commits' original rules for Conventional Commits
18
+ # - Improved with 'Issue:' detailed messages examples and 'Signed-off-by' footer
19
+ # - Commit scope turned mandatory by the rules
20
+ # - Commit scope refactored with support for spaces and comma
21
+ # - Breaking change reimplemented with the standard '!' scope suffix
22
+ # - Questions simplified for professional usage
23
+ # - Type 'security' implemented for security related commits
24
+ # - Accept temporary commits starting with 'wip' or 'WIP'
25
+ name: cz_customize
26
+ customize:
27
+ example: |-
28
+ feat(scope): implement feature ABC in sources
29
+
30
+ Issue: #123
31
+ Details: Details about the changes
32
+ ---
33
+
34
+ Signed-off-by: Firstname LASTNAME <firstname.lastname@example.com>
35
+ info: |
36
+
37
+ ## Conventional Commits - Customized specification
38
+
39
+ The commit contains the following structural elements, to communicate
40
+ intent to the consumers of your library:
41
+
42
+ ### Commit type
43
+
44
+ fix: a commit of the type fix patches a bug in your codebase
45
+ (this correlates with PATCH in semantic versioning).
46
+
47
+ feat: a commit of the type feat introduces a new feature to the codebase
48
+ (this correlates with MINOR in semantic versioning).
49
+
50
+ Others: commit types other than fix: and feat: are allowed,
51
+ like chore:, docs:, style:, refactor:, perf:, test:, and others.
52
+
53
+ We also recommend improvement for commits that improve a current
54
+ implementation without adding a new feature or fixing a bug.
55
+
56
+ For temporary commits, start with 'wip' or 'WIP' to ignore commit validation.
57
+
58
+ ### Commit scope
59
+
60
+ A scope has to be provided to a commit’s type, to provide additional contextual information,
61
+ such as the changed file, the containing folder or a globally modified feature,
62
+ and is contained within parenthesis, e.g., feat(parser): add ability to parse arrays.
63
+
64
+ ### Commit breaking changes
65
+
66
+ BREAKING CHANGE: A commit with '!' before the ':' or that has the text BREAKING CHANGE:
67
+ at the beginning of its optional body or footer section introduces a breaking API change
68
+ (correlating with MAJOR in semantic versioning).
69
+ A BREAKING CHANGE can be part of commits of any type.
70
+
71
+ ### Commit syntax
72
+
73
+ Notice these types are not mandated by the conventional commits specification,
74
+ and have no implicit effect in semantic versioning (unless they include a BREAKING CHANGE).
75
+
76
+ <type>(mandatory scope)[optional !]: <description>
77
+
78
+ [optional body]
79
+
80
+ [optional footer]
81
+ message_template: "\
82
+ {{prefix}}\
83
+ ({{scope}})\
84
+ {% if is_breaking_change %}!{% endif %}\
85
+ : \
86
+ {{subject}}\
87
+ {% if body or footer %}\n{% endif %}\
88
+ {% if body %}\n{{body}}{% endif %}\
89
+ {% if footer %}\n{{footer}}{% endif %}\
90
+ {% if body or footer %}\n---{% endif %}\
91
+ "
92
+ questions:
93
+ - type: list
94
+ name: prefix
95
+ message: 'Type of the change :'
96
+ choices:
97
+ - value: fix
98
+ name: 'fix: Bug or issues fixes'
99
+ key: x
100
+ - value: feat
101
+ name: 'feat: New or extended feature'
102
+ key: f
103
+ - value: chore
104
+ name: 'chore: Changes to non-production code'
105
+ key: h
106
+ - value: docs
107
+ name: 'docs: Documentation only changes'
108
+ key: d
109
+ - value: style
110
+ name: 'style: Cosmetic changes only (white-space, formatting, etc)'
111
+ key: s
112
+ - value: refactor
113
+ name: 'refactor: Code changes that neither fix a bug nor add a feature'
114
+ key: r
115
+ - value: perf
116
+ name: 'perf: Code change that improve performance'
117
+ key: p
118
+ - value: security
119
+ name: 'security: Changes that improve sources without any impact'
120
+ key: e
121
+ - value: test
122
+ name: 'test: Adding missing or correcting existing tests'
123
+ key: t
124
+ - value: build
125
+ name: 'build: Changes to the build system or dependencies _(example: makefile, pip, docker)'
126
+ key: b
127
+ - value: ci
128
+ name: 'ci: Changes to CI configuration files and scripts (example: gitlab-ci)'
129
+ key: c
130
+ - value: improvement
131
+ name: 'improvement: Changes that improve sources without any impact'
132
+ key: i
133
+ - type: input
134
+ name: scope
135
+ message: 'Scope of the change :'
136
+ filter: 'lambda text: commitizen.cz.utils.required_validator(text, msg="! Error: Scope is required")'
137
+ default: ''
138
+ - type: input
139
+ name: subject
140
+ message: 'Title of the commit (starting in lower case and without period) :'
141
+ filter: 'lambda text: commitizen.cz.utils.required_validator(text.strip(".").strip(), msg="! Error: Title is required")'
142
+ default: ''
143
+ - type: input
144
+ name: body
145
+ message: 'Additional contextual message (Empty to skip) :'
146
+ default: 'Issue: #...'
147
+ filter: 'commitizen.cz.utils.multiple_line_breaker'
148
+ - type: input
149
+ name: footer
150
+ message: 'Footer information and references (Empty to skip) :'
151
+ default: ''
152
+ - type: confirm
153
+ message: 'BREAKING CHANGE to warn ?'
154
+ name: is_breaking_change
155
+ default: False
156
+ schema: |-
157
+ <type>(<scope>): <subject>
158
+ <BLANK LINE>
159
+ <body>
160
+ <BLANK LINE>
161
+ <footer>
162
+ schema_pattern: "\
163
+ (?s)\
164
+ ^(wip|WIP).*$\
165
+ |\
166
+ (fix|feat|chore|docs|style|refactor|perf|test|build|ci|improvement|security|revert)\
167
+ (\\([^\\n\\r]+\\))\
168
+ !?\
169
+ :\
170
+ \
171
+ ([^\\n\\r]+)\
172
+ ((\\n\\n.*)|(\\s*))?\
173
+ (\\n[^\\n\r]+-by:.*)*\
174
+ $\
175
+ "
176
+
177
+ # commitizen styles
178
+ style:
179
+ - ["qmark", "fg:#FF9D00 bold"]
180
+ - ["question", "bold"]
181
+ - ["answer", "fg:#FF9D00 bold"]
182
+ - ["pointer", "fg:#FF9D00 bold"]
183
+ - ["highlighted", "fg:#FF9D00 bold"]
184
+ - ["selected", "fg:#CC5454"]
185
+ - ["separator", "fg:#CC5454"]
186
+ - ["instruction", ""]
187
+ - ["text", ""]
188
+ - ["disabled", "fg:#858585 italic"]
@@ -0,0 +1,2 @@
1
+ # Shell scripts
2
+ *.sh text eol=lf
@@ -0,0 +1,30 @@
1
+ # Assets files
2
+ src/assets/.cz.yaml
3
+
4
+ # Build files
5
+ build/
6
+
7
+ # Compiled files
8
+ *.pyc
9
+ __pycache__/
10
+
11
+ # Coverage files
12
+ coverage-reports/
13
+
14
+ # Distribution files
15
+ .eggs/
16
+ *.egg-info/
17
+ dist/
18
+
19
+ # Documentation intermediates
20
+ /docs/.cache
21
+ /public
22
+
23
+ # SonarQube files
24
+ .scannerwork/
25
+ .sonar/
26
+
27
+ # Temporary files
28
+ .*.swp
29
+ .tmp/
30
+ .tmp.*