-
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.
* Add dev packages for documentation * Add __version__ to project __init__ module - Not quite sure why this wasn't there to begin with. * Initial documentation * Run pre-commit Apparently my pre-commit wasn't installed correcly. * Make the sphinx packages an optional install dep - This is need for readthedocs support * Select the docstring checks * Add docstrings to project __init__ * Add config for readthedocs * Add docstring for creator & creator_list * Add docstring for issue & issue_list * Add docstring for publisher & publisher_list * Add basic docstring to docs conf * Initial docstrings for session module * Add docstring for story_arc & story_arc_list * Add docstring for sqlite_cache * Add docstring for volume & volume_list * Fix return type for story_arc_list method * Add docstring for exceptions * Add docstring for generic_entries * Add some basic docstring to test configs * Add docstring to the creator tests * Add missing newline * Add blank line to docstring to quite flake8 * Add docstring to test_init * Add docstring for test_issues * Add docstring for test_publishers * Add dosctrings for test_volumes * Add docstring for test_story_arcs * Add additional flake8 deps to pre-commit - Add check so new code adds/formats docstrings * Add missing newline * Fix some copy paste errors * Update tests/test_issues.py Yup, tho the function name should probably be change to `test_issue_list_has_staff_review` Co-authored-by: Buried-In-Code <6057651+Buried-In-Code@users.noreply.github.com> Co-authored-by: Buried-In-Code <6057651+Buried-In-Code@users.noreply.github.com>
- Loading branch information
1 parent
4b47b27
commit 5e1a0d2
Showing
36 changed files
with
1,437 additions
and
5 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[flake8] | ||
max-line-length = 120 | ||
max-complexity = 18 | ||
select = B,C,E,F,W,T4,B9 | ||
select = B,C,D,E,F,W,T4,B9 | ||
extend-ignore = E203 |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# .readthedocs.yml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Build documentation in the docs/ directory with Sphinx | ||
sphinx: | ||
configuration: docs/source/conf.py | ||
|
||
# Optionally set the version of Python and requirements required to build your docs | ||
python: | ||
version: "3.7" | ||
install: | ||
- method: pip | ||
path: . | ||
extra_requirements: | ||
- docs |
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
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,10 +1,27 @@ | ||
""" | ||
Exceptions module. | ||
This module provides the following classes: | ||
- ApiError | ||
- AuthenticationError | ||
- CacheError | ||
""" | ||
|
||
|
||
class APIError(Exception): | ||
"""Class for any api errors.""" | ||
|
||
pass | ||
|
||
|
||
class AuthenticationError(APIError): | ||
"""Class for any authentication errors.""" | ||
|
||
pass | ||
|
||
|
||
class CacheError(APIError): | ||
"""Class for any database cache errors.""" | ||
|
||
pass |
Oops, something went wrong.