Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# MONGODB
MONGODB_USERNAME=
MONGODB_PASSWORD=
MONGODB_HOST=cluster_name.mongodb.net
MONGODB_DATABASE=coding

# Nylas
NYLAS_SYSTEM_TOKEN=
NYLAS_CLIENT_ID=
NYLAS_CLIENT_SECRET=
NYLAS_API_SERVER=https://api.nylas.com
CLIENT_URI=http://localhost:3000

DEBUG=info

# Server Cors
CORS_ORIGINS=localhost

# Deta
DETA_PROJECT_KEY=

# OpenAI
OPENAI_API_KEY=
138 changes: 138 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.venv
.env
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

database.db

/node_modules

/build

# Ignore deta config file
.deta/
69 changes: 69 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
fail_fast: true
default_stages: [commit]
exclude: ".git|.tox"

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: check-added-large-files
- id: end-of-file-fixer
- id: check-yaml
- id: mixed-line-ending
args: ["--fix=lf"]
description: Forces to replace line ending by the UNIX 'lf' character.
- id: check-toml
- id: check-merge-conflict

- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black

- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort

- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
hooks:
- id: flake8
additional_dependencies: [flake8-isort]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.991'
hooks:
- id: mypy
args:
- "--strict"
- "--ignore-missing-imports"
- "--warn-unused-configs"
- "--warn-redundant-casts"
- "--warn-unused-ignores"
- "--no-implicit-optional"
- "--strict-equality"
- "--strict-concatenate"
- "--check-untyped-defs"
- "--allow-untyped-decorators"
- "--allow-subclassing-any"
- "--no-warn-return-any"

- repo: https://github.com/PyCQA/autoflake
rev: 'v2.0.0'
hooks:
- id: autoflake
args:
- "--in-place"
- "--recursive"
- "--expand-star-imports"
- "--remove-duplicate-keys"
- "--remove-all-unused-imports"
- "--remove-unused-variables"
- "--ignore-init-module-imports"

- repo: https://github.com/PyCQA/pylint
rev: 'v3.0.0-a5'
hooks:
- id: pylint
Loading