summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add pre-commit hook for isort and apply suggestionsHEADmasterColin Wilk2023-10-092-1/+8
| | | | Signed-off-by: Colin Wilk <colin.wilk@tum.de>
* Add generic python project .gitignore from githubColin Wilk2023-10-091-2/+102
| | | | Signed-off-by: Colin Wilk <colin.wilk@tum.de>
* Add more pre-commit hooksColin Wilk2023-10-091-40/+68
| | | | | | | | | | * Add a few general pre-commit hooks for checking format/parsability/git-related-issues. * Add yamllint for properly linting the pre-commit.yaml. * Add mypy for additionally checking types since it seems like a more active project. Signed-off-by: Colin Wilk <colin.wilk@tum.de>
* Rename booru-sync to szuruboorupyColin Wilk2023-10-097-443/+426
| | | | | | | | | Initially the project was intended as a script repository containing scripts for managing my szurubooru instance. Since most of my work was actually writing an API client, I decided to rename this repository to an API client and do the script repository later on separately. Signed-off-by: Colin Wilk <colin.wilk@tum.de>
* Add pydocstyle linter and apply suggestionsColin Wilk2023-10-095-140/+165
| | | | Signed-off-by: Colin Wilk <colin.wilk@tum.de>
* Add requirements.txt file accompanying pyproject.tomlColin Wilk2023-10-021-0/+236
| | | | Signed-off-by: Colin Wilk <colin.wilk@tum.de>
* Add pydantic to dataclassesColin Wilk2023-10-024-5/+155
| | | | | | | | | | Verifies the type annotations on the classes. This commit also fixes a bug where an invalid type was returned for suggestions of a Tag. The return type was a dict of a Micro Tag Structure but it was expected to be a string (see szurubooru.py) Signed-off-by: Colin Wilk <colin.wilk@tum.de>
* Move tag into dataclass ModuleColin Wilk2023-10-013-20/+47
| | | | | | | | Additionally change the description of the Tag modules (and other dataclass modules) to match the description from the Szurubooru API reference. Signed-off-by: Colin Wilk <colin.wilk@tum.de>
* Finish implementing tags APIColin Wilk2023-10-011-0/+64
| | | | Signed-off-by: Colin Wilk <colin.wilk@tum.de>
* Add Szurubooru __delete helper functionColin Wilk2023-10-011-1/+14
| | | | Signed-off-by: Colin Wilk <colin.wilk@tum.de>
* Initial CommitColin Wilk2023-10-018-0/+1796
Signed-off-by: Colin Wilk <colin.wilk@tum.de>