File tree Expand file tree Collapse file tree 7 files changed +27
-48
lines changed
Expand file tree Collapse file tree 7 files changed +27
-48
lines changed Original file line number Diff line number Diff line change 3737 run : pip install flit
3838 - name : Install Dependencies
3939 run : flit install --symlink
40- - name : Black
41- run : black --check ellar_throttler tests
4240 - name : Ruff Lint Check
4341 run : ruff check ellar_throttler tests
4442 - name : mypy
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ clean: ## Removing cached python compiled files
99 find . -name \* pyo | xargs rm -fv
1010 find . -name \* ~ | xargs rm -fv
1111 find . -name __pycache__ | xargs rm -rfv
12+ find . -name .ruff_cache | xargs rm -rfv
1213
1314install : # # Install dependencies
1415 flit install --deps develop --symlink
@@ -17,13 +18,12 @@ install-full: ## Install dependencies
1718 make install
1819 pre-commit install -f
1920
20- lint : # # Run code linters
21- black --check ellar_throttler tests
21+ lint :fmt # # Run code linters
2222 ruff check ellar_throttler tests
2323 mypy ellar_throttler
2424
25- fmt format : # # Run code formatters
26- black ellar_throttler tests
25+ fmt format :clean # # Run code formatters
26+ ruff format ellar_throttler tests
2727 ruff check --fix ellar_throttler tests
2828
2929test : # # Run tests
Original file line number Diff line number Diff line change 11"""A rate limiting module for Ellar"""
22
3- __version__ = "0.0.7 "
3+ __version__ = "0.0.9 "
44
55from .decorators import skip_throttle , throttle
66from .exception import ThrottledException
Original file line number Diff line number Diff line change 22import typing as t
33
44from ellar .common import GuardCanActivate , IExecutionContext , Response
5- from ellar .common .helper import get_name
5+ from ellar .common .utils import get_name
66from ellar .core .connection import HTTPConnection
77from ellar .core .services import Reflector
88from ellar .di import injectable
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ classifiers = [
4040]
4141
4242dependencies = [
43- " ellar >= 0.4.4 "
43+ " ellar >= 0.5.8 "
4444]
4545
4646
@@ -54,7 +54,6 @@ test = [
5454 " pytest >= 7.1.3,<8.0.0" ,
5555 " pytest-cov >= 2.12.0,<5.0.0" ,
5656 " mypy == 1.7.1" ,
57- " black ==23.11.0" ,
5857 " ruff ==0.1.7" ,
5958 " pytest-asyncio" ,
6059 " autoflake" ,
@@ -83,3 +82,22 @@ ignore = [
8382
8483[tool .ruff .isort ]
8584known-third-party = [" ellar" ,]
85+
86+ [tool .mypy ]
87+
88+ show_column_numbers = true
89+
90+ follow_imports = ' normal'
91+ ignore_missing_imports = true
92+
93+ # be strict
94+ disallow_untyped_calls = true
95+ warn_return_any = true
96+ strict_optional = true
97+ warn_no_return = true
98+ warn_redundant_casts = true
99+ warn_unused_ignores = true
100+
101+ disallow_untyped_defs = true
102+ check_untyped_defs = true
103+ implicit_reexport = false
Original file line number Diff line number Diff line change 1- from ellar .core import AppFactory
1+ from ellar .app import AppFactory
22
33from ellar_throttler import ThrottlerGuard
44
You can’t perform that action at this time.
0 commit comments