Commit ddce6a91 authored by Gabriel Couture's avatar Gabriel Couture

gitlab-ci, fix mypy errors and create requirements.txt

parent 9f6636aa
Pipeline #284 failed with stage
in 13 seconds
......@@ -3,6 +3,9 @@
!.gitignore
!setup.py
!README.md
!requirements.txt
!.gitlab-ci.yml
!LICENSE
!tg263/
!tg263/**
......
before_script:
- /opt/rh/rh-python36/root/usr/bin/pip3.6 install virtualenv
- virtualenv -p /opt/rh/rh-python36/root/usr/bin/python3.6 venv
- ./venv/bin/pip3 install -r requirements.txt
stages:
- test
test:
stage: test
script:
- ./venv/bin/python3 setup.py test
The MIT License (MIT)
Copyright (c) 2019 Gabriel Couture
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
===================================
The AllowedStructureNames.txt file were taken from the ESAPIX project
(https://github.com/rexcardan/ESAPIX). The project's License is shown below.
The MIT License (MIT)
Copyright (c) 2016 Rex Cardan
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
# coding: utf-8
# author: Gabriel Couture
from tg263.allowed_structure_names import is_structure_name_is_allowed
from tg263.dictionary import ALLOWED_STRUCTURE_NAMES
__all__ = [
'is_structure_name_is_allowed',
'ALLOWED_STRUCTURE_NAMES'
]
......@@ -2,11 +2,12 @@
# author: Gabriel Couture
import dataclasses
import re
from typing import Pattern
@dataclasses.dataclass
class AllowedStructureName:
regex: re.Pattern
regex: Pattern
type: str
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment