Travis Abendshien
b6e2167605
ci(ruff)!: update ruff linter config, refactor to comply ( #499 )
...
* ci: update ruff linter config
- Set line length to 100
- Enforce Google-style docstrings
- Lint docstrings and imports
* ci(ruff): exclude missing docstring warnings
* ci(ruff): exclude docstring checks from tests dir
* fix(ruff): change top level linter setting
Fix Ruff warning: `warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `pyproject.toml`:
- 'per-file-ignores' -> 'lint.per-file-ignores'`.
* chore: format with ruff
* add `.git-blame-ignore-revs`
* ci(ruff): add E402 and F541 checks
* ci(ruff): add FBT003 check (#500 )
* ci(ruff): add T20 check
* ci(ruff)!: add N check, refactor method names
* ci(ruff): add E501 check, refactor strings
Much commented-out code is removed in this commit.
* update `.git-blame-ignore.revs`
---------
Co-authored-by: yed <yedpodtrzitko@users.noreply.github.com >
2024-09-13 00:28:00 -07:00
yed
e5e7b8afc6
refactor!: use SQLite and SQLAlchemy for database backend ( #332 )
...
* use sqlite + sqlalchemy as a database backend
* change entries getter
* page filterstate.page_size persistent
* add test for entry.id filter
* fix closing library
* fix tag search, adding field
* add field position
* add fields reordering
* use folder
* take field position into consideration
* fix adding tag
* fix test
* try to catch the correct exception, moron
* dont expunge subtags
* DRY models
* rename LibraryField, add is_default property
* remove field.position unique constraint
2024-09-08 22:06:01 -07:00
Jiri
aa2925cde0
add pytest to CI pipeline ( #286 )
2024-06-13 15:29:22 -07:00
Jiri
c09f50c568
ci: add mypy check ( #161 )
...
* ci: add mypy check
* fix remaining mypy issues
* ignore whole methods
2024-05-15 22:25:53 -07:00
Travis Abendshien
089c8dd50c
Reformatted using Ruff
2024-05-03 19:40:36 -07:00
yedpodtrzitko
1030328420
add ruff formatting info and CI pipeline
2024-05-01 15:19:20 +08:00