Skip to content

Commit e65119d

Browse files
committed
chore: version 0.1.1
1 parent 7ebb97e commit e65119d

File tree

3 files changed

+40
-15
lines changed

3 files changed

+40
-15
lines changed

.github/workflows/publish.yaml

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,28 @@ on:
55
tags:
66
- "v*.*.*"
77
jobs:
8+
lint:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Setup Python
15+
uses: actions/setup-python@v4
16+
with:
17+
python-version: "3.12"
18+
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install ruff mypy
23+
24+
25+
826
test:
27+
needs: lint
928
runs-on: ${{ matrix.os }}
1029
strategy:
11-
1230
max-parallel: 1
1331
fail-fast: true
1432
matrix:
@@ -20,7 +38,6 @@ jobs:
2038
TOGGL_API_TOKEN: ${{ secrets.TOGGL_API_TOKEN }}
2139
GH_ACTION: "ACTION"
2240

23-
2441
steps:
2542
- uses: actions/checkout@v4
2643

@@ -32,14 +49,7 @@ jobs:
3249
- name: Install dependencies
3350
run: |
3451
python -m pip install --upgrade pip
35-
pip install poetry
36-
pip install tox-gh-actions tox ruff mypy
37-
38-
- name: Type check
39-
run: mypy toggl_api
40-
41-
- name: Lint code
42-
run: ruff check toggl_api
52+
pip install poetry tox-gh-actions tox ruff mypy
4353
4454
- name: Run tests
4555
run: tox
@@ -54,7 +64,21 @@ jobs:
5464
needs: test
5565
runs-on: ubuntu-latest
5666
steps:
57-
- uses: actions/checkout@v3
67+
- uses: actions/checkout@v4
68+
69+
- name: Setup Python
70+
uses: actions/setup-python@v4
71+
with:
72+
python-version: "3.12"
73+
74+
- name: Install dependencies
75+
run: |
76+
python -m pip install --upgrade pip
77+
pip install ruff mypy
78+
79+
- name: Generate Stubs
80+
run: stubgen toggl_api/
81+
5882
- name: Build and publish to pypi
5983
uses: JRubics/[email protected]
6084
with:

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "toggl-api-wrapper"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
description = "Simple Toggl API wrapper for non-premium features."
55
authors = ["David Kasakaitis <[email protected]>"]
66
license = "MIT"
@@ -100,6 +100,7 @@ indent-width = 4
100100
target-version = "py312"
101101

102102
[tool.ruff.lint]
103+
preview = true
103104
select = [
104105
"F",
105106
"E",
@@ -162,7 +163,7 @@ ignore = [
162163
"N802",
163164
"PLW2901",
164165
"UP017", # Python 3.10 backwards compatiblity
165-
166+
"PLR6301", # Class Method Suggestion
166167
]
167168
# Allow fix for all enabled rules (when `--fix`) is provided.
168169
fixable = ["ALL"]
@@ -176,7 +177,7 @@ indent-style = "space"
176177
skip-magic-trailing-comma = false
177178
line-ending = "auto"
178179

179-
[tool.ruff.per-file-ignores]
180+
[tool.ruff.lint.per-file-ignores]
180181
"docs/examples/*" = ["INP001", "T201"]
181182

182183
[tool.mypy]

toggl_api/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = "0.1.0"
1+
version = "0.1.1"

0 commit comments

Comments
 (0)