Skip to content

Commit 74c5b01

Browse files
committed
Initial
0 parents  commit 74c5b01

29 files changed

+3004
-0
lines changed

.gitignore

+184
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
config.cnf
2+
*.pyc
3+
*.iml
4+
*/*.pytest*
5+
.rnd
6+
### Python template
7+
# Byte-compiled / optimized / DLL files
8+
__pycache__/
9+
*.py[cod]
10+
*$py.class
11+
12+
# C extensions
13+
*.so
14+
15+
# Distribution / packaging
16+
.Python
17+
build/
18+
develop-eggs/
19+
dist/
20+
downloads/
21+
eggs/
22+
.eggs/
23+
lib/
24+
lib64/
25+
parts/
26+
sdist/
27+
var/
28+
wheels/
29+
*.egg-info/
30+
.installed.cfg
31+
*.egg
32+
MANIFEST
33+
34+
# PyInstaller
35+
# Usually these files are written by a python script from a template
36+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
37+
*.manifest
38+
*.spec
39+
40+
# Installer logs
41+
pip-log.txt
42+
pip-delete-this-directory.txt
43+
44+
# Unit test / coverage reports
45+
htmlcov/
46+
.tox/
47+
.coverage
48+
.coverage.*
49+
.cache
50+
nosetests.xml
51+
coverage.xml
52+
*.cover
53+
.hypothesis/
54+
55+
# Translations
56+
*.mo
57+
*.pot
58+
59+
# Django stuff:
60+
*.log
61+
.static_storage/
62+
.media/
63+
local_settings.py
64+
65+
# Flask stuff:
66+
instance/
67+
.webassets-cache
68+
69+
# Scrapy stuff:
70+
.scrapy
71+
72+
# Sphinx documentation
73+
docs/_build/
74+
75+
# PyBuilder
76+
target/
77+
78+
# Jupyter Notebook
79+
.ipynb_checkpoints
80+
81+
# pyenv
82+
.python-version
83+
84+
# celery beat schedule file
85+
celerybeat-schedule
86+
87+
# SageMath parsed files
88+
*.sage.py
89+
90+
# Environments
91+
.env
92+
.venv
93+
env/
94+
venv/
95+
ENV/
96+
env.bak/
97+
venv.bak/
98+
99+
# Spyder project settings
100+
.spyderproject
101+
.spyproject
102+
103+
# Rope project settings
104+
.ropeproject
105+
106+
# mkdocs documentation
107+
/site
108+
109+
# mypy
110+
.mypy_cache/
111+
### VirtualEnv template
112+
# Virtualenv
113+
# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
114+
.Python
115+
[Bb]in
116+
[Ii]nclude
117+
[Ll]ib
118+
[Ll]ib64
119+
[Ll]ocal
120+
pyvenv.cfg
121+
.venv
122+
pip-selfcheck.json
123+
### JetBrains template
124+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
125+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
126+
127+
# User-specific stuff:
128+
.idea/**/workspace.xml
129+
.idea/**/tasks.xml
130+
.idea/dictionaries
131+
132+
# Sensitive or high-churn files:
133+
.idea/**/dataSources/
134+
.idea/**/dataSources.ids
135+
.idea/**/dataSources.xml
136+
.idea/**/dataSources.local.xml
137+
.idea/**/sqlDataSources.xml
138+
.idea/**/dynamic.xml
139+
.idea/**/uiDesigner.xml
140+
141+
# Gradle:
142+
.idea/**/gradle.xml
143+
.idea/**/libraries
144+
145+
# CMake
146+
cmake-build-debug/
147+
cmake-build-release/
148+
149+
# Mongo Explorer plugin:
150+
.idea/**/mongoSettings.xml
151+
152+
## File-based project format:
153+
*.iws
154+
155+
## Plugin-specific files:
156+
157+
# IntelliJ
158+
out/
159+
160+
# mpeltonen/sbt-idea plugin
161+
.idea_modules/
162+
163+
# JIRA plugin
164+
atlassian-ide-plugin.xml
165+
166+
# Cursive Clojure plugin
167+
.idea/replstate.xml
168+
169+
# Crashlytics plugin (for Android Studio and IntelliJ)
170+
com_crashlytics_export_strings.xml
171+
crashlytics.properties
172+
crashlytics-build.properties
173+
fabric.properties
174+
175+
.idea
176+
.pytest_cache
177+
docs/api
178+
docs/_rst
179+
tags
180+
181+
tests/assets/tmp
182+
src/api_files/storage_dir
183+
docker-compose-aws.yml
184+
tilt_modules

.pre-commit-config.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
repos:
2+
- repo: https://github.com/ambv/black
3+
rev: stable
4+
hooks:
5+
- id: black
6+
language_version: python3.8
7+
- repo: https://gitlab.com/pycqa/flake8
8+
rev: 3.7.9
9+
hooks:
10+
- id: flake8

Dockerfile

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
FROM python:3.8
2+
3+
ENV PYTHONFAULTHANDLER=1 \
4+
PYTHONUNBUFFERED=1 \
5+
PYTHONHASHSEED=random \
6+
PIP_NO_CACHE_DIR=off \
7+
PIP_DISABLE_PIP_VERSION_CHECK=on \
8+
PIP_DEFAULT_TIMEOUT=100
9+
10+
11+
RUN pip install --upgrade pip && pip install poetry
12+
13+
14+
# Copy only requirements to cache them in docker layer
15+
WORKDIR /code
16+
COPY poetry.lock pyproject.toml /code/
17+
18+
# Project initialization:
19+
RUN poetry config virtualenvs.create false && poetry install
20+
21+
# Creating folders, and files for a project:
22+
COPY . /code
23+
24+
# Run the tests
25+
ENTRYPOINT ["python", "-m", "pytest", "--cov-report", "term-missing", "--cov=beanie", "--cov-branch", "--cov-fail-under=85", "tests/"]

0 commit comments

Comments
 (0)