Skip to content

Commit e11ade5

Browse files
committed
bumped up ellar version to latest
1 parent 6d2d171 commit e11ade5

File tree

6 files changed

+26
-46
lines changed

6 files changed

+26
-46
lines changed

.github/workflows/test_full.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ jobs:
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

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

1314
install: ## 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

2929
test: ## Run tests

ellar_throttler/throttler_guard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import typing as t
33

44
from ellar.common import GuardCanActivate, IExecutionContext, Response
5-
from ellar.common.helper import get_name
5+
from ellar.common.utils import get_name
66
from ellar.core.connection import HTTPConnection
77
from ellar.core.services import Reflector
88
from ellar.di import injectable

mypy.ini

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

pyproject.toml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ classifiers = [
4040
]
4141

4242
dependencies = [
43-
"ellar >= 0.4.4"
43+
"ellar >= 0.5.8"
4444
]
4545

4646

@@ -83,3 +83,22 @@ ignore = [
8383

8484
[tool.ruff.isort]
8585
known-third-party = ["ellar",]
86+
87+
[tool.mypy]
88+
89+
show_column_numbers = true
90+
91+
follow_imports = 'normal'
92+
ignore_missing_imports = true
93+
94+
# be strict
95+
disallow_untyped_calls = true
96+
warn_return_any = true
97+
strict_optional = true
98+
warn_no_return = true
99+
warn_redundant_casts = true
100+
warn_unused_ignores = true
101+
102+
disallow_untyped_defs = true
103+
check_untyped_defs = true
104+
implicit_reexport = false

tests/app/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from ellar.core import AppFactory
1+
from ellar.app import AppFactory
22

33
from ellar_throttler import ThrottlerGuard
44

0 commit comments

Comments
 (0)