Skip to content

Commit 5361c71

Browse files
authored
Merge pull request #60 from LeanderCS/optimize
Optimize
2 parents 6c3e1af + 389055c commit 5361c71

File tree

209 files changed

+1819
-1003
lines changed

Some content is hidden

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

209 files changed

+1819
-1003
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

MANIFEST.in

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
include docs/source/index.rst
22
include LICENSE
33
include docs/source/changelog.rst
4-
recursive-include flask_inputfilter *.py *.pyi *.pyx *.pxd *.c *.cpp
5-
recursive-include flask_inputfilter/include *.h
4+
recursive-include flask_inputfilter *.py *.pyi *.pyx *.pxd *.h
5+
6+
recursive-exclude flask_inputfilter *.cpp
7+
68
prune tests
79
recursive-prune __pycache__

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import os
21
import sys
2+
from pathlib import Path
33

44
project = "flask-inputfilter"
55
copyright = "2025, Leander Cain Slotosch"
@@ -31,7 +31,7 @@
3131
napoleon_google_docstring = True
3232
napoleon_numpy_docstring = False
3333

34-
sys.path.insert(0, os.path.abspath("../.."))
34+
sys.path.insert(0, str(Path("../..").resolve()))
3535

3636
templates_path = []
3737
exclude_patterns = []

docs/source/guides/create_own_components.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Example implementation
3333
3434
from typing import Any
3535
36-
from flask_inputfilter.conditions import BaseCondition
36+
from flask_inputfilter.models import BaseCondition
3737
3838
3939
class EqualCondition(BaseCondition):
@@ -71,7 +71,7 @@ Example implementation
7171
from datetime import date, datetime
7272
from typing import Any
7373
74-
from flask_inputfilter.filters import BaseFilter
74+
from flask_inputfilter.models import BaseFilter
7575
7676
7777
class ToDateTimeFilter(BaseFilter):
@@ -118,7 +118,7 @@ Example implementation
118118
from typing import Any, Optional
119119
120120
from flask_inputfilter.exceptions import ValidationError
121-
from flask_inputfilter.validators import BaseValidator
121+
from flask_inputfilter.models import BaseValidator
122122
123123
124124
class InArrayValidator(BaseValidator):
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.

0 commit comments

Comments
 (0)