Skip to content

Commit f43ece4

Browse files
committed
Doc updates
- Updated Changelog - Added more project links to setup.py - Minor user-facing doc updates
1 parent f53e809 commit f43ece4

File tree

7 files changed

+39
-17
lines changed

7 files changed

+39
-17
lines changed

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
11
# Changelog #
22

3+
## v0.15.0 (TBD) ##
4+
5+
Contributors:
6+
Special thanks to [BrunIF](https://github.com/BrunIF), [lukech](https://github.com/lukech), [Cielquan](https://github.com/Cielquan), [harens](https://github.com/harens) and [sigmavirus24](https://github.com/sigmavirus24).
7+
8+
**This release drops support for Python 2.7 and Python 3.5 ([both are EOL](https://endoflife.date/python)). Other than a few minor fixes, there are no functional differences from the 0.14.0 release.**
9+
10+
Other call-outs:
11+
- **Mac users**: Gitlint can now be installed using both homebrew (upgraded to latest) and macports. Special thanks to [@harens](https://github.com/harens) for maintaining these packages (best-effort).
12+
- Bugfix: Gitlint now properly handles exceptions when using its built-in commit-msg hook ([#166](https://github.com/jorisroovers/gitlint/issues/166)).
13+
- All dependencies have been upgraded to the latest available versions (`Click==7.1.2`, `arrow==0.17.0`, `sh==1.14.1`).
14+
- Much under-the-hood refactoring as a result of dropping Python 2.7
15+
316
## v0.14.0 (2020-10-24) ##
417

518
Contributors:
6-
Special thanks to all contributors for this release, in particular [@mrshu](https://github.com/mrshu), [@glasserc](https://github.com/glasserc), [@strk](https://github.com/strk), [@chgl](https://github.com/chgl), [@melg8](https://github.com/melg8) and [@sigmavirus24](https://github.com/sigmavirus24).
19+
Special thanks to all contributors for this release, in particular [mrshu](https://github.com/mrshu), [glasserc](https://github.com/glasserc), [strk](https://github.com/strk), [chgl](https://github.com/chgl), [melg8](https://github.com/melg8) and [sigmavirus24](https://github.com/sigmavirus24).
720

821

922
- **IMPORTANT: Gitlint 0.14.x will be the last gitlint release to support Python 2.7 and Python 3.5, as [both are EOL](https://endoflife.date/python) which makes it difficult to keep supporting them.**

docs/configuration.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ min-length=5
8080
words=wip
8181

8282
[title-match-regex]
83-
# python like regex (https://docs.python.org/2/library/re.html) that the
83+
# python like regex (https://docs.python.org/3/library/re.html) that the
8484
# commit-msg title must be matched to.
8585
# Note that the regex can contradict with other rules if not used correctly
8686
# (e.g. title-must-not-contain-word).
@@ -100,8 +100,8 @@ ignore-merge-commits=false
100100
[body-changed-file-mention]
101101
# List of files that need to be explicitly mentioned in the body when they are changed
102102
# This is useful for when developers often erroneously edit certain files or git submodules.
103-
# By specifying this rule, developers can only change the file when they explicitly reference
104-
# it in the commit message.
103+
# By specifying this rule, developers can only change the file when they explicitly
104+
# reference it in the commit message.
105105
files=gitlint/rules.py,README.md
106106

107107
[body-match-regex]
@@ -110,9 +110,10 @@ files=gitlint/rules.py,README.md
110110
regex=My-Commit-Tag: foo$
111111

112112
[author-valid-email]
113-
# python like regex (https://docs.python.org/2/library/re.html) that the
113+
# python like regex (https://docs.python.org/3/library/re.html) that the
114114
# commit author email address should be matched to
115-
# E.g.: For example, use the following regex if you only want to allow email addresses from foo.com
115+
# E.g.: For example, use the following regex if you only want to allow email
116+
# addresses from foo.com
116117
regex=[^@]+@foo.com
117118

118119
[ignore-by-title]
@@ -330,8 +331,10 @@ Default value | gitlint version | commandline flag | environment
330331
```sh
331332
# CLI
332333
gitlint --contrib=contrib-title-conventional-commits,CC1
333-
gitlint -c general.contrib=contrib-title-conventional-commits,CC1 # different way of doing the same
334-
GITLINT_CONTRIB=contrib-title-conventional-commits,CC1 gitlint # using env variable
334+
# different way of doing the same
335+
gitlint -c general.contrib=contrib-title-conventional-commits,CC1
336+
# using env variable
337+
GITLINT_CONTRIB=contrib-title-conventional-commits,CC1 gitlint
335338
```
336339
```ini
337340
#.gitlint
@@ -341,7 +344,7 @@ contrib=contrib-title-conventional-commits,CC1
341344

342345
### staged
343346

344-
Fetch additional meta-data from the local `repository when manually passing a commit message to gitlint via stdin or `--commit-msg`.
347+
Fetch additional meta-data from the local repository when manually passing a commit message to gitlint via stdin or `--commit-msg`.
345348

346349
Default value | gitlint version | commandline flag | environment variable
347350
---------------|------------------|-------------------|-----------------------

docs/contributing.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ and it's likely that your PR will be merged and released a lot sooner. Thanks!
3434

3535
## Development
3636

37-
There is a Vagrantfile in this repository that can be used for development.
37+
There is a Vagrantfile (Ubuntu) in this repository that can be used for development.
38+
It comes pre-installed with all Python versions that gitlint supports.
3839
```sh
3940
vagrant up
4041
vagrant ssh
@@ -51,7 +52,7 @@ python setup.py develop
5152
To run tests:
5253
```sh
5354
./run_tests.sh # run unit tests and print test coverage
54-
./run_test.sh gitlint/tests/test_body_rules.py::BodyRuleTests::test_body_missing # run a single test
55+
./run_tests.sh gitlint/tests/rules/test_body_rules.py::BodyRuleTests::test_body_missing # run a single test
5556
./run_tests.sh --no-coverage # run unit tests without test coverage
5657
./run_tests.sh --collect-only --no-coverage # Only collect, don't run unit tests
5758
./run_tests.sh --integration # Run integration tests (requires that you have gitlint installed)

docs/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Great for use as a [commit-msg git hook](#using-gitlint-as-a-commit-msg-hook) or
1515

1616

1717
!!! important
18-
**Gitlint no longer supports Python 2.7 and Python 3.5 as they [have reached End-Of-Life](https://endoflife.date/python). The last gitlint version to support python 2.7 and python 3.5 is `0.14.0` (released on October 24th, 2020).**
18+
**Gitlint no longer supports Python 2.7 and Python 3.5 as they [have reached End-Of-Life](https://endoflife.date/python). The last gitlint version to support Python 2.7 and Python 3.5 is `0.14.0` (released on October 24th, 2020).**
1919

2020
## Features
2121
- **Commit message hook**: [Auto-trigger validations against new commit message right when you're committing](#using-gitlint-as-a-commit-msg-hook). Also [works with pre-commit](#using-gitlint-through-pre-commit).
@@ -40,7 +40,7 @@ pip install gitlint
4040

4141
# macOS
4242
brew install gitlint
43-
sudo port install gitlint # alternative
43+
sudo port install gitlint # alternative using macports
4444

4545
# Ubuntu
4646
apt-get install gitlint
@@ -224,7 +224,7 @@ your `.pre-commit-config.yaml` file like so:
224224
225225
!!! important
226226
227-
You need to add `--msg-filename` at the end of your custom `args` list as the gitlint-hook will fail otherwise.
227+
You need to add `--msg-filename` at the end of your custom `args` list as the gitlint-hook will fail otherwise.
228228

229229

230230
## Using gitlint in a CI environment

docs/rules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ files | >= 0.4 | (empty) | Comma-separated list o
255255
#### .gitlint
256256

257257
```ini
258-
# Prevent that certain sensitive files are committed by mistake by forcing users to mention them explicitly if they're
259-
# deliberately changing them
258+
# Prevent that certain sensitive files are committed by mistake by forcing
259+
# users to mention them explicitly if they're deliberately changing them
260260
[body-changed-file-mention]
261261
files=generated.xml,secrets.txt,private-key.pem
262262
```

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ site_name: Gitlint
22
site_description: Linting for your git commit messages
33
site_url: http://jorisroovers.github.io/gitlint/
44
repo_url: https://github.com/jorisroovers/gitlint
5+
edit_uri: edit/main/docs
56
nav:
67
- Home: index.md
78
- Configuration: configuration.md

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@ def get_version(package):
6969
},
7070
keywords='gitlint git lint',
7171
author='Joris Roovers',
72-
url='https://github.com/jorisroovers/gitlint',
72+
url='https://jorisroovers.github.io/gitlint',
73+
project_urls={
74+
'Documentation': 'https://jorisroovers.github.io/gitlint',
75+
'Source': 'https://github.com/jorisroovers/gitlint',
76+
},
7377
license='MIT',
7478
package_data={
7579
'gitlint': ['files/*']

0 commit comments

Comments
 (0)