Skip to content

Commit 55e6426

Browse files
authored
chore: new styling (#35)
1 parent 16bd2d1 commit 55e6426

20 files changed

+537
-503
lines changed

.github/workflows/ci.yml

Lines changed: 72 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,82 @@
11
name: CI
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
88

99
concurrency:
10-
group: ${{ github.head_ref || github.run_id }}
11-
cancel-in-progress: true
10+
group: ${{ github.head_ref || github.run_id }}
11+
cancel-in-progress: true
1212

1313
jobs:
14-
# Make sure commit messages follow the conventional commits convention:
15-
# https://www.conventionalcommits.org
16-
commitlint:
17-
name: Lint Commit Messages
18-
runs-on: ubuntu-latest
19-
steps:
20-
- uses: actions/checkout@v3
21-
with:
22-
fetch-depth: 0
23-
- uses: wagoid/commitlint-github-action@v5.3.0
24-
lint:
25-
runs-on: ubuntu-latest
26-
steps:
27-
- uses: actions/checkout@v3
28-
- uses: actions/setup-python@v4
29-
with:
30-
python-version: "3.10"
31-
- uses: pre-commit/action@v3.0.0
14+
# Make sure commit messages follow the conventional commits convention:
15+
# https://www.conventionalcommits.org
16+
commitlint:
17+
name: Lint Commit Messages
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v3
21+
with:
22+
fetch-depth: 0
23+
- uses: wagoid/commitlint-github-action@v5.3.0
24+
lint:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v3
28+
- uses: actions/setup-python@v4
29+
with:
30+
python-version: "3.10"
31+
- uses: pre-commit/action@v3.0.0
3232

33-
test:
34-
strategy:
35-
fail-fast: false
36-
matrix:
37-
python-version:
38-
- "3.10"
39-
- "3.11"
40-
os:
41-
- ubuntu-latest
42-
- windows-latest
43-
- macOS-latest
44-
runs-on: ${{ matrix.os }}
45-
steps:
46-
- uses: actions/checkout@v3
47-
- name: Set up Python
48-
uses: actions/setup-python@v4
49-
with:
50-
python-version: ${{ matrix.python-version }}
51-
- uses: snok/install-poetry@v1.3.3
52-
- name: Install Dependencies
53-
run: poetry install
54-
shell: bash
55-
- name: Test with Pytest
56-
run: poetry run pytest
57-
shell: bash
58-
release:
59-
runs-on: ubuntu-latest
60-
environment: release
61-
if: github.ref == 'refs/heads/main'
62-
needs:
63-
- test
33+
test:
34+
strategy:
35+
fail-fast: false
36+
matrix:
37+
python-version:
38+
- "3.10"
39+
- "3.11"
40+
os:
41+
- ubuntu-latest
42+
- windows-latest
43+
- macOS-latest
44+
runs-on: ${{ matrix.os }}
45+
steps:
46+
- uses: actions/checkout@v3
47+
- name: Set up Python
48+
uses: actions/setup-python@v4
49+
with:
50+
python-version: ${{ matrix.python-version }}
51+
- uses: snok/install-poetry@v1.3.3
52+
- name: Install Dependencies
53+
run: poetry install
54+
shell: bash
55+
- name: Test with Pytest
56+
run: poetry run pytest
57+
shell: bash
58+
release:
59+
runs-on: ubuntu-latest
60+
environment: release
61+
if: github.ref == 'refs/heads/main'
62+
needs:
63+
- test
6464

65-
steps:
66-
- uses: actions/checkout@v3
67-
with:
68-
fetch-depth: 0
69-
persist-credentials: false
65+
steps:
66+
- uses: actions/checkout@v3
67+
with:
68+
fetch-depth: 0
69+
persist-credentials: false
7070

71-
# Run semantic release:
72-
# - Update CHANGELOG.md
73-
# - Update version in code
74-
# - Create git tag
75-
# - Create GitHub release
76-
# - Publish to PyPI
77-
- name: Python Semantic Release
78-
uses: relekang/python-semantic-release@v7.33.2
79-
with:
80-
github_token: ${{ secrets.GH_TOKEN }}
81-
repository_username: __token__
82-
repository_password: ${{ secrets.PYPI_TOKEN }}
71+
# Run semantic release:
72+
# - Update CHANGELOG.md
73+
# - Update version in code
74+
# - Create git tag
75+
# - Create GitHub release
76+
# - Publish to PyPI
77+
- name: Python Semantic Release
78+
uses: relekang/python-semantic-release@v7.33.2
79+
with:
80+
github_token: ${{ secrets.GH_TOKEN }}
81+
repository_username: __token__
82+
repository_password: ${{ secrets.PYPI_TOKEN }}

.pre-commit-config.yaml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,42 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
default_stages: [ commit ]
44

5-
65
repos:
6+
- repo: https://github.com/pre-commit/pre-commit-hooks
7+
rev: v4.4.0
8+
hooks:
9+
- id: debug-statements
10+
- id: check-builtin-literals
11+
- id: check-case-conflict
12+
- id: check-docstring-first
13+
- id: check-json
14+
- id: check-toml
15+
- id: check-yaml
16+
- id: detect-private-key
17+
- id: end-of-file-fixer
18+
- id: trailing-whitespace
719
- repo: https://github.com/python-poetry/poetry
820
rev: 1.3.2
921
hooks:
1022
- id: poetry-check
23+
- repo: https://github.com/PyCQA/isort
24+
rev: 5.12.0
25+
hooks:
26+
- id: isort
27+
- repo: https://github.com/psf/black
28+
rev: 22.12.0
29+
hooks:
30+
- id: black
31+
- repo: https://github.com/codespell-project/codespell
32+
rev: v2.2.2
33+
hooks:
34+
- id: codespell
35+
- repo: https://github.com/charliermarsh/ruff-pre-commit
36+
rev: v0.0.260
37+
hooks:
38+
- id: ruff
39+
args:
40+
- --fix
1141
- repo: https://github.com/pre-commit/mirrors-mypy
1242
rev: v0.931
1343
hooks:

CHANGELOG.md

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,30 @@
33
<!--next-version-placeholder-->
44

55
## v0.6.4 (2023-04-11)
6+
67
### Fix
7-
* Disconnect on timeout so next command can work ([`5ad397b`](https://github.com/humbertogontijo/python-roborock/commit/5ad397b3bbb4bc600888baba6c0cc15be9d17ef7))
8+
9+
- Disconnect on timeout so next command can work ([`5ad397b`](https://github.com/humbertogontijo/python-roborock/commit/5ad397b3bbb4bc600888baba6c0cc15be9d17ef7))
810

911
## v0.6.3 (2023-04-11)
12+
1013
### Fix
11-
* Semantic_release ([`63b249d`](https://github.com/humbertogontijo/python-roborock/commit/63b249d65d3fc40b048320e6596aedc40f588bf9))
14+
15+
- Semantic_release ([`63b249d`](https://github.com/humbertogontijo/python-roborock/commit/63b249d65d3fc40b048320e6596aedc40f588bf9))
1216

1317
## v0.6.2 (2023-04-11)
18+
1419
### Fix
15-
* Error code nogo_zone_detected ([`722e4b5`](https://github.com/humbertogontijo/python-roborock/commit/722e4b5cfd0c4891adc506e9fe99740860027670))
20+
21+
- Error code nogo_zone_detected ([`722e4b5`](https://github.com/humbertogontijo/python-roborock/commit/722e4b5cfd0c4891adc506e9fe99740860027670))
1622

1723
## v0.6.1 (2023-04-10)
24+
1825
### Fix
19-
* Trigger release ([`f1ce0ed`](https://github.com/humbertogontijo/python-roborock/commit/f1ce0ed55a254bccd8567b48974ff74dd9ec8b25))
20-
* Trigger release ([`9a4462c`](https://github.com/humbertogontijo/python-roborock/commit/9a4462c800762393cc047085156acbe119cd0fe4))
21-
* Trigger release ([`b7a664b`](https://github.com/humbertogontijo/python-roborock/commit/b7a664b15b7c5180d816de325537693f47c24860))
22-
* Trigger release ([`9256849`](https://github.com/humbertogontijo/python-roborock/commit/9256849252f019f4fea2f59384bc0ea7c57adb5c))
23-
* Lowercase true ([`774c3cc`](https://github.com/humbertogontijo/python-roborock/commit/774c3cc9765ee76a3a553ca6911751124ae7164c))
24-
* Semantic release not updating changelong ([`eaf6e90`](https://github.com/humbertogontijo/python-roborock/commit/eaf6e90264b6ab69549da0e5bc3d17c4c0a2c07c))
26+
27+
- Trigger release ([`f1ce0ed`](https://github.com/humbertogontijo/python-roborock/commit/f1ce0ed55a254bccd8567b48974ff74dd9ec8b25))
28+
- Trigger release ([`9a4462c`](https://github.com/humbertogontijo/python-roborock/commit/9a4462c800762393cc047085156acbe119cd0fe4))
29+
- Trigger release ([`b7a664b`](https://github.com/humbertogontijo/python-roborock/commit/b7a664b15b7c5180d816de325537693f47c24860))
30+
- Trigger release ([`9256849`](https://github.com/humbertogontijo/python-roborock/commit/9256849252f019f4fea2f59384bc0ea7c57adb5c))
31+
- Lowercase true ([`774c3cc`](https://github.com/humbertogontijo/python-roborock/commit/774c3cc9765ee76a3a553ca6911751124ae7164c))
32+
- Semantic release not updating changelong ([`eaf6e90`](https://github.com/humbertogontijo/python-roborock/commit/eaf6e90264b6ab69549da0e5bc3d17c4c0a2c07c))

0 commit comments

Comments
 (0)