Skip to content

Commit b42cdd5

Browse files
committed
Switch to ruff
1 parent abd85ec commit b42cdd5

File tree

116 files changed

+332
-239
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+332
-239
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
set -e # Exit immediately if a command exits with a non-zero status
5050
set -u # Exit immediately if a variable is not defined
5151
52-
docker run --rm flask-inputfilter-pure flake8
52+
docker run --rm flask-inputfilter-pure ruff check
5353

5454
build-and-test-cython:
5555
runs-on: ubuntu-latest
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
from .product_inputfilter import ProductInputFilter
22
from .profile_inputfilter import ProfileInputFilter
33
from .user_inputfilter import UserInputFilter
4+
5+
__all__ = ["ProductInputFilter", "ProfileInputFilter", "UserInputFilter"]
File renamed without changes.
File renamed without changes.
File renamed without changes.

flask_inputfilter/__init__.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,13 @@
2727
import logging
2828

2929
logging.getLogger(__name__).warning(
30-
"Cython or g++ not available. Falling back to pure Python implementation.\n"
31-
"Consult docs for better performance: https://leandercs.github.io/flask-inputfilter/guides/compile.html"
30+
"Cython or g++ not available. Falling back to pure Python "
31+
"implementation.\n"
32+
"Consult docs for better performance: https://leandercs.github.io"
33+
"/flask-inputfilter/guides/compile.html"
3234
)
3335
from .input_filter import InputFilter
36+
37+
__all__ = [
38+
"InputFilter",
39+
]

0 commit comments

Comments
 (0)