Skip to content

Commit 889ae45

Browse files
Merge pull request #38 from python-thread/dev
Formatting, documentation and CI improvements
2 parents 94d7066 + 4af1bb1 commit 889ae45

19 files changed

+422
-355
lines changed

.github/CODESTYLE.md

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,21 +57,27 @@ class ExampleClass:
5757

5858

5959
## Commit Message Guidelines
60-
When committing, commit messages are prefixed with a `+` or `-`. Depending on the type of change made
61-
influences which prefix is used.
62-
63-
- `+` when something is added.
64-
- `-` when something is removed.
65-
- none: when neither is applicable, like merge commits.
60+
When committing, commit messages are prefixed with one of the following depending on the type of change made.
61+
62+
- `feat:` when a new feature is introduced with the changes.
63+
- `fix:` when a bug fix has occurred.
64+
- `chore:` for changes that do not relate to a fix or feature and do not modify *source* or *tests*. (like updating dependencies)
65+
- `refactor:` for refactoring code that neither fixes a bug nor adds a feature.
66+
- `docs:` when changes are made to documentation.
67+
- `style:` when changes that do not affect the code, but modify formatting.
68+
- `test:` when changes to tests are made.
69+
- `perf:` for changes that improve performance.
70+
- `ci:` for changes that affect CI.
71+
- `build:` for changes that affect the build system or external dependencies.
72+
- `revert:` when reverting changes.
6673

6774
Commit messages are also to begin with an uppercase character. Below list some example commit messages.
6875

76+
```sh
77+
git commit -m "docs: Added README.md"
78+
git commit -m "revert: Removed README.md"
79+
git commit -m "docs: Moved README.md"
6980
```
70-
git commit -m "+ Added README.md"
71-
git commit -m "- Removed README.md"
72-
git commit -m "Moved README.md"
73-
```
74-
7581

7682

7783
## Markdown Guidelines
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: "vX.X.X: Version Release Checklist"
3+
about: "Checklist for version release"
4+
labels: "Documentation"
5+
assignees: caffeine-addictt
6+
7+
---
8+
9+
# Version Release Checklist
10+
11+
- [ ] I have updated the README.md file
12+
- [ ] I have ensured that all tests pass
13+
- [ ] I have incremented the version number in `__init__.py`
14+
- [ ] I have incremented the version number in `pyproject.toml`

.github/release-drafter.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name-template: "v$RESOLVED_VERSION"
2+
tag-template: "v$RESOLVED_VERSION"
3+
template: |
4+
# What's Changed
5+
6+
$CHANGES
7+
8+
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
9+
10+
categories:
11+
- title: "New"
12+
label: "Type: Feature"
13+
14+
- title: "Bug Fixes"
15+
label: "Type: Bug"
16+
17+
- title: "Improvements"
18+
label: "Type: Enhancement"
19+
20+
- title: "Other changes"
21+
22+
- title: "Documentation"
23+
label: "Documentation"
24+
collapse-after: 5
25+
26+
version-resolver:
27+
major:
28+
labels:
29+
- "Type: Breaking"
30+
minor:
31+
labels:
32+
- "Type: Feature"
33+
patch:
34+
labels:
35+
- "Type: Bug"
36+
- "Documentation"
37+
- "Type: Security"
38+
39+
exclude-labels:
40+
- "Skip-Changelog"

.github/settings.yml

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,88 @@
11
labels:
2-
- name: 'Type: Bug'
2+
- name: "Type: Breaking"
3+
color: a90000
4+
description: A problem or enhancement related to a breaking change.
5+
6+
- name: "Type: Bug"
37
color: e80c0c
48
description: Something isn't working as expected.
59

6-
- name: 'Type: Enhancement'
10+
- name: "Type: Enhancement"
711
color: 54b2ff
812
description: Suggest an improvement for an existing feature.
913

10-
- name: 'Type: Feature'
14+
- name: "Type: Feature"
1115
color: 54b2ff
1216
description: Suggest a new feature.
1317

14-
- name: 'Type: Security'
18+
- name: "Type: Security"
1519
color: fbff00
1620
description: A problem or enhancement related to a security issue.
1721

18-
- name: 'Type: Question'
22+
- name: "Type: Question"
1923
color: 9309ab
2024
description: Request for information.
2125

22-
- name: 'Type: Test'
26+
- name: "Type: Test"
2327
color: ce54e3
2428
description: A problem or enhancement related to a test.
2529

26-
- name: 'Status: Awaiting Review'
30+
- name: "Status: Awaiting Review"
2731
color: 24d15d
2832
description: Ready for review.
2933

30-
- name: 'Status: WIP'
34+
- name: "Status: WIP"
3135
color: 07b340
3236
description: Currently being worked on.
3337

34-
- name: 'Status: Waiting'
38+
- name: "Status: Waiting"
3539
color: 38C968
3640
description: Waiting on something else to be ready.
3741

38-
- name: 'Status: Stale'
42+
- name: "Status: Stale"
3943
color: 66b38a
4044
description: Has had no activity for some time.
4145

42-
- name: 'Duplicate'
46+
- name: "Duplicate"
4347
color: EB862D
4448
description: Duplicate of another issue.
4549

46-
- name: 'Invalid'
50+
- name: "Invalid"
4751
color: faef50
4852
description: This issue doesn't seem right.
4953

50-
- name: 'Priority: High +'
54+
- name: "Priority: High +"
5155
color: ff008c
5256
description: Task is considered higher-priority.
5357

54-
- name: 'Priority: Low -'
58+
- name: "Priority: Low -"
5559
color: 690a34
5660
description: Task is considered lower-priority.
5761

58-
- name: 'Documentation'
62+
- name: "Documentation"
5963
color: 2fbceb
6064
description: An issue/change with the documentation.
6165

6266
- name: "Won't fix"
6367
color: C8D9E6
6468
description: Reported issue is working as intended.
6569

66-
- name: '3rd party issue'
70+
- name: "3rd party issue"
6771
color: e88707
6872
description: This issue might be caused by a 3rd party script/package/other reasons
6973

70-
- name: 'Os: Windows'
74+
- name: "Os: Windows"
7175
color: AEB1C2
7276
description: Is Windows-specific
7377

74-
- name: 'Os: Mac'
78+
- name: "Os: Mac"
7579
color: AEB1C2
7680
description: Is Mac-specific
7781

78-
- name: 'Os: Linux'
82+
- name: "Os: Linux"
7983
color: AEB1C2
8084
description: Is Linux-specific
85+
86+
- name: "Skip-Changelog"
87+
color: AEB1C2
88+
description: Skip changelog in release tag
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
update_release_draft:
13+
permissions:
14+
contents: write
15+
pull-requests: read
16+
17+
runs-on: ubuntu-latest
18+
steps:
19+
# Drafts your next Release notes as Pull Requests are merged into "master"
20+
- uses: release-drafter/release-drafter@v5
21+
with:
22+
disable-autolabeler: true
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

poetry.lock

Lines changed: 1 addition & 118 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)