commitfmt 0.2.0__py3-none-any.whl → 0.4.0__py3-none-any.whl

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: commitfmt
3
- Version: 0.2.0
3
+ Version: 0.4.0
4
4
  Summary: Utility for formatting and verifying the commit message.
5
5
  Author-email: Mikhael Khrustik <misha@myrt.co>
6
6
  License: MIT
@@ -174,15 +174,12 @@ It is an opinionated formatter and the author has established best practices tha
174
174
 
175
175
  ### Linting
176
176
 
177
- Most of the linting rules are disabled by default. Default config contains 3 rules as they can be safely auto-fixed:
177
+ Most of the linting rules are disabled by default. Default config contains 2 rules as they can be safely auto-fixed:
178
178
 
179
179
  ```toml
180
180
  [lint.header]
181
181
  full-stop = true
182
182
 
183
- [lint.body]
184
- new-line = true
185
-
186
183
  [lint.footer]
187
184
  breaking-exclamation = true
188
185
  ```
@@ -212,6 +209,30 @@ extends = "node_modules/commitfmt-config-standard/commitfmt.toml"
212
209
 
213
210
  Extension is only possible for the current configuration. If the current configuration extends another configuration, which in turn extends a third configuration, commitfmt will throw an error when trying to load such a configuration.
214
211
 
212
+ ### Parser Configuration
213
+
214
+ commitfmt can be configured to use custom footer separators and comment symbols for parsing commit messages.
215
+
216
+ #### Footer separators
217
+
218
+ By default, commitfmt uses git's `trailer.separators` configuration to determine which characters separate footer keys from values. You can override this in your config file:
219
+
220
+ ```toml
221
+ footer-separators = ":#"
222
+ ```
223
+
224
+ This allows footers like `Issue-ID: 123` or `Issue-ID #123` to be recognized.
225
+
226
+ #### Comment symbol
227
+
228
+ By default, commitfmt uses git's `core.commentChar` or `core.commentString` configuration to identify comment lines in commit messages. You can override this:
229
+
230
+ ```toml
231
+ comment-symbol = "//"
232
+ ```
233
+
234
+ Lines starting with the comment symbol will be ignored during parsing.
235
+
215
236
  ### Additional footers
216
237
 
217
238
  commitfmt can add additional footers to the commit message.
@@ -0,0 +1,8 @@
1
+ commitfmt/__init__.py,sha256=XbqA09CGurplp5_c9PpHKvYDGevnhBjtUoYClkU9TCU,32
2
+ commitfmt/__main__.py,sha256=oYv9CGhyxv4OJDAo8jY-vH3WZ9y6IBt9FAVMIDdGARs,353
3
+ commitfmt/commitfmt.py,sha256=4D-ifjc3kqn_wGGZCUFgp5HKGZ5UmU6qnJahwx7HopI,995
4
+ commitfmt-0.4.0.dist-info/METADATA,sha256=DR0nMBkLVtxvla9gphzG1Y_viW1VdqufMG89GOe0h44,9229
5
+ commitfmt-0.4.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
+ commitfmt-0.4.0.dist-info/entry_points.txt,sha256=WbaxVY_kl8rYTrC2jtjP0U5x6gB0Q6CF5V2YKMrXQfc,54
7
+ commitfmt-0.4.0.dist-info/top_level.txt,sha256=YDzuLgcXgStEzOmg2c7IQZIpsye34U2vKCIheKEvyjg,10
8
+ commitfmt-0.4.0.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- commitfmt/__init__.py,sha256=XbqA09CGurplp5_c9PpHKvYDGevnhBjtUoYClkU9TCU,32
2
- commitfmt/__main__.py,sha256=oYv9CGhyxv4OJDAo8jY-vH3WZ9y6IBt9FAVMIDdGARs,353
3
- commitfmt/commitfmt.py,sha256=4D-ifjc3kqn_wGGZCUFgp5HKGZ5UmU6qnJahwx7HopI,995
4
- commitfmt-0.2.0.dist-info/METADATA,sha256=am6SFsHB_xubgAZZtMqfH6gb3ZWr-Np6NsPPs-UGW-M,8517
5
- commitfmt-0.2.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
- commitfmt-0.2.0.dist-info/entry_points.txt,sha256=WbaxVY_kl8rYTrC2jtjP0U5x6gB0Q6CF5V2YKMrXQfc,54
7
- commitfmt-0.2.0.dist-info/top_level.txt,sha256=YDzuLgcXgStEzOmg2c7IQZIpsye34U2vKCIheKEvyjg,10
8
- commitfmt-0.2.0.dist-info/RECORD,,