Skip to content

Commit

Permalink
Revert "Switch to ruff for linting"
Browse files Browse the repository at this point in the history
This reverts commit b922242.
  • Loading branch information
alisaifee committed Mar 9, 2023
1 parent ffae492 commit 0eab70f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 11 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ jobs:
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements/ci.txt
- name: Lint with ruff
- name: Lint with flake8
run: |
ruff flask_limiter tests
flake8 . --count --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10
- name: Lint with black
run: |
black tests flask_limiter
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
lint:
black --check tests flask_limiter
mypy flask_limiter
ruff flask_limiter tests
flake8 flask_limiter tests

lint-fix:
black tests flask_limiter
mypy flask_limiter
isort -r --profile=black tests flask_limiter
ruff --fix flask_limiter tests
autoflake8 -i -r tests flask_limiter
14 changes: 11 additions & 3 deletions flask_limiter/extension.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
"""
Flask-Limiter Extension
"""
from __future__ import annotations

import dataclasses
import traceback
import warnings
from types import TracebackType

from ordered_set import OrderedSet

from .util import get_qualified_name

"""
Flask-Limiter Extension
"""
import datetime
import itertools
import logging
Expand Down
3 changes: 0 additions & 3 deletions pyproject.toml

This file was deleted.

3 changes: 2 additions & 1 deletion requirements/dev.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
-r test.txt
-r docs.txt
ruff
autoflake8
black
flake8
isort
keyring
mypy

0 comments on commit 0eab70f

Please sign in to comment.