Skip to content

Commit 47a1b7c

Browse files
Initial setup of django app with first endpoint and validation
0 parents  commit 47a1b7c

39 files changed

+2195
-0
lines changed

.coveragerc

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# .coveragerc to control coverage.py
2+
[run]
3+
branch = True
4+
source = public_api
5+
# omit = bad_file.py
6+
7+
[paths]
8+
source =
9+
src/
10+
*/site-packages/
11+
12+
[report]
13+
# Regexes for lines to exclude from consideration
14+
exclude_lines =
15+
# Have to re-enable the standard pragma
16+
pragma: no cover
17+
18+
# Don't complain about missing debug-only code:
19+
def __repr__
20+
if self\.debug
21+
22+
# Don't complain if tests don't hit defensive assertion code:
23+
raise AssertionError
24+
raise NotImplementedError
25+
26+
# Don't complain if non-runnable code isn't run:
27+
if 0:
28+
if __name__ == .__main__.:

.flake8

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[flake8]
2+
ignore = E203, E266, E501, W503, F403, F401
3+
max-line-length = 90
4+
max-complexity = 10
5+
select = B,C,E,F,W,T4,B9

.gitignore

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Temporary and binary files
2+
*~
3+
*.py[cod]
4+
*.so
5+
*.cfg
6+
!.isort.cfg
7+
!setup.cfg
8+
*.orig
9+
*.log
10+
*.pot
11+
__pycache__/*
12+
.cache/*
13+
.*.swp
14+
*/.ipynb_checkpoints/*
15+
16+
# Project files
17+
.ropeproject
18+
.project
19+
.pydevproject
20+
.settings
21+
.idea
22+
tags
23+
24+
# Package files
25+
*.egg
26+
*.eggs/
27+
.installed.cfg
28+
*.egg-info
29+
30+
# Unittest and coverage
31+
htmlcov/*
32+
.coverage
33+
.tox
34+
junit.xml
35+
coverage.xml
36+
.pytest_cache/
37+
38+
# Build and docs folder/files
39+
build/*
40+
dist/*
41+
sdist/*
42+
docs/api/*
43+
docs/_rst/*
44+
docs/_build/*
45+
cover/*
46+
MANIFEST
47+
48+
# Per-project virtualenvs
49+
.venv*/
50+
51+
# Settings
52+
src/opt_out/public_api/website/settings.py
53+
54+
# Misc
55+
local/
56+
install/
57+
tests/.hypothesis/

.pre-commit-config.yaml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
repos:
2+
- repo: local
3+
hooks:
4+
- id: black
5+
name: black
6+
entry: black
7+
language_version: python3.7
8+
language: system
9+
types: [python]
10+
- id: flake8
11+
name: flake8
12+
entry: flake8
13+
language: system
14+
types: [python]
15+
- id: pylint
16+
name: pylint
17+
entry: pylint --rcfile=".pylintrc"
18+
language: system
19+
types: [python]
20+
- id: mypy
21+
name: mypy
22+
entry: mypy
23+
language: system
24+
types: [python]
25+
- id: pycodestyle
26+
name: pycodestyle
27+
entry: pycodestyle --max-line-length=90
28+
language: system
29+
types: [python]

0 commit comments

Comments
 (0)