Skip to content

Commit 712a620

Browse files
committed
initial commit, scaffolding
0 parents  commit 712a620

13 files changed

+150
-0
lines changed

.activate.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
venv/bin/activate

.coveragerc

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[run]
2+
branch = True
3+
source =
4+
backuppy
5+
6+
[report]
7+
exclude_lines =
8+
# Have to re-enable the standard pragma
9+
\#\s*pragma: no cover
10+
11+
# Don't complain if tests don't hit defensive assertion code:
12+
^\s*raise AssertionError\b
13+
^\s*raise NotImplementedError\b
14+
^\s*return NotImplemented\b
15+
^\s*raise$
16+
17+
# Don't complain if non-runnable code isn't run:
18+
^if __name__ == ['"]__main__['"]:$
19+
20+
[html]
21+
directory = coverage-html
22+
23+
# vim:ft=dosini

.deactivate.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
deactivate

.gitignore

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Ignore common code files
2+
*.a
3+
*.so
4+
*.d
5+
*.o
6+
*.debug
7+
gmon.out
8+
*_d
9+
10+
# Ignore common LaTeX files
11+
*.pdf
12+
*.log
13+
*.aux
14+
*.bbl
15+
*.blg
16+
*.bak
17+
*.swp
18+
*.toc
19+
*.lof
20+
*.nav
21+
*.snm
22+
*.out
23+
*~
24+
25+
# Miscellaneous
26+
.svn
27+
28+
# Put your stuff here
29+
.tox
30+
venv
31+
*.egg-info
32+
*.pyc
33+
__pycache__
34+
.coverage

.pre-commit-config.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
repos:
2+
- repo: [email protected]:pre-commit/pre-commit-hooks
3+
sha: v0.9.5
4+
hooks:
5+
- id: trailing-whitespace
6+
language_version: python3.6
7+
- id: end-of-file-fixer
8+
language_version: python3.6
9+
exclude: ^\.activate\.sh$
10+
- id: autopep8-wrapper
11+
language_version: python3.6
12+
args: [-i, --max-line-length=121]
13+
- id: check-yaml
14+
language_version: python3.6
15+
- id: debug-statements
16+
language_version: python3.6
17+
- id: name-tests-test
18+
language_version: python3.6
19+
- id: flake8
20+
language_version: python3.6
21+
exclude: ^docs/.*
22+
- repo: [email protected]:asottile/reorder_python_imports
23+
sha: v0.3.5
24+
hooks:
25+
- id: reorder-python-imports
26+
language_version: python3.6

Makefile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.PHONY: test venv clean
2+
3+
test: requirements.txt requirements-dev.txt
4+
tox
5+
6+
venv: requirements.txt requirements-dev.txt
7+
tox -e venv
8+
9+
clean:
10+
git clean -fdX

backuppy/example.py

Whitespace-only changes.

requirements-dev-minimal.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
coverage
2+
mock
3+
pre-commit
4+
pytest
5+
requirements-tools

requirements-dev.txt

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
aspy.yaml==1.0.0
2+
cached-property==1.3.1
3+
coverage==4.4.1
4+
identify==1.0.6
5+
mock==2.0.0
6+
nodeenv==1.2.0
7+
pbr==3.1.1
8+
pre-commit==1.3.0
9+
py==1.4.34
10+
pytest==3.2.3
11+
PyYAML==3.12
12+
requirements-tools==1.1.2
13+
setuptools==36.5.0
14+
virtualenv==15.1.0

requirements-minimal.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
boto3
2+
cryptography

requirements.txt

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
asn1crypto==0.23.0
2+
boto3==1.4.7
3+
botocore==1.7.25
4+
cffi==1.11.1
5+
cryptography==2.0.3
6+
docutils==0.14
7+
idna==2.6
8+
jmespath==0.9.3
9+
pycparser==2.18
10+
python-dateutil==2.6.1
11+
s3transfer==0.1.11
12+
six==1.11.0

tests/example_test.py

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def test_example():
2+
pass

tox.ini

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[tox]
2+
envlist = py36
3+
skipsdist = True
4+
5+
[testenv]
6+
commands =
7+
check-requirements
8+
coverage erase
9+
coverage run -m pytest {posargs:tests}
10+
coverage report --show-missing
11+
pre-commit install -f --install-hooks
12+
pre-commit run --all-files
13+
deps =
14+
-rrequirements.txt
15+
-rrequirements-dev.txt
16+
17+
[testenv:venv]
18+
basepython = /usr/bin/python3.6
19+
envdir = venv
20+
commands =

0 commit comments

Comments
 (0)