Compare commits
3 Commits
e24e5aa219
...
6f8cb2e6f9
Author | SHA1 | Date |
---|---|---|
|
6f8cb2e6f9 | |
|
79fb3c9a11 | |
|
16c3edfb17 |
|
@ -0,0 +1,4 @@
|
||||||
|
# vim: ft=cfg
|
||||||
|
[flake8]
|
||||||
|
inline-quotes = double
|
||||||
|
max-complexity = 7
|
3
Makefile
3
Makefile
|
@ -7,7 +7,7 @@ PYTHON=python3.6
|
||||||
# =====RECIPES=====
|
# =====RECIPES=====
|
||||||
.venv/bin/activate: setup.py
|
.venv/bin/activate: setup.py
|
||||||
'$(PYTHON)' -m venv .venv
|
'$(PYTHON)' -m venv .venv
|
||||||
.venv/bin/pip install -e .[ci] -e .[lint] -e .[dev]
|
.venv/bin/pip install -e .[develop]
|
||||||
|
|
||||||
venv: .venv/bin/activate
|
venv: .venv/bin/activate
|
||||||
.PHONY: venv
|
.PHONY: venv
|
||||||
|
@ -18,6 +18,7 @@ format: venv
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf .venv
|
rm -rf .venv
|
||||||
|
rm -rf .tox
|
||||||
rm backup_tool
|
rm backup_tool
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
[options.extras_require]
|
||||||
|
# Used to run the tests inside the CICD pipeline
|
||||||
|
ci =
|
||||||
|
tox==3.21.1
|
||||||
|
|
||||||
|
# Used inside Tox for running tests
|
||||||
|
test =
|
||||||
|
pytest==6.2.3
|
||||||
|
pytest-cov==2.11.1
|
||||||
|
|
||||||
|
# Used inside tox for linting
|
||||||
|
lint =
|
||||||
|
black==20.8b1
|
||||||
|
flake8==3.8.4
|
||||||
|
flake8-bugbear==20.1.4
|
||||||
|
flake8-comprehensions==3.2.3
|
||||||
|
flake8-docstrings==1.5.0
|
||||||
|
flake8-print==3.1.4
|
||||||
|
flake8-quotes==3.2.0
|
||||||
|
|
||||||
|
# Required for the developer
|
||||||
|
develop =
|
||||||
|
%(ci)s
|
||||||
|
%(lint)s
|
||||||
|
jedi==0.18.0
|
16
setup.py
16
setup.py
|
@ -7,20 +7,4 @@ setup(
|
||||||
description="A utility to simply backing up services.",
|
description="A utility to simply backing up services.",
|
||||||
# TODO add license
|
# TODO add license
|
||||||
packages=["app", "tests"],
|
packages=["app", "tests"],
|
||||||
extras_require={
|
|
||||||
"ci": [
|
|
||||||
"tox==3.21.1",
|
|
||||||
],
|
|
||||||
"test": {
|
|
||||||
"pytest==6.2.3",
|
|
||||||
"pytest-cov==2.11.1",
|
|
||||||
},
|
|
||||||
"lint": [
|
|
||||||
"black==20.8b1",
|
|
||||||
"flake8==3.8.4",
|
|
||||||
],
|
|
||||||
"dev": [
|
|
||||||
"jedi==0.18.0",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue