File tree Expand file tree Collapse file tree 3 files changed +40
-15
lines changed Expand file tree Collapse file tree 3 files changed +40
-15
lines changed Original file line number Diff line number Diff line change 5
5
tags :
6
6
- " v*.*.*"
7
7
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
+
8
26
test :
27
+ needs : lint
9
28
runs-on : ${{ matrix.os }}
10
29
strategy :
11
-
12
30
max-parallel : 1
13
31
fail-fast : true
14
32
matrix :
20
38
TOGGL_API_TOKEN : ${{ secrets.TOGGL_API_TOKEN }}
21
39
GH_ACTION : " ACTION"
22
40
23
-
24
41
steps :
25
42
- uses : actions/checkout@v4
26
43
32
49
- name : Install dependencies
33
50
run : |
34
51
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
43
53
44
54
- name : Run tests
45
55
run : tox
54
64
needs : test
55
65
runs-on : ubuntu-latest
56
66
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
+
58
82
- name : Build and publish to pypi
59
83
60
84
with :
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " toggl-api-wrapper"
3
- version = " 0.1.0 "
3
+ version = " 0.1.1 "
4
4
description = " Simple Toggl API wrapper for non-premium features."
5
5
authors = [
" David Kasakaitis <[email protected] >" ]
6
6
license = " MIT"
@@ -100,6 +100,7 @@ indent-width = 4
100
100
target-version = " py312"
101
101
102
102
[tool .ruff .lint ]
103
+ preview = true
103
104
select = [
104
105
" F" ,
105
106
" E" ,
@@ -162,7 +163,7 @@ ignore = [
162
163
" N802" ,
163
164
" PLW2901" ,
164
165
" UP017" , # Python 3.10 backwards compatiblity
165
-
166
+ " PLR6301 " , # Class Method Suggestion
166
167
]
167
168
# Allow fix for all enabled rules (when `--fix`) is provided.
168
169
fixable = [" ALL" ]
@@ -176,7 +177,7 @@ indent-style = "space"
176
177
skip-magic-trailing-comma = false
177
178
line-ending = " auto"
178
179
179
- [tool .ruff .per-file-ignores ]
180
+ [tool .ruff .lint . per-file-ignores ]
180
181
"docs/examples/*" = [" INP001" , " T201" ]
181
182
182
183
[tool .mypy ]
Original file line number Diff line number Diff line change 1
- version = "0.1.0 "
1
+ version = "0.1.1 "
You can’t perform that action at this time.
0 commit comments