-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove python 3.6 support * Remove easydict and pin requirements * Fix typo * Set python minor version on travis * Also remove local db in delete script
- Loading branch information
Showing
26 changed files
with
78 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/mirrors-isort | ||
rev: 'v4.3.16' | ||
hooks: | ||
- id: isort | ||
additional_dependencies: ['future-fstrings==1.0.0', 'isort[pyproject]'] | ||
- repo: https://github.com/ambv/black | ||
rev: stable | ||
hooks: | ||
- id: black | ||
language_version: python3.6 | ||
additional_dependencies: ['future-fstrings==1.0.0'] | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: 'v0.730' | ||
hooks: | ||
- id: mypy | ||
additional_dependencies: ['future-fstrings==1.0.0'] | ||
- repo: https://github.com/pre-commit/mirrors-isort | ||
rev: "v5.10.1" | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/ambv/black | ||
rev: stable | ||
hooks: | ||
- id: black | ||
language_version: python3.7 | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: "v0.960" | ||
hooks: | ||
- id: mypy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
import os | ||
import shutil | ||
from pathlib import Path | ||
|
||
from dotenv import load_dotenv | ||
from pymongo import MongoClient | ||
from pymongo.mongo_client import MongoClient | ||
|
||
env_path = Path(".") / "infrastructure" / "sacred_setup" / ".env" | ||
load_dotenv(dotenv_path=env_path) | ||
|
||
DB_NAME = os.environ["MONGO_DATABASE"] | ||
|
||
client = MongoClient(host="mongo") | ||
client: MongoClient = MongoClient(host="mongo") | ||
client.drop_database(DB_NAME) | ||
|
||
shutil.rmtree(Path("~/data/incense_test/").expanduser(), ignore_errors=True) | ||
|
||
print(f"Database {DB_NAME} successfully deleted.") |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# -*- coding: future_fstrings -*- | ||
import os | ||
import pickle | ||
import warnings | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[mypy] | ||
python_version = 3.6 | ||
python_version = 3.7 | ||
ignore_missing_imports = True | ||
|
||
[mypy-versioneer.py] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
-r requirements.txt | ||
pytest | ||
pytest-cov | ||
codecov | ||
tensorflow==2.5.3 | ||
python-dotenv | ||
scikit-learn | ||
jupyterlab | ||
seaborn | ||
pre-commit | ||
tokenize-rt==2.2.0 | ||
pylint | ||
black | ||
doc8 | ||
rope | ||
mypy==0.780 | ||
pytest==7.1.2 | ||
pytest-cov==3.0.0 | ||
codecov==2.1.12 | ||
tensorflow==2.9.1 | ||
python-dotenv==0.20.0 | ||
scikit-learn==1.0.2 | ||
jupyterlab==3.4.2 | ||
seaborn==0.11.2 | ||
pre-commit==2.19.0 | ||
black==22.3.0 | ||
doc8==0.11.2 | ||
rope==1.1.1 | ||
mypy==0.960 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
sacred>=0.8 | ||
pandas>=0.23 | ||
pymongo>=3.7 | ||
easydict>=1.9 | ||
ipython>=7.2 | ||
future-fstrings==1.0.0 | ||
sacred==0.8.2 | ||
pandas==1.3.5 | ||
pymongo==4.1.1 | ||
ipython==7.33.0 | ||
pyrsistent==0.18.1 | ||
attrs==19.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# -*- coding: future_fstrings -*- | ||
import os | ||
from pathlib import Path | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# -*- coding: future_fstrings -*- | ||
import os | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters