Skip to content

Commit 0816706

Browse files
author
Lev Rubel
committed
fixed tests; fixed linter errors; fixed bug with enumeration error handling
1 parent 75b108c commit 0816706

25 files changed

+99
-111
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
# stop the build if there are Python syntax errors or undefined names
2828
flake8 . --count --select=E9,F63,F7,F82 --ignore F722 --show-source --statistics
2929
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
30-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=79 --statistics
30+
flake8 . --count --exit-zero --max-complexity=18 --max-line-length=79 --statistics
3131
- name: Test with pytest
3232
run: |
3333
py.test --cov=fastapi_contrib --cov-report=term-missing:skip-covered --cov-branch --cov-fail-under=97

AUTHORS.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ Development Lead
1010
Contributors
1111
------------
1212

13-
* Yaroslav Ulanovich <yul@datacorp.ee>
14-
* BumagniyPacket <rly@datacorp.ee>
15-
* aCLr <a.ch.clr@gmail.com>
13+
* @yarara
14+
* @BumagniyPacket
15+
* @aCLr
16+
* @rsommerard
17+
* @mumtozvalijonov
18+
* @danield137
19+
* @Haider8

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Deploying
118118
---------
119119

120120
A reminder for the maintainers on how to deploy.
121-
Make sure all your changes are committed (including an entry in HISTORY.rst).
121+
Make sure all your changes are committed.
122122
Then run::
123123

124124
$ bumpversion patch # possible: major / minor / patch

HISTORY.rst

Lines changed: 0 additions & 53 deletions
This file was deleted.

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
include AUTHORS.rst
22
include CONTRIBUTING.rst
3-
include HISTORY.rst
43
include LICENSE
54
include README.rst
65

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ lint: ## check style with flake8
5454
# stop the build if there are Python syntax errors or undefined names
5555
flake8 . --count --select=E9,F63,F7,F82 --ignore F722 --show-source --statistics
5656
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
57-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
57+
flake8 . --count --exit-zero --max-complexity=18 --max-line-length=127 --statistics
5858

5959
test: ## run tests quickly with the default Python
6060
py.test --cov=fastapi_contrib --cov-report=term-missing:skip-covered --cov-branch --cov-fail-under=97

README.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@ Features
4141
* Opentracing middleware & setup utility with Jaeger tracer + root span available in every Request's state
4242
* StateRequestIDMiddleware: receives configurable header and saves it in request state
4343

44-
History
45-
--------
46-
47-
See `HISTORY.rst <https://github.com/identixone/fastapi_contrib/blob/master/HISTORY.rst>`_.
48-
4944
Roadmap
5045
--------
5146

docs/fastapi_contrib.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Subpackages
55
-----------
66

77
.. toctree::
8+
:maxdepth: 4
89

910
fastapi_contrib.auth
1011
fastapi_contrib.common

fastapi_contrib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
__author__ = """Lev Rubel"""
66
__email__ = 'l@datacorp.ee'
7-
__version__ = '0.2.8'
7+
__version__ = '0.2.9'

fastapi_contrib/auth/middlewares.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ async def startup():
2222
2323
"""
2424
@staticmethod
25-
def default_on_error(conn: HTTPConnection, exc: Exception) -> UJSONResponse:
25+
def default_on_error(
26+
conn: HTTPConnection,
27+
exc: Exception
28+
) -> UJSONResponse:
2629
"""
2730
Overriden method just to make sure we return response in our format.
2831

0 commit comments

Comments
 (0)