Commit c0382215 authored by ∞'s avatar 💻

Config refactor

parent a6859b4d
Pipeline #3669 passed with stages
in 37 seconds
image: yourlabs/python
qa:
stage: test
image: yourlabs/python
script: flake8
pytest:
stage: test
image: yourlabs/python
script:
- pip install -e .[test]
- py.test --cov . -v
pypi:
stage: deploy
image: yourlabs/python
script: pypi-release
......@@ -36,6 +36,7 @@ class Parser:
if not self.command:
self.command = self.group[self.group.default_command]
self.spec = inspect.getfullargspec(self.command.target)
for arg in self.argv:
self.append(arg)
......@@ -61,9 +62,8 @@ class Parser:
return value
def append(self, arg):
spec = inspect.getfullargspec(self.command.target)
filled = False
if not spec.varargs and len(spec.args) == len(self.funcargs):
if not self.spec.varargs and len(self.spec.args) == len(self.funcargs):
filled = True
if filled:
......
......@@ -9,6 +9,8 @@ setup(
extras_require=dict(
test=[
'freezegun',
'pytest',
'pytest-cov',
],
),
author='James Pic',
......
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