Update dependencies to fix safety check failures (#2142)

* Update dependencies

Update dependencies causing safety check to fail

* Remove nb_black from jupyter notebooks

Because of the build issue on M1 macs, nb_black was removed as a dev dependency. This change removes the lines referencing nb_black (%load_ext lab_black) from all jupyter notebooks.
This commit is contained in:
Travis Newby 2023-02-02 16:43:59 -06:00 committed by GitHub
commit a27ca46b1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 3396 additions and 2439 deletions

View file

@ -18,8 +18,7 @@
"from data_pipeline.score import field_names\n",
"from data_pipeline.comparison_tool.src import utils\n",
"\n",
"pd.options.display.float_format = \"{:,.3f}\".format\n",
"%load_ext lab_black"
"pd.options.display.float_format = \"{:,.3f}\".format"
]
},
{
@ -433,7 +432,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.10"
"version": "3.10.9"
}
},
"nbformat": 4,

View file

@ -8,9 +8,7 @@
"outputs": [],
"source": [
"import pandas as pd\n",
"import numpy as np\n",
"\n",
"%load_ext lab_black"
"import numpy as np"
]
},
{
@ -792,7 +790,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.10"
"version": "3.10.9"
}
},
"nbformat": 4,

View file

@ -9,9 +9,7 @@
"source": [
"import pandas as pd\n",
"import numpy as np\n",
"import pathlib\n",
"\n",
"%load_ext lab_black"
"import pathlib"
]
},
{
@ -1230,7 +1228,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.10"
"version": "3.10.9"
}
},
"nbformat": 4,

View file

@ -14,9 +14,7 @@
"from pathlib import Path\n",
"import matplotlib.pyplot as plt\n",
"\n",
"sys.path.append(\"../../data_pipeline/\")\n",
"\n",
"%load_ext lab_black"
"sys.path.append(\"../../data_pipeline/\")"
]
},
{
@ -998,7 +996,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.10"
"version": "3.10.9"
}
},
"nbformat": 4,

View file

@ -39,16 +39,6 @@
"import geopandas as gpd"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "039d244f-6c97-4b1b-af04-6f879cd2cd86",
"metadata": {},
"outputs": [],
"source": [
"%load_ext lab_black"
]
},
{
"cell_type": "code",
"execution_count": 4,
@ -169,7 +159,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.4"
"version": "3.10.9"
}
},
"nbformat": 4,

View file

@ -7,7 +7,6 @@
"metadata": {},
"outputs": [],
"source": [
"# %load_ext lab_black\n",
"import json\n",
"import pandas as pd\n",
"import geopandas as gpd"
@ -332,7 +331,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.8.10 ('data-pipeline-WziHKidv-py3.8')",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
@ -346,7 +345,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.10"
"version": "3.10.9"
},
"vscode": {
"interpreter": {

View file

@ -24,18 +24,6 @@
")"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "f36fe7ef-2717-48be-ae94-a3f0aa33acc1",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"%load_ext lab_black"
]
},
{
"cell_type": "code",
"execution_count": 3,
@ -710,7 +698,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.4"
"version": "3.10.9"
}
},
"nbformat": 4,

View file

@ -24,18 +24,6 @@
"from data_pipeline.utils import unzip_file_from_url"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "f36fe7ef-2717-48be-ae94-a3f0aa33acc1",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"%load_ext lab_black"
]
},
{
"cell_type": "markdown",
"id": "dbecd665-1c8a-40fe-a7fc-684ecf73f991",
@ -2436,7 +2424,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.6"
"version": "3.10.9"
}
},
"nbformat": 4,

View file

@ -41,16 +41,6 @@
"from data_pipeline.etl.sources.us_army_fuds.etl import USArmyFUDS"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "598dfe82-04b9-4e9c-a74b-a18c9db6688c",
"metadata": {},
"outputs": [],
"source": [
"%load_ext lab_black"
]
},
{
"cell_type": "markdown",
"id": "53b68b92-e575-4404-b79d-7dceb302f588",
@ -1490,7 +1480,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.4"
"version": "3.10.9"
}
},
"nbformat": 4,

View file

@ -7,7 +7,6 @@
"metadata": {},
"outputs": [],
"source": [
"# %load_ext lab_black\n",
"import json\n",
"import pandas as pd\n",
"import geopandas as gpd\n",
@ -499,7 +498,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.13"
"version": "3.10.9"
}
},
"nbformat": 4,

View file

@ -43,7 +43,6 @@
"\n",
"from data_pipeline.score import field_names\n",
"\n",
"%load_ext lab_black\n",
"# Turn on TQDM for pandas so that we can have progress bars when running `apply`.\n",
"tqdm_notebook.pandas()"
]
@ -4203,7 +4202,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.10"
"version": "3.10.9"
}
},
"nbformat": 4,

File diff suppressed because it is too large Load diff

View file

@ -17,6 +17,7 @@ packages = [
[tool.poetry.dependencies]
CensusData = "^1.13"
certifi = "^2022.12.07" # explicit callout due to https://pyup.io/v/52365/f17/
click = "8.0.4" # pinning for now per https://github.com/psf/black/issues/2964
dynaconf = "^3.1.4"
geopandas = "^0.11.0"
@ -30,7 +31,7 @@ matplotlib = "^3.4.2"
numpy = "^1.22.1"
pandas = "^1.2.5"
pylint = "^2.11.1"
pillow = "9.0.1"
pillow = "9.3.0"
python = "^3.8"
pypandoc = "^1.6.3"
PyYAML = "^6.0"
@ -56,7 +57,6 @@ pytest-mock = "^3.6.1"
tox-poetry = "^0.4.1"
pandas-vet = "^0.2.2"
pytest-snapshot = "^0.8.1"
nb-black = "^1.0.7"
seaborn = "^0.11.2"
papermill = "^2.3.4"
jupyterlab = "3.4.4"