Skip to content

Commit

Permalink
Merge pull request #41 from Yutsuten/refactoring
Browse files Browse the repository at this point in the history
Refactor
  • Loading branch information
Yutsuten authored Dec 3, 2019
2 parents a0b7dad + d24525e commit 9e2fb19
Show file tree
Hide file tree
Showing 12 changed files with 1,036 additions and 1,011 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,10 @@ tmp/

# Dist files
dist/

# Virtual environment
venv/

# Anki
anki/
anki-2.0.*/
18 changes: 4 additions & 14 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
[BASIC]
# Anki and PyQt uses camel case, so change the default to it
function-rgx=_?_?[a-z][A-Za-z0-9]{1,30}$
method-rgx=_?_?[a-z][A-Za-z0-9]{1,30}_?_?$
attr-rgx=_?_?[a-z][A-Za-z0-9]{1,30}$
argument-rgx=_?[A-Za-z0-9]{1,31}$
variable-rgx=_?[a-z][A-Za-z0-9]{1,30}$
inlinevar-rgx=_?[a-z][A-Za-z0-9]{1,30}$
[MASTER]
init-hook='import os, sys; sys.path.append("{}/anki".format(os.getcwd()))'

[MESSAGES CONTROL]
# - To extend anki methods I have to put exactly the same number of arguments,
# even if I do not use them all.
# - Often I have to extend a protected method.
# - Often the parameters name needed to use are equal an import.
disable=unused-argument,protected-access,redefined-outer-name,import-error,no-name-in-module
[TYPECHECK]
disable=useless-object-inheritance
6 changes: 6 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Copyright (c) Yutsuten <https://github.com/Yutsuten>.

First version based on the add-on Progress Bar, created by Glutanimate.
https://github.com/glutanimate/anki-addons-misc


GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007

Expand Down
12 changes: 8 additions & 4 deletions lifedrain/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
'''
Adds a life bar to anki while reviewing.
'''
from . import lifedrain # pylint: disable=unused-import
"""
Copyright (c) Yutsuten <https://github.com/Yutsuten>. Licensed under AGPL-3.0.
See the LICENCE file in the repository root for full licence text.
"""

from . import main

main.main()
214 changes: 0 additions & 214 deletions lifedrain/anki_progress_bar.py

This file was deleted.

Loading

0 comments on commit 9e2fb19

Please sign in to comment.