-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from Yutsuten/refactoring
Refactor
- Loading branch information
Showing
12 changed files
with
1,036 additions
and
1,011 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,10 @@ tmp/ | |
|
||
# Dist files | ||
dist/ | ||
|
||
# Virtual environment | ||
venv/ | ||
|
||
# Anki | ||
anki/ | ||
anki-2.0.*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.