Skip to content

Commit 656dd0d

Browse files
committed
Fixes
1 parent ba2b709 commit 656dd0d

File tree

11 files changed

+33
-101
lines changed

11 files changed

+33
-101
lines changed

.github/workflows/deploy-docs.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,17 @@ jobs:
1616
environment: github-pages
1717

1818
steps:
19-
- name: Checkout Repository
20-
uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2120

22-
- name: Setup Python
23-
uses: actions/setup-python@v4
21+
- uses: actions/setup-python@v4
2422
with:
2523
python-version: '3.x'
2624

2725
- name: Install Dependencies
28-
run: |
29-
pip install sphinx sphinx_rtd_theme
26+
run: pip install sphinx sphinx_rtd_theme
3027

3128
- name: Build Documentation
32-
run: |
33-
sphinx-build -b html docs/ _build
29+
run: sphinx-build -b html docs/ _build
3430

3531
- name: Upload artifacts
3632
uses: actions/upload-pages-artifact@v3

.github/workflows/publish-to-pypi.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ jobs:
1010

1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414

15-
- name: Set up Python
16-
uses: actions/setup-python@v4
15+
- uses: actions/setup-python@v4
1716
with:
18-
python-version: 3.9
17+
python-version: 3.11
1918

2019
- name: Install build tools
2120
run: pip install build twine wheel

.github/workflows/test.yaml

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Run Tests
1+
name: Run Tests and Lint
22

33
on: [push]
44

@@ -33,30 +33,6 @@ jobs:
3333
--cache-to=type=local,dest=/tmp/.buildx-cache,mode=max \
3434
-t flask-inputfilter . --load
3535
36-
# - name: Save flask-inputfilter image
37-
# run: docker save -o flask-inputfilter.tar flask-inputfilter
38-
#
39-
# - name: Upload flask-inputfilter artifact
40-
# uses: actions/upload-artifact@v4
41-
# with:
42-
# name: flask-inputfilter-image
43-
# path: flask-inputfilter.tar
44-
#
45-
# test:
46-
# runs-on: ubuntu-latest
47-
#
48-
# steps:
49-
# - name: Checkout code
50-
# uses: actions/checkout@v4
51-
#
52-
# - name: Download flask-inputfilter artifact
53-
# uses: actions/download-artifact@v4
54-
# with:
55-
# name: flask-inputfilter-image
56-
#
57-
# - name: Load flask-inputfilter image
58-
# run: docker load -i flask-inputfilter.tar
59-
6036
- name: Run tests in Docker and upload coverage to Coveralls
6137
env:
6238
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}

.github/workflows/test_env.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Run Tests on all environments
1+
name: Run Tests on py versions
22

33
on: [push]
44

@@ -11,8 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- name: Checkout code
15-
uses: actions/checkout@v4
14+
- uses: actions/checkout@v4
1615

1716
- name: Cache Docker layers
1817
uses: actions/cache@v4

Makefile

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
1-
# Minimal makefile for Sphinx documentation
2-
#
3-
4-
# You can set these variables from the command line, and also
5-
# from the environment for the first two.
61
SPHINXOPTS ?=
72
SPHINXBUILD ?= sphinx-build
83
SOURCEDIR = source
94
BUILDDIR = build
105

11-
# Put it first so that "make" without argument is like "make help".
126
help:
137
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
148

159
.PHONY: help Makefile
1610

17-
# Catch-all target: route all unknown targets to Sphinx using the new
18-
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
1911
%: Makefile
2012
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

flask_inputfilter/Validator/IsIntegerValidator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ def __init__(self, error_message: Optional[str] = None) -> None:
1515
def validate(self, value: Any) -> None:
1616
if not isinstance(value, int):
1717
raise ValidationError(
18-
self.error_message, f"Value '{value}' is not an integer."
18+
self.error_message or f"Value '{value}' is not an integer."
1919
)

make.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
pushd %~dp0
44

5-
REM Command file for Sphinx documentation
5+
REM
66

77
if "%SPHINXBUILD%" == "" (
88
set SPHINXBUILD=sphinx-build

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ autoflake
22
black
33
coverage
44
coveralls
5-
docformatter
5+
# docformatter
66
flake8==4.0.0
77
flask==2.1
88
isort

scripts/lint

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ autoflake --in-place --remove-all-unused-imports --ignore-init-module-imports --
1111
echo 'Running black'
1212
black .
1313

14-
echo 'Running docformatter'
15-
docformatter --in-place .
14+
# echo 'Running docformatter'
15+
# docformatter --in-place .

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
setup(
44
name="flask_inputfilter",
55
version="0.1.0",
6+
license="MIT",
67
author="Leander Cain Slotosch",
78
author_email="[email protected]",
89
description="A library to filter and validate input data in "
@@ -19,7 +20,6 @@
1920
"requests>=2.22.0",
2021
],
2122
classifiers=[
22-
"License :: OSI Approved :: MIT License",
2323
"Operating System :: OS Independent",
2424
"Programming Language :: Python :: 3.14",
2525
"Programming Language :: Python :: 3.13",

0 commit comments

Comments
 (0)