Skip to content

Commit 1967f98

Browse files
Develop (#37)
fixed #35 , fixed #36
1 parent 02aa2ea commit 1967f98

File tree

7 files changed

+63
-3
lines changed

7 files changed

+63
-3
lines changed

.githooks/pre-commit

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
<!-- towncrier release notes start -->
44

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+
514
## [0.2.4-rc.1](https://github.com/Nagidal/hatch-semver/tree/0.2.4-rc.1) - 2022-11-15
615

716

changelog.d/35.doc.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Using PowerShell instead of cmd commands in pyproject

changelog.d/36.doc.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added githooks to the repo. Set your core.hookspath to `.githooks`

docs/CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,31 @@
22

33
<!-- towncrier release notes start -->
44

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+
530
## [0.2.2](https://github.com/Nagidal/hatch-semver/tree/0.2.2) - 2022-11-15
631

732

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,13 @@ dependencies = [
106106
build = "pdoc --html --force --output-dir api-site hatch_semver"
107107
serve = "pdoc --http : hatch_semver"
108108
userve = [
109-
"copy /Y CHANGELOG.md docs",
110109
"mkdocs serve",
111110
]
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+
]
113116

114117
[[tool.hatch.envs.test.matrix]]
115118
python = ["310"]

src/hatch_semver/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
__maintainer__ = __author__
99
__maintainer_email__ = __author_email__
1010
__release_date__ = date(year=2022, month=11, day=13)
11-
__version__ = "0.2.4-rc.1"
11+
__version__ = "0.2.4"

0 commit comments

Comments
 (0)