Compare commits

..

40 commits

Author SHA1 Message Date
ab150963af Merge pull request 'Update python Docker tag to v3.13' (#25) from renovate/python-3.x into master
Reviewed-on: #25
2024-10-15 21:38:08 +02:00
e36cff1a3d Update python Docker tag to v3.13 2024-10-15 21:33:10 +02:00
4622a5d274 Merge pull request 'Update dependency isodate to v0.7.2' (#26) from renovate/isodate-0.x into master
Reviewed-on: #26
2024-10-15 21:32:45 +02:00
2863795580 Update dependency isodate to v0.7.2 2024-10-08 23:17:22 +00:00
1c79f0c4d9 Merge pull request 'Update dependency pytest to v8.3.3' (#24) from renovate/pytest-8.x into master
Reviewed-on: #24
2024-09-15 22:54:59 +02:00
3904819032 Update dependency pytest to v8.3.3 2024-09-10 11:17:41 +00:00
92ae9d79a2 Merge pull request 'Update dependency pytest to v8.3.2' (#23) from renovate/pytest-8.x into master
Reviewed-on: #23
2024-08-04 16:41:12 +02:00
e903272dd8 Update dependency pytest to v8.3.2 2024-07-25 11:17:18 +00:00
6ec26363a1 Merge pull request 'Update dependency GitPython to v3.1.43' (#20) from renovate/gitpython-3.x into master
Reviewed-on: #20
2024-06-10 09:28:42 +02:00
7c9ea635ce Update dependency GitPython to v3.1.43 2024-06-06 21:18:59 +00:00
89821185a8 Merge pull request 'Update dependency pytest to v8.2.2' (#21) from renovate/pytest-8.x into master
Reviewed-on: #21
2024-06-06 22:43:55 +02:00
c582e6f47a Update dependency pytest to v8.2.2 2024-06-06 22:43:29 +02:00
68494d9e09 Merge pull request 'Update dependency tornado to v6.4.1' (#22) from renovate/tornado-6.x into master
Reviewed-on: #22
2024-06-06 22:35:34 +02:00
a4b7025c07 Update dependency tornado to v6.4.1 2024-06-06 19:17:23 +00:00
1b884c771a Merge pull request 'Update dependency GitPython to v3.1.42' (#17) from renovate/gitpython-3.x into master
Reviewed-on: #17
2024-03-22 10:17:56 +01:00
24c6a4d764 Update dependency GitPython to v3.1.42 2024-03-17 20:17:19 +00:00
773879425c Merge pull request 'Update dependency pytest to v8.1.1' (#19) from renovate/pytest-8.x into master
Reviewed-on: #19
2024-03-17 20:21:46 +01:00
e8a6de078a Update dependency pytest to v8.1.1 2024-03-09 12:17:22 +00:00
41f9f0a4dd Merge pull request 'Update dependency pytest to v8' (#18) from renovate/pytest-8.x into master
Reviewed-on: #18
2024-02-23 22:06:10 +01:00
e8886b53ad Update dependency pytest to v8 2024-02-23 20:41:04 +00:00
04a6d36110 Merge pull request 'Update dependency tornado to v6.4' (#15) from renovate/tornado-6.x into master
Reviewed-on: #15
2024-02-23 21:19:02 +01:00
cdef92e8fa Update dependency tornado to v6.4 2024-02-23 21:18:48 +01:00
28bf13b137 Merge pull request 'Update dependency pytest to v7.4.4' (#16) from renovate/pytest-7.x into master
Reviewed-on: #16
2024-02-23 21:18:04 +01:00
33544d3e90 Update dependency pytest to v7.4.4 2024-01-26 19:22:20 +00:00
ce14b7d6af Merge pull request 'Update dependency isodate to v0.6.1' (#8) from renovate/isodate-0.x into master
Reviewed-on: #8
2023-11-05 17:18:28 +01:00
d3badfe3d4 Update dependency isodate to v0.6.1 2023-11-05 17:18:15 +01:00
f2631e0bd0 Merge pull request 'Update dependency GitPython to v3.1.40' (#7) from renovate/gitpython-3.x into master
Reviewed-on: #7
2023-11-05 17:17:57 +01:00
90395cd7a3 Update dependency GitPython to v3.1.40 2023-11-05 16:17:19 +00:00
43a362046e Merge pull request 'Update python Docker tag to v3.12' (#13) from renovate/python-3.x into master
Reviewed-on: #13
2023-11-05 17:17:05 +01:00
1995b73868 Update python Docker tag to v3.12 2023-11-05 17:16:56 +01:00
0f4ca4314d Merge pull request 'Update dependency pytest to v7.4.3' (#14) from renovate/pytest-7.x into master
Reviewed-on: #14
2023-11-05 17:16:04 +01:00
deaeca5f0b Update dependency pytest to v7.4.3 2023-10-24 20:17:22 +00:00
f8670bebce Merge pull request 'Update dependency tornado to v6.3.3' (#10) from renovate/tornado-6.x into master
Reviewed-on: #10
2023-09-22 17:53:23 +02:00
d1845d7bba Update dependency tornado to v6.3.3 2023-09-22 17:53:08 +02:00
aff17df4cb Merge pull request 'Update python Docker tag to v3.11' (#11) from renovate/python-3.x into master
Reviewed-on: #11
2023-09-22 17:52:50 +02:00
53595bebda Update python Docker tag to v3.11 2023-09-22 17:52:30 +02:00
ab37ee689d Merge pull request 'Update dependency pytest to v7' (#12) from renovate/pytest-7.x into master
Reviewed-on: #12
2023-09-22 17:52:10 +02:00
8c3d8ae96e Update dependency pytest to v7 2023-09-07 19:18:29 +00:00
ad20e58cdf Merge pull request 'Configure Renovate' (#6) from renovate/configure into master
Reviewed-on: https://gitea.n39.eu/Netz39_Vorstand/entities_service/pulls/6
2023-09-01 18:24:00 +02:00
f4aa0b403d Add renovate.json 2023-07-29 19:36:03 +00:00
5 changed files with 8 additions and 76 deletions

View file

@ -8,7 +8,7 @@ COPY . /git/
RUN find . -type d -name .git -exec git describe --always --dirty > /git-version.txt \; RUN find . -type d -name .git -exec git describe --always --dirty > /git-version.txt \;
FROM python:3.8 FROM python:3.13
EXPOSE 8080 EXPOSE 8080

3
renovate.json Normal file
View file

@ -0,0 +1,3 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
}

View file

@ -1,4 +1,4 @@
tornado==6.0.4 tornado==6.4.1
isodate==0.6.0 isodate==0.7.2
pytest==5.4.1 pytest==8.3.3
GitPython==3.1.12 GitPython==3.1.43

View file

@ -1,37 +0,0 @@
from validators import mandatory, empty, iso_date, valid_iban, valid_bic
def test_mandatory():
assert mandatory("Foo") == True
assert mandatory("Foo Bar") == True
assert mandatory("1970-01-01") == True
assert mandatory("") == False
def test_empty():
assert empty("") == True
assert empty(" ") == False
assert empty("Foo") == False
assert empty("1970-01-01") == False
def test_iso_date():
assert iso_date("1970-01-01") == True
assert iso_date("1970-1-1") == True
assert iso_date("70-01-01") == False
assert iso_date("1970/01/01") == False
assert iso_date("1.1.1970") == False
assert iso_date("01.01.1970") == False
def test_valid_iban():
assert valid_iban("DE89 3704 0044 0532 0130 00") == True
assert valid_iban("DX89 3704 0044 0532 0130 00") == False
assert valid_iban("DE99 3704 0044 0532 0130 00") == False
def test_valid_bic():
assert valid_bic("PBNKDEFFXXX") == True
assert valid_bic("PBNKDXFFXXX") == False
assert valid_bic("PBNKDXFFXXXX") == False
assert valid_bic("PBN1DXFFXXX") == False

View file

@ -1,34 +0,0 @@
import datetime
from schwifty import IBAN, BIC
def mandatory(field: str) -> bool:
return bool(field)
def empty(field: str) -> bool:
return not bool(field)
def iso_date(field: str) -> bool:
try:
datetime.datetime.strptime(field, "%Y-%m-%d")
return True
except ValueError:
return False
def valid_iban(field: str) -> bool:
try:
IBAN(field)
return True
except ValueError:
return False
def valid_bic(field: str) -> bool:
try:
BIC(field)
return True
except ValueError:
return False