Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alisaifee committed Jul 21, 2024
1 parent abf483a commit a03aa8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
lint:
ruff check --select I
ruff format --check flask_limiter tests
ruff flask_limiter tests
ruff check flask_limiter tests
mypy flask_limiter

lint-fix:
ruff check --select I --fix
ruff format flask_limiter tests
ruff --fix flask_limiter tests
ruff check --fix flask_limiter tests
mypy flask_limiter
4 changes: 2 additions & 2 deletions tests/test_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ def test_constructor_arguments_over_config(redis_connection):
app.config.setdefault(ConfigVars.STORAGE_URI, "redis://localhost:46379")
app.config.setdefault(ConfigVars.APPLICATION_LIMITS, "1/minute")
app.config.setdefault(ConfigVars.META_LIMITS, "1/hour")
assert type(limiter._limiter) == MovingWindowRateLimiter
assert type(limiter._limiter) is MovingWindowRateLimiter
limiter = Limiter(get_remote_address, storage_uri="memory://")
limiter.init_app(app)
assert type(limiter._storage) == MemoryStorage
assert type(limiter._storage) is MemoryStorage

@app.route("/")
def root():
Expand Down

0 comments on commit a03aa8a

Please sign in to comment.