mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-04-24 21:42:35 +02:00
[//]: # (dependabot-start) ⚠️ **Dependabot is rebasing this PR** ⚠️ Rebasing might not happen immediately, so don't worry if this takes some time. Note: if you make any changes to this PR yourself, they will take precedence over the rebase. --- [//]: # (dependabot-end) Bumps [seaborn](https://github.com/mwaskom/seaborn) from 0.12.2 to 0.13.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/mwaskom/seaborn/releases">seaborn's releases</a>.</em></p> <blockquote> <h2>v0.13.0 (September 2023)</h2> <p><strong>See the <a href="https://seaborn.pydata.org/whatsnew/v0.13.0.html">online docs</a> for an annotated version of these notes with working links.</strong></p> <p>This is a major release with a number of important new features and changes. The highlight is a major overhaul to seaborn's categorical plotting functions, providing them with many new capabilities and better aligning their API with the rest of the library. There is also provisional support for alternate dataframe libraries like <a href="https://www.pola.rs">polars</a>, a new theme and display configuration system for <code>objects.Plot</code>, and many smaller bugfixes and enhancements.</p> <p>Updating is recommended, but users are encouraged to carefully check the outputs of existing code that uses the categorical functions, and they should be aware of some deprecations and intentional changes to the default appearance of the resulting plots (see notes below with and tags).</p> <h2>Major enhancements to categorical plots</h2> <p>Seaborn's <code>categorical functions <categorical_api></code> have been completely rewritten for this release. This provided the opportunity to address some longstanding quirks as well as to add a number of smaller but much-desired features and enhancements.</p> <h3>Support for numeric and datetime data</h3> <p>The categorical functions have historically treated <em>all</em> data as categorical, even when it has a numeric or datetime type. This can now be controlled with the new <!-- raw HTML omitted -->native_scale<!-- raw HTML omitted --> parameter. The default remains <!-- raw HTML omitted -->False<!-- raw HTML omitted --> to preserve existing behavior. But with <!-- raw HTML omitted -->native_scale=True<!-- raw HTML omitted -->, values will be treated as they would by other seaborn or matplotlib functions. Element widths will be derived from the minimum distance between two unique values on the categorical axis.</p> <p>Additionally, while seaborn previously determined the mapping from categorical values to ordinal positions internally, this is now delegated to matplotlib. The change should mostly be transparent to the user, but categorical plots (even with <!-- raw HTML omitted -->native_scale=False<!-- raw HTML omitted -->) will better align with artists added by other seaborn or matplotlib functions in most cases, and matplotlib's interactive machinery will work better.</p> <h3>Changes to color defaults and specification</h3> <p>The categorical functions now act more like the rest of seaborn in that they will produce a plot with a single main color unless the <!-- raw HTML omitted -->hue<!-- raw HTML omitted --> variable is assigned. Previously, there would be an implicit redundant color mapping (e.g., each box in a boxplot would get a separate color from the default palette). To retain the previous behavior, explicitly assign a redundant <!-- raw HTML omitted -->hue<!-- raw HTML omitted --> variable (e.g., <!-- raw HTML omitted -->boxplot(data, x="x", y="y", hue="x")<!-- raw HTML omitted -->).</p> <p>Two related idiosyncratic color specifications are deprecated, but they will continue to work (with a warning) for one release cycle:</p> <ul> <li>Passing a <!-- raw HTML omitted -->palette<!-- raw HTML omitted --> without explicitly assigning <!-- raw HTML omitted -->hue<!-- raw HTML omitted --> is no longer supported (add an explicitly redundant <!-- raw HTML omitted -->hue<!-- raw HTML omitted --> assignment instead).</li> <li>Passing a <!-- raw HTML omitted -->color<!-- raw HTML omitted --> while assigning <!-- raw HTML omitted -->hue<!-- raw HTML omitted --> to produce a gradient is no longer supported (use <!-- raw HTML omitted -->palette="dark:{color}"<!-- raw HTML omitted --> or <!-- raw HTML omitted -->palette="light:{color}"<!-- raw HTML omitted --> instead).</li> </ul> <p>Finally, like other seaborn functions, the default palette now depends on the variable type, and a sequential palette will be used with numeric data. To retain the previous behavior, pass the name of a qualitative palette (e.g., <!-- raw HTML omitted -->palette="deep"<!-- raw HTML omitted --> for seaborn's default). Accordingly, the functions have gained a parameter to control numeric color mappings (<!-- raw HTML omitted -->hue_norm<!-- raw HTML omitted -->).</p> <h3>Other features, enhancements, and changes</h3> <p>The following updates apply to multiple categorical functions.</p> <ul> <li>All functions now accept a <!-- raw HTML omitted -->legend<!-- raw HTML omitted --> parameter, which can be a boolean (to suppress the legend) or one of <!-- raw HTML omitted -->{"auto", "brief", "full"}<!-- raw HTML omitted --> to control the amount of information shown in the legend for a numerical color mapping.</li> <li>All functions now accept a callable <!-- raw HTML omitted -->formatter<!-- raw HTML omitted --> parameter to control the string representation of the data.</li> <li>All functions that draw a solid patch now accept a boolean <!-- raw HTML omitted -->fill<!-- raw HTML omitted --> parameter, which when set to <!-- raw HTML omitted -->False<!-- raw HTML omitted --> will draw line-art elements.</li> <li>All functions that support dodging now have an additional <!-- raw HTML omitted -->gap<!-- raw HTML omitted --> parameter that can be set to a non-zero value to leave space between dodged elements.</li> <li>The <code>boxplot</code>, <code>boxenplot</code>, and <code>violinplot</code> functions now support a single <!-- raw HTML omitted -->linecolor<!-- raw HTML omitted --> parameter.</li> <li>The default value for <!-- raw HTML omitted -->dodge<!-- raw HTML omitted --> has changed from <!-- raw HTML omitted -->True<!-- raw HTML omitted --> to <!-- raw HTML omitted -->"auto"<!-- raw HTML omitted -->. With <!-- raw HTML omitted -->"auto"<!-- raw HTML omitted -->, elements will dodge only when at least one set of elements would otherwise overlap.</li> <li>When the value axis of the plot has a non-linear scale, the statistical operations (e.g. an aggregation in <code>pointplot</code> or the kernel density fit in <code>violinplot</code>) are now applied in that scale space.</li> <li>All functions now accept a <!-- raw HTML omitted -->log_scale<!-- raw HTML omitted --> parameter. With a single argument, this will set the scale on the "value" axis (<em>opposite</em> the categorical axis). A tuple will set each axis directly (although setting a log scale categorical axis also requires <!-- raw HTML omitted -->native_scale=True<!-- raw HTML omitted -->).</li> <li>The <!-- raw HTML omitted -->orient<!-- raw HTML omitted --> parameter now accepts <!-- raw HTML omitted -->"x"/"y"<!-- raw HTML omitted --> to specify the categorical axis, matching the objects interface.</li> <li>The categorical functions are generally more deferential to the user's additional matplotlib keyword arguments.</li> <li>Using <!-- raw HTML omitted -->"gray"<!-- raw HTML omitted --> to select an automatic gray value that complements the main palette is now deprecated in favor of <!-- raw HTML omitted -->"auto"<!-- raw HTML omitted -->.</li> </ul> <p>The following updates are function-specific.</p> <ul> <li>In <code>pointplot</code>, a single <code>matplotlib.lines.Line2D</code> artist is now used rather than adding separate <code>matplotlib.collections.PathCollection</code> artist for the points. As a result, it is now possible to pass additional keyword arguments for complete customization the appearance of both the lines and markers; additionally, the legend representation is improved. Accordingly, parameters that previously allowed only partial customization (<!-- raw HTML omitted -->scale<!-- raw HTML omitted -->, <!-- raw HTML omitted -->join<!-- raw HTML omitted -->, and <!-- raw HTML omitted -->errwidth<!-- raw HTML omitted -->) are now deprecated. The old parameters will now trigger detailed warning messages with instructions for adapting existing code.</li> <li>The bandwidth specification in <code>violinplot</code> better aligns with <code>kdeplot</code>, as the <!-- raw HTML omitted -->bw<!-- raw HTML omitted --> parameter is now deprecated in favor of <!-- raw HTML omitted -->bw_method<!-- raw HTML omitted --> and <!-- raw HTML omitted -->bw_adjust<!-- raw HTML omitted -->.</li> <li>In <code>boxenplot</code>, the boxen are now drawn with separate patch artists in each tail. This may have consequences for code that works with the underlying artists, but it produces a better result for low-alpha / unfilled plots and enables proper area/density scaling.</li> <li>In <code>barplot</code>, the <!-- raw HTML omitted -->errcolor<!-- raw HTML omitted --> and <!-- raw HTML omitted -->errwidth<!-- raw HTML omitted --> parameters are now deprecated in favor of a more general <!-- raw HTML omitted -->err_kws<!-- raw HTML omitted -->` dictionary. The existing parameters will continue to work for two releases.</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="f2abeb0113
"><code>f2abeb0</code></a> Update version metadata to 0.13.0</li> <li><a href="d657c54add
"><code>d657c54</code></a> Merge branch 'master' into v0.13</li> <li><a href="a8b6cac4c8
"><code>a8b6cac</code></a> Assorted small doc updates (<a href="https://redirect.github.com/mwaskom/seaborn/issues/3502">#3502</a>)</li> <li><a href="4888797c7a
"><code>4888797</code></a> Avoid a matplotlib warning for strip/swarmplot with unfilled marker (<a href="https://redirect.github.com/mwaskom/seaborn/issues/3501">#3501</a>)</li> <li><a href="782b71ee81
"><code>782b71e</code></a> Address a couple of warnings that turned up only in the docs (<a href="https://redirect.github.com/mwaskom/seaborn/issues/3500">#3500</a>)</li> <li><a href="6b9e2fb93b
"><code>6b9e2fb</code></a> Fix catplot with kind='point' to avoid color warning (<a href="https://redirect.github.com/mwaskom/seaborn/issues/3499">#3499</a>)</li> <li><a href="43d762ef50
"><code>43d762e</code></a> Set version string for v0.13.0rc0</li> <li><a href="0d46709b4a
"><code>0d46709</code></a> Postpone some removals of deprecated features (<a href="https://redirect.github.com/mwaskom/seaborn/issues/3497">#3497</a>)</li> <li><a href="b2f0de03b1
"><code>b2f0de0</code></a> Update release notes</li> <li><a href="92c22bc699
"><code>92c22bc</code></a> Restore implicit hue for wide categorical data (<a href="https://redirect.github.com/mwaskom/seaborn/issues/3496">#3496</a>)</li> <li>Additional commits viewable in <a href="https://github.com/mwaskom/seaborn/compare/v0.12.2...v0.13.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
179 lines
5.1 KiB
TOML
179 lines
5.1 KiB
TOML
[build-system]
|
|
build-backend = "poetry.core.masonry.api"
|
|
requires = ["poetry-core"]
|
|
|
|
[tool.black]
|
|
target-version = ["py311"]
|
|
|
|
[tool.coverage.report]
|
|
exclude_also = ["if __name__ == .__main__.:", "if not isinstance(engine, Engine):", "@overload"]
|
|
|
|
[tool.coverage.run]
|
|
branch = true
|
|
dynamic_context = "test_function"
|
|
relative_files = true
|
|
source = ["src"]
|
|
|
|
[tool.mypy]
|
|
disallow_untyped_defs = true
|
|
exclude = ["\\.ipynb_checkpoints", "\\.mypy_cache", "\\.mytest_cache", "build", "venv", "\\.venv", "Jupyter"]
|
|
follow_imports = "silent"
|
|
ignore_missing_imports = true
|
|
install_types = true
|
|
non_interactive = true
|
|
plugins = ["sqlalchemy.ext.mypy.plugin"]
|
|
python_version = "3.11"
|
|
warn_redundant_casts = true
|
|
warn_unused_ignores = false
|
|
|
|
[tool.poetry]
|
|
authors = ["AKI Projektgruppe 23"]
|
|
classifiers = []
|
|
description = "Data Integration, Extraction, and Visualization using Text Mining and AI to reveal valuable insights, hidden patterns, and gain a deeper understanding of the business landscape of german companies."
|
|
documentation = "https://cuddly-waffle-r416zgy.pages.github.io/"
|
|
homepage = "https://cuddly-waffle-r416zgy.pages.github.io/"
|
|
keywords = ["deutschland", "economy", "transparenzregister", "dataintegration", "handelsregister"]
|
|
maintainers = [
|
|
"Philipp Horstenkamp <philipp@horstenkamp.de>",
|
|
"Tristan Nolde <contact@trisnol.dev>",
|
|
"Sebastian Zeleny <zeleny.sebastian@fh-swf.de>",
|
|
"Kim Mesewinkel-Risse",
|
|
"Tim Ronneburg",
|
|
"Sascha Zhu <sascha.zhu@eugreen.de>"
|
|
]
|
|
name = "aki-prj23-transparenzregister"
|
|
packages = [{include = "aki_prj23_transparenzregister", from = "src"}]
|
|
readme = "README.md"
|
|
repository = "https://github.com/fhswf/aki_prj23_transparenzregister"
|
|
version = "0.1.0"
|
|
|
|
[tool.poetry.dependencies]
|
|
SQLAlchemy = "^1.4.49"
|
|
aenum = "^3.1.15"
|
|
cachetools = "^5.3.1"
|
|
dash = "^2.13.0"
|
|
dash-auth = "^2.0.0"
|
|
dash-bootstrap-components = "^1.5.0"
|
|
deutschland = {git = "https://github.com/TrisNol/deutschland.git", branch = "hotfix/python-3.11-support"}
|
|
frozendict = "^2.3.8"
|
|
loguru = "^0.7.0"
|
|
matplotlib = "^3.7.2"
|
|
pgeocode = "^0.4.1"
|
|
psycopg2-binary = "^2.9.7"
|
|
pymongo = "^4.5.0"
|
|
python = "^3.11"
|
|
python-dotenv = "^1.0.0"
|
|
seaborn = "^0.13.0"
|
|
selenium = "^4.12.0"
|
|
spacy = "^3.6.1"
|
|
spacy-sentiws = "^3.0.0"
|
|
torch = {version = "*", source = "torch-cpu"}
|
|
torchaudio = {version = "*", source = "torch-cpu"}
|
|
torchvision = {version = "*", source = "torch-cpu"}
|
|
tqdm = "^4.66.1"
|
|
transformers = {version = "*", extras = ["torch"]}
|
|
xmltodict = "^0.13.0"
|
|
|
|
[tool.poetry.extras]
|
|
ingest = ["selenium", "deutschland", "xmltodict"]
|
|
transformation = ["torch", "torchaudio", "torchvision", "transformers", "spacy-sentiws", "spacy"]
|
|
web-server = ["dash", "dash-auth", "dash-bootstrap-components", "matplotlib", "seaborn"]
|
|
|
|
[tool.poetry.group.develop.dependencies]
|
|
black = {extras = ["jupyter"], version = "^23.9.1"}
|
|
jupyterlab = "^4.0.6"
|
|
nbconvert = "^7.8.0"
|
|
openpyxl = "^3.1.2"
|
|
pre-commit = "^3.4.0"
|
|
rise = "^5.7.1"
|
|
|
|
[tool.poetry.group.doc.dependencies]
|
|
jupyter = "^1.0.0"
|
|
myst-parser = "^1.0.0"
|
|
nbsphinx = "^0.9.2"
|
|
sphinx = "*"
|
|
sphinx-copybutton = "^0.5.2"
|
|
sphinx-git = "^11.0.0"
|
|
sphinx-notfound-page = "^1.0.0"
|
|
sphinx-rtd-theme = "^1.3.0"
|
|
sphinx_autodoc_typehints = "*"
|
|
sphinxcontrib-drawio = "^0.0.17"
|
|
sphinxcontrib-mermaid = "^0.9.2"
|
|
sphinxcontrib-napoleon = "^0.7"
|
|
|
|
[tool.poetry.group.lint.dependencies]
|
|
SQLAlchemy = {version = "^1.4.46", extras = ["mypy"]}
|
|
black = "^23.9.1"
|
|
loguru-mypy = "^0.0.4"
|
|
mypy = "^1.6.1"
|
|
pandas-stubs = "^2.0.3.230814"
|
|
pip-audit = "^2.6.1"
|
|
pip-licenses = "^4.3.2"
|
|
ruff = "^0.1.0"
|
|
types-cachetools = "^5.3.0.6"
|
|
types-pyOpenSSL = "*"
|
|
types-requests = "^2.31.0.2"
|
|
types-setuptools = "*"
|
|
types-tabulate = "^0.9.0.3"
|
|
types-tqdm = "^4.66.0.2"
|
|
|
|
[tool.poetry.group.test.dependencies]
|
|
pytest = "^7.4.2"
|
|
pytest-clarity = "^1.0.1"
|
|
pytest-cov = "^4.1.0"
|
|
pytest-mock = "^3.11.1"
|
|
pytest-repeat = "^0.9.1"
|
|
|
|
[tool.poetry.scripts]
|
|
copy-sql = "aki_prj23_transparenzregister.utils.sql.copy_sql:copy_db_cli"
|
|
data-transformation = "aki_prj23_transparenzregister.utils.data_transfer:transfer_data_cli"
|
|
reset-sql = "aki_prj23_transparenzregister.utils.sql.connector:reset_all_tables_cli"
|
|
webserver = "aki_prj23_transparenzregister.ui.app:main"
|
|
|
|
[[tool.poetry.source]]
|
|
name = "torch-cpu"
|
|
priority = "explicit"
|
|
url = "https://download.pytorch.org/whl/cpu"
|
|
|
|
[tool.ruff]
|
|
exclude = [
|
|
".bzr",
|
|
".direnv",
|
|
".eggs",
|
|
".git",
|
|
".git-rewrite",
|
|
".hg",
|
|
".mypy_cache",
|
|
".nox",
|
|
".pants.d",
|
|
".pytype",
|
|
".ruff_cache",
|
|
".svn",
|
|
".tox",
|
|
".venv",
|
|
"__pypackages__",
|
|
"_build",
|
|
"buck-out",
|
|
"build",
|
|
"dist",
|
|
"node_modules",
|
|
"venv"
|
|
]
|
|
# Never enforce `E501` (line length violations).
|
|
ignore = ["E501", "D105"]
|
|
line-length = 88
|
|
# Enable flake8-bugbear (`B`) rules.
|
|
select = ["E", "F", "B", "I", "S", "RSE", "RET", "SLF", "SIM", "TID", "PD", "PL", "PLE", "PLR", "PLW", "NPY", "UP", "D", "N", "A", "C4", "T20", "PT"]
|
|
src = ["src"]
|
|
target-version = "py311"
|
|
unfixable = ["B"]
|
|
|
|
[tool.ruff.flake8-builtins]
|
|
builtins-ignorelist = ["id"]
|
|
|
|
[tool.ruff.per-file-ignores]
|
|
"tests/*.py" = ["S101", "SLF001", "S311", "D103", "PLR0913"]
|
|
|
|
[tool.ruff.pydocstyle]
|
|
convention = "google"
|