Removed some packages and moved some to the dev dependencies. (#467)

This commit is contained in:
Philipp Horstenkamp 2023-12-20 11:10:20 +01:00 committed by GitHub
parent 6e414d9022
commit e846bba576
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1096 additions and 1221 deletions

View File

@ -89,7 +89,6 @@ repos:
hooks: hooks:
- id: poetry-check - id: poetry-check
- id: poetry-install - id: poetry-install
# `pre-commit install --install-hooks -t post-checkout -t post-merge` to activate
- repo: https://github.com/Lucas-C/pre-commit-hooks-java - repo: https://github.com/Lucas-C/pre-commit-hooks-java
rev: 1.3.10 rev: 1.3.10

2296
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -56,16 +56,13 @@ dash = "^2.14.1"
dash-auth = "^2.0.0" dash-auth = "^2.0.0"
dash-bootstrap-components = "^1.5.0" dash-bootstrap-components = "^1.5.0"
dash-daq = "^0.5.0" dash-daq = "^0.5.0"
dash_cytoscape = "^0.3.0"
dashvis = "^0.1.3"
datetime = "^5.3"
deutschland = {git = "https://github.com/TrisNol/deutschland.git", branch = "hotfix/python-3.11-support"} deutschland = {git = "https://github.com/TrisNol/deutschland.git", branch = "hotfix/python-3.11-support"}
flask-compress = "^1.14" flask-compress = "^1.14"
frozendict = "^2.3.9" frozendict = "^2.3.9"
html5lib = "^1.1" html5lib = "^1.1"
loguru = "^0.7.0" loguru = "^0.7.0"
matplotlib = "^3.8.2"
networkx = "^3.2.1" networkx = "^3.2.1"
pandas = "^2.1.4"
pgeocode = "^0.4.1" pgeocode = "^0.4.1"
psycopg2-binary = "^2.9.7" psycopg2-binary = "^2.9.7"
pymongo = "^4.6.0" pymongo = "^4.6.0"
@ -74,29 +71,30 @@ python-dotenv = "^1.0.0"
rapidfuzz = "^3.5.2" rapidfuzz = "^3.5.2"
schedule = "^1.2.1" schedule = "^1.2.1"
scipy = "^1.11.4" scipy = "^1.11.4"
seaborn = "^0.13.0"
selenium = "^4.15.2" selenium = "^4.15.2"
spacy = "^3.6.1" spacy = "^3.6.1"
spacy-sentiws = "^3.0.0" spacy-sentiws = "^3.0.0"
torch = {version = "*", source = "torch-cpu"} torch = {version = "*", source = "torch-cpu"}
torchaudio = {version = "*", source = "torch-cpu"}
torchvision = {version = "*", source = "torch-cpu"}
tqdm = "^4.66.1" tqdm = "^4.66.1"
transformers = {version = "*", extras = ["torch"]} transformers = {version = "*", extras = ["torch"]}
xmltodict = "^0.13.0" xmltodict = "^0.13.0"
[tool.poetry.extras] [tool.poetry.extras]
ingest = ["selenium", "deutschland", "xmltodict", "html5lib"] ingest = ["selenium", "deutschland", "xmltodict", "html5lib"]
transformation = ["torch", "torchaudio", "torchvision", "transformers", "spacy-sentiws", "spacy"] transformation = ["torch", "transformers", "spacy-sentiws", "spacy", "pgeocode"]
web-server = ["dash", "dash-auth", "dash-bootstrap-components", "matplotlib", "seaborn", "networkx"] web-server = ["dash", "dash-auth", "dash-bootstrap-components", "networkx", "dash-daq"]
[tool.poetry.group.develop.dependencies] [tool.poetry.group.develop.dependencies]
black = {extras = ["jupyter"], version = "^23.11.0"} black = {extras = ["jupyter"], version = "^23.11.0"}
dash_cytoscape = "^0.3.0"
dashvis = "*"
jupyterlab = "^4.0.9" jupyterlab = "^4.0.9"
matplotlib = "^3.8.2"
nbconvert = "^7.11.0" nbconvert = "^7.11.0"
openpyxl = "^3.1.2" openpyxl = "^3.1.2"
pre-commit = "^3.4.0" pre-commit = "^3.4.0"
rise = "^5.7.1" rise = "^5.7.1"
seaborn = "^0.13.0"
[tool.poetry.group.doc.dependencies] [tool.poetry.group.doc.dependencies]
jupyter = "^1.0.0" jupyter = "^1.0.0"

View File

@ -41,9 +41,7 @@ def get_engine(conn_args: SQLConnectionString) -> Engine:
raise TypeError("The type of the configuration is invalid.") raise TypeError("The type of the configuration is invalid.")
def get_session( def get_session(connect_to: ConfigProvider) -> Session:
connect_to: ConfigProvider,
) -> Session:
"""Creates a sql session. """Creates a sql session.
Args: Args: