Compare commits

...

3 Commits

Author SHA1 Message Date
Jef Roosens 6f8cb2e6f9
Merge branch 'develop' of git.roosens.me:Chewing_Bever/backup-tool into develop
continuous-integration/drone the build failed Details
2021-04-25 10:00:25 +02:00
Jef Roosens 79fb3c9a11
Added flake8 stuff 2021-04-25 09:59:18 +02:00
Jef Roosens 16c3edfb17
Switched to setup.cfg for deps 2021-04-25 09:48:35 +02:00
4 changed files with 31 additions and 17 deletions

4
.flake8 100644
View File

@ -0,0 +1,4 @@
# vim: ft=cfg
[flake8]
inline-quotes = double
max-complexity = 7

View File

@ -7,7 +7,7 @@ PYTHON=python3.6
# =====RECIPES=====
.venv/bin/activate: setup.py
'$(PYTHON)' -m venv .venv
.venv/bin/pip install -e .[ci] -e .[lint] -e .[dev]
.venv/bin/pip install -e .[develop]
venv: .venv/bin/activate
.PHONY: venv
@ -18,6 +18,7 @@ format: venv
clean:
rm -rf .venv
rm -rf .tox
rm backup_tool
.PHONY: clean

25
setup.cfg 100644
View File

@ -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

View File

@ -7,20 +7,4 @@ setup(
description="A utility to simply backing up services.",
# TODO add license
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",
],
},
)