Skip to content

Commit

Permalink
feat!: Update SDK (#15)
Browse files Browse the repository at this point in the history
* feat: Add new methods and refactor

* build: Add mypy to dev dependencies and config file

* chore: Add types (WIP)

* feat!: Add new methods and refactor

* chore: Remove unused import

* chore: Remove file test_gliff.py

* fix: Minor fixes and edit comments

* fix: Lint

* build: Remove tests from github actions

* fix: Format action

* chore: Move mypy config inside pyproject.toml

* fix: Turn gliff into a class and suggested changes (WIP)

* fix: Lint

* fix: suggested changes

rename some methods, update docs, replace .format strings with f-strings, add helpers for creating and updating tiles, add method 'upload_annotation'.

* chore: Remove useless comments

* refactor: Change _mng to _manager

* fix: Suggested changes

replace getters and setters with @Property and make methods _reset_values and _get_value private.

* fix: Make methods protected

Make decode_content and encode_content protected

* refactor: Call login inside constructor and add __del__ method

* refactor: Change error into warning

* refactor: Make some methods static and fix docs

* refactor: Improve docstrings
  • Loading branch information
SilviaZeta authored Mar 18, 2022
1 parent 526cfcf commit e25a151
Showing 5 changed files with 996 additions and 378 deletions.
23 changes: 1 addition & 22 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
@@ -24,25 +24,4 @@ jobs:
- name: Lint
run: poetry run flake8 *.py
- name: Format
run: black --verbose --diff *.py
Test:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Setup Python version
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Setup Poetry
uses: snok/install-poetry@v1
with:
version: 1.1.10
installer-parallel: true
- name: Setup dependencies
run: poetry install
- name: Test
run: poetry run pytest
run: poetry run black --verbose --diff *.py
Loading

0 comments on commit e25a151

Please sign in to comment.