Skip to content

Commit

Permalink
chore: version 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ddkasa committed Jun 11, 2024
1 parent ee34555 commit dc80286
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 15 deletions.
50 changes: 39 additions & 11 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,32 @@ on:
tags:
- "v*.*.*"
jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.12"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff mypy
- name: Lint code
run: ruff check toggl_api/

- name: Type check
run: mypy toggl_api/

test:
needs: lint
runs-on: ${{ matrix.os }}
strategy:

max-parallel: 1
fail-fast: true
matrix:
Expand All @@ -20,7 +42,6 @@ jobs:
TOGGL_API_TOKEN: ${{ secrets.TOGGL_API_TOKEN }}
GH_ACTION: "ACTION"


steps:
- uses: actions/checkout@v4

Expand All @@ -32,14 +53,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
pip install tox-gh-actions tox ruff mypy
- name: Type check
run: mypy toggl_api

- name: Lint code
run: ruff check toggl_api
pip install poetry tox-gh-actions tox
- name: Run tests
run: tox
Expand All @@ -54,7 +68,21 @@ jobs:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.12"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff mypy
- name: Generate Stubs
run: stubgen toggl_api/

- name: Build and publish to pypi
uses: JRubics/[email protected]
with:
Expand Down
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "toggl-api-wrapper"
version = "0.1.0"
version = "0.1.1"
description = "Simple Toggl API wrapper for non-premium features."
authors = ["David Kasakaitis <[email protected]>"]
license = "MIT"
Expand Down Expand Up @@ -100,6 +100,7 @@ indent-width = 4
target-version = "py312"

[tool.ruff.lint]
preview = true
select = [
"F",
"E",
Expand Down Expand Up @@ -162,7 +163,7 @@ ignore = [
"N802",
"PLW2901",
"UP017", # Python 3.10 backwards compatiblity

"PLR6301", # Class Method Suggestion
]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
Expand All @@ -176,7 +177,7 @@ indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"docs/examples/*" = ["INP001", "T201"]

[tool.mypy]
Expand Down
2 changes: 1 addition & 1 deletion toggl_api/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "0.1.0"
version = "0.1.1"

0 comments on commit dc80286

Please sign in to comment.