File tree Expand file tree Collapse file tree 7 files changed +63
-3
lines changed Expand file tree Collapse file tree 7 files changed +63
-3
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ # Copy or link this script into .git/hooks/
3
+ # It runs automatically in the project root directory (parent of .git/).
4
+
5
+
6
+ # Format python code
7
+ black .
8
+ black_retval=$?
9
+ if [ $black_retval -ne 0 ]; then
10
+ exit 1
11
+ fi
12
+
13
+ # Sort imports
14
+ isort .
15
+ isort_retval=$?
16
+ if [ $isort_retval -ne 0 ]; then
17
+ exit 1
18
+ fi
19
+
20
+ # add updated files
21
+ git add -u
Original file line number Diff line number Diff line change 2
2
3
3
<!-- towncrier release notes start -->
4
4
5
+ ## [ 0.2.4] ( https://github.com/Nagidal/hatch-semver/tree/0.2.4 ) - 2022-11-15
6
+
7
+
8
+ ### Development Details
9
+
10
+ - Using PowerShell instead of cmd commands in pyproject [ #35 ] ( https://github.com/Nagidal/hatch-semver/issues/35 )
11
+ - Added githooks to the repo. Set your core.hookspath to ` .githooks ` [ #36 ] ( https://github.com/Nagidal/hatch-semver/issues/36 )
12
+
13
+
5
14
## [ 0.2.4-rc.1] ( https://github.com/Nagidal/hatch-semver/tree/0.2.4-rc.1 ) - 2022-11-15
6
15
7
16
Original file line number Diff line number Diff line change
1
+ Using PowerShell instead of cmd commands in pyproject
Original file line number Diff line number Diff line change
1
+ Added githooks to the repo. Set your core.hookspath to ` .githooks `
Original file line number Diff line number Diff line change 2
2
3
3
<!-- towncrier release notes start -->
4
4
5
+ ## [ 0.2.4] ( https://github.com/Nagidal/hatch-semver/tree/0.2.4 ) - 2022-11-15
6
+
7
+
8
+ ### Development Details
9
+
10
+ - Using PowerShell instead of cmd commands in pyproject [ #35 ] ( https://github.com/Nagidal/hatch-semver/issues/35 )
11
+ - Added githooks to the repo. Set your core.hookspath to ` .githooks ` [ #36 ] ( https://github.com/Nagidal/hatch-semver/issues/36 )
12
+
13
+
14
+ ## [ 0.2.4-rc.1] ( https://github.com/Nagidal/hatch-semver/tree/0.2.4-rc.1 ) - 2022-11-15
15
+
16
+
17
+ ### Development Details
18
+
19
+ - Use hatch-semver for versioning [ #33 ] ( https://github.com/Nagidal/hatch-semver/issues/33 )
20
+
21
+
22
+ ## [ 0.2.3] ( https://github.com/Nagidal/hatch-semver/tree/0.2.3 ) - 2022-11-15
23
+
24
+
25
+ ### Documentation
26
+
27
+ - Separated home.md from README.md [ #31 ] ( https://github.com/Nagidal/hatch-semver/issues/31 )
28
+
29
+
5
30
## [ 0.2.2] ( https://github.com/Nagidal/hatch-semver/tree/0.2.2 ) - 2022-11-15
6
31
7
32
Original file line number Diff line number Diff line change @@ -106,10 +106,13 @@ dependencies = [
106
106
build = " pdoc --html --force --output-dir api-site hatch_semver"
107
107
serve = " pdoc --http : hatch_semver"
108
108
userve = [
109
- " copy /Y CHANGELOG.md docs" ,
110
109
" mkdocs serve" ,
111
110
]
112
- tc = " towncrier build --yes"
111
+ tc = [
112
+ " towncrier build --yes" ,
113
+ " Copy-Item -path ./CHANGELOG.md -destination ./docs -force" ,
114
+ " git add -u" ,
115
+ ]
113
116
114
117
[[tool .hatch .envs .test .matrix ]]
115
118
python = [" 310" ]
Original file line number Diff line number Diff line change 8
8
__maintainer__ = __author__
9
9
__maintainer_email__ = __author_email__
10
10
__release_date__ = date (year = 2022 , month = 11 , day = 13 )
11
- __version__ = "0.2.4-rc.1 "
11
+ __version__ = "0.2.4"
You can’t perform that action at this time.
0 commit comments