Skip to content

Commit

Permalink
Merge pull request #4 from FasterSpeeding/task/bump-hikari
Browse files Browse the repository at this point in the history
Bump hikari version
  • Loading branch information
FasterSpeeding authored Jan 17, 2021
2 parents 00ec4ba + 2cd3768 commit 2da2950
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 4 deletions.
34 changes: 34 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[flake8]
count = true

ignore =
A002, # Argument is shadowing a python builtin.
A003, # Class attribute is shadowing a python builtin.
CFQ002, # Function has too many arguments.
D102, # Missing docstring in public method.
D105, # Magic methods not having a docstring.
D412, # No blank lines allowed between a section header and its content
E402, # Module level import not at top of file (isn't compatible with our import style).
IFSTMT001 # "use a oneliner here".
T101, # TO-DO comment detection (T102 is FIX-ME and T103 is XXX).
W503, # line break before binary operator.
W504, # line break before binary operator (again, I guess).
S101, # Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
E203, # whitespace before ':'
E231 # missing whitespace after ','

# F403: cannot detect unused vars if we use starred import
# F405: __all__ field may be undefined or defined from star imports
per-file-ignores =
yuyo/__init__.py: F403,F405

max-complexity = 20
max-function-length = 130
# Technically this is 120, but black has a policy of "1 or 2 over is fine if it is tidier", so we have to raise this.
max-line-length = 130
show_source = False
statistics = False

accept-encodings = utf-8
docstring-convention = numpy

1 change: 1 addition & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
mypy==0.790
black==20.8b1
flake8==3.8.4
isort==5.6.4

# Mocks (stdlib ones change between versions of Python, so are not consistent in behaviour like the backport is).
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
hikari~=2.0.0.dev93
hikari~=2.0.0.dev99
2 changes: 1 addition & 1 deletion yuyo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"Backoff",
"ErrorManager",
# paginaton.py
"paginator",
"paginaton",
"AbstractPaginator",
"Paginator",
"PaginatorPool",
Expand Down
2 changes: 1 addition & 1 deletion yuyo/about.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@
__issue_tracker__ = "https://github.com/FasterSpeeding/Yuyo/issues"
__license__ = "BSD"
__url__ = "https://github.com/FasterSpeeding/Yuyo"
__version__ = "0.0.3.a1"
__version__ = "0.0.3.a2"
__git_sha1__ = "HEAD"
2 changes: 1 addition & 1 deletion yuyo/backoff.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ class ErrorManager:
# We entre this context manager each iteration to catch errors before
# they cause us to break out of the `Backoff` loop.
with error_handler:
await message.reply("General Kenobi")
await message.respond("General Kenobi")
# We need to break out of `retry` if this request succeeds.
break
```
Expand Down

0 comments on commit 2da2950

Please sign in to comment.