mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-04-24 17:32:33 +02:00
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.1.0 to 0.1.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/astral-sh/ruff/releases">ruff's releases</a>.</em></p> <blockquote> <h2>v0.1.1</h2> <h2>Changes</h2> <h3>Rule changes</h3> <ul> <li>Add unsafe fix for <code>escape-sequence-in-docstring</code> (<code>D301</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/7970">#7970</a>)</li> </ul> <h3>Configuration</h3> <ul> <li>Respect <code>#(deprecated)</code> attribute in configuration options (<a href="https://redirect.github.com/astral-sh/ruff/pull/8035">#8035</a>)</li> <li>Add <code>[format|lint].exclude</code> options (<a href="https://redirect.github.com/astral-sh/ruff/pull/8000">#8000</a>)</li> <li>Respect <code>tab-size</code> setting in formatter (<a href="https://redirect.github.com/astral-sh/ruff/pull/8006">#8006</a>)</li> <li>Add <code>lint.preview</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8002">#8002</a>)</li> </ul> <h3>Preview features</h3> <ul> <li>[<code>pylint</code>] Implement <code>literal-membership</code> (<code>PLR6201</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/7973">#7973</a>)</li> <li>[<code>pylint</code>] Implement <code>too-many-boolean-expressions</code> (<code>PLR0916</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/7975">#7975</a>)</li> <li>[<code>pylint</code>] Implement <code>misplaced-bare-raise</code> (<code>E0704</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/7961">#7961</a>)</li> <li>[<code>pylint</code>] Implement <code>global-at-module-level</code> (<code>W0604</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/8058">#8058</a>)</li> <li>[<code>pylint</code>] Implement <code>unspecified-encoding</code> (<code>PLW1514</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/7939">#7939</a>)</li> <li>Add fix for <code>triple-single-quotes</code> (<code>D300</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/7967">#7967</a>)</li> </ul> <h3>Formatter</h3> <ul> <li>New code style badge for <code>ruff format</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/7878">#7878</a>)</li> <li>Fix comments outside expression parentheses (<a href="https://redirect.github.com/astral-sh/ruff/pull/7873">#7873</a>)</li> <li>Add <code>--target-version</code> to <code>ruff format</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8055">#8055</a>)</li> <li>Skip over parentheses when detecting <code>in</code> keyword (<a href="https://redirect.github.com/astral-sh/ruff/pull/8054">#8054</a>)</li> <li>Add <code>--diff</code> option to <code>ruff format</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/7937">#7937</a>)</li> <li>Insert newline after nested function or class statements (<a href="https://redirect.github.com/astral-sh/ruff/pull/7946">#7946</a>)</li> <li>Use <code>pass</code> over ellipsis in non-function/class contexts (<a href="https://redirect.github.com/astral-sh/ruff/pull/8049">#8049</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>Lazily evaluate all PEP 695 type alias values (<a href="https://redirect.github.com/astral-sh/ruff/pull/8033">#8033</a>)</li> <li>Avoid failed assertion when showing fixes from stdin (<a href="https://redirect.github.com/astral-sh/ruff/pull/8029">#8029</a>)</li> <li>Avoid flagging HTTP and HTTPS literals in urllib-open (<a href="https://redirect.github.com/astral-sh/ruff/pull/8046">#8046</a>)</li> <li>Avoid flagging <code>bad-dunder-method-name</code> for <code>_</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8015">#8015</a>)</li> <li>Remove Python 2-only methods from <code>URLOpen</code> audit (<a href="https://redirect.github.com/astral-sh/ruff/pull/8047">#8047</a>)</li> <li>Use set bracket replacement for <code>iteration-over-set</code> to preserve whitespace and comments (<a href="https://redirect.github.com/astral-sh/ruff/pull/8001">#8001</a>)</li> </ul> <h3>Documentation</h3> <ul> <li>Update tutorial to match revised Ruff defaults (<a href="https://redirect.github.com/astral-sh/ruff/pull/8066">#8066</a>)</li> <li>Update rule <code>B005</code> docs (<a href="https://redirect.github.com/astral-sh/ruff/pull/8028">#8028</a>)</li> <li>Update GitHub actions example in docs to use <code>--output-format</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8014">#8014</a>)</li> <li>Document <code>lint.preview</code> and <code>format.preview</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8032">#8032</a>)</li> <li>Clarify that new rules should be added to <code>RuleGroup::Preview</code>. (<a href="https://redirect.github.com/astral-sh/ruff/pull/7989">#7989</a>)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md">ruff's changelog</a>.</em></p> <blockquote> <h2>0.1.1</h2> <h3>Rule changes</h3> <ul> <li>Add unsafe fix for <code>escape-sequence-in-docstring</code> (<code>D301</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/7970">#7970</a>)</li> </ul> <h3>Configuration</h3> <ul> <li>Respect <code>#(deprecated)</code> attribute in configuration options (<a href="https://redirect.github.com/astral-sh/ruff/pull/8035">#8035</a>)</li> <li>Add <code>[format|lint].exclude</code> options (<a href="https://redirect.github.com/astral-sh/ruff/pull/8000">#8000</a>)</li> <li>Respect <code>tab-size</code> setting in formatter (<a href="https://redirect.github.com/astral-sh/ruff/pull/8006">#8006</a>)</li> <li>Add <code>lint.preview</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8002">#8002</a>)</li> </ul> <h3>Preview features</h3> <ul> <li>[<code>pylint</code>] Implement <code>literal-membership</code> (<code>PLR6201</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/7973">#7973</a>)</li> <li>[<code>pylint</code>] Implement <code>too-many-boolean-expressions</code> (<code>PLR0916</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/7975">#7975</a>)</li> <li>[<code>pylint</code>] Implement <code>misplaced-bare-raise</code> (<code>E0704</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/7961">#7961</a>)</li> <li>[<code>pylint</code>] Implement <code>global-at-module-level</code> (<code>W0604</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/8058">#8058</a>)</li> <li>[<code>pylint</code>] Implement <code>unspecified-encoding</code> (<code>PLW1514</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/7939">#7939</a>)</li> <li>Add fix for <code>triple-single-quotes</code> (<code>D300</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/7967">#7967</a>)</li> </ul> <h3>Formatter</h3> <ul> <li>New code style badge for <code>ruff format</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/7878">#7878</a>)</li> <li>Fix comments outside expression parentheses (<a href="https://redirect.github.com/astral-sh/ruff/pull/7873">#7873</a>)</li> <li>Add <code>--target-version</code> to <code>ruff format</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8055">#8055</a>)</li> <li>Skip over parentheses when detecting <code>in</code> keyword (<a href="https://redirect.github.com/astral-sh/ruff/pull/8054">#8054</a>)</li> <li>Add <code>--diff</code> option to <code>ruff format</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/7937">#7937</a>)</li> <li>Insert newline after nested function or class statements (<a href="https://redirect.github.com/astral-sh/ruff/pull/7946">#7946</a>)</li> <li>Use <code>pass</code> over ellipsis in non-function/class contexts (<a href="https://redirect.github.com/astral-sh/ruff/pull/8049">#8049</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>Lazily evaluate all PEP 695 type alias values (<a href="https://redirect.github.com/astral-sh/ruff/pull/8033">#8033</a>)</li> <li>Avoid failed assertion when showing fixes from stdin (<a href="https://redirect.github.com/astral-sh/ruff/pull/8029">#8029</a>)</li> <li>Avoid flagging HTTP and HTTPS literals in urllib-open (<a href="https://redirect.github.com/astral-sh/ruff/pull/8046">#8046</a>)</li> <li>Avoid flagging <code>bad-dunder-method-name</code> for <code>_</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8015">#8015</a>)</li> <li>Remove Python 2-only methods from <code>URLOpen</code> audit (<a href="https://redirect.github.com/astral-sh/ruff/pull/8047">#8047</a>)</li> <li>Use set bracket replacement for <code>iteration-over-set</code> to preserve whitespace and comments (<a href="https://redirect.github.com/astral-sh/ruff/pull/8001">#8001</a>)</li> </ul> <h3>Documentation</h3> <ul> <li>Update tutorial to match revised Ruff defaults (<a href="https://redirect.github.com/astral-sh/ruff/pull/8066">#8066</a>)</li> <li>Update rule <code>B005</code> docs (<a href="https://redirect.github.com/astral-sh/ruff/pull/8028">#8028</a>)</li> <li>Update GitHub actions example in docs to use <code>--output-format</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8014">#8014</a>)</li> <li>Document <code>lint.preview</code> and <code>format.preview</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8032">#8032</a>)</li> <li>Clarify that new rules should be added to <code>RuleGroup::Preview</code>. (<a href="https://redirect.github.com/astral-sh/ruff/pull/7989">#7989</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="22cf451d51
"><code>22cf451</code></a> Release 0.1.1 (<a href="https://redirect.github.com/astral-sh/ruff/issues/8073">#8073</a>)</li> <li><a href="ec1be60dcb
"><code>ec1be60</code></a> Remove leftover constant tuple reference (<a href="https://redirect.github.com/astral-sh/ruff/issues/8062">#8062</a>)</li> <li><a href="a327b4da87
"><code>a327b4d</code></a> sequence -> iterable in tutorial (<a href="https://redirect.github.com/astral-sh/ruff/issues/8067">#8067</a>)</li> <li><a href="cdc5e2fb58
"><code>cdc5e2f</code></a> Update tutorial to match revised Ruff defaults (<a href="https://redirect.github.com/astral-sh/ruff/issues/8066">#8066</a>)</li> <li><a href="b5d3caf033
"><code>b5d3caf</code></a> chore: add code style badge for <code>ruff format</code> (<a href="https://redirect.github.com/astral-sh/ruff/issues/7878">#7878</a>)</li> <li><a href="8f9753f58e
"><code>8f9753f</code></a> Comments outside expression parentheses (<a href="https://redirect.github.com/astral-sh/ruff/issues/7873">#7873</a>)</li> <li><a href="67b043482a
"><code>67b0434</code></a> Use <code>pass</code> over ellipsis in non-function/class contexts (<a href="https://redirect.github.com/astral-sh/ruff/issues/8049">#8049</a>)</li> <li><a href="693f957b90
"><code>693f957</code></a> [pylint] - implement <code>global-at-module-level</code> (<code>W0604</code>) (<a href="https://redirect.github.com/astral-sh/ruff/issues/8058">#8058</a>)</li> <li><a href="a85ed309ea
"><code>a85ed30</code></a> Respect <code>#(deprecated)</code> attribute in configuration options (<a href="https://redirect.github.com/astral-sh/ruff/issues/8035">#8035</a>)</li> <li><a href="2e225d7538
"><code>2e225d7</code></a> Accept <code>--target-version</code> in the format CLI (<a href="https://redirect.github.com/astral-sh/ruff/issues/8055">#8055</a>)</li> <li>Additional commits viewable in <a href="https://github.com/astral-sh/ruff/compare/v0.1.0...v0.1.1">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.1"
|
|
types-cachetools = "^5.3.0.6"
|
|
types-pyOpenSSL = "*"
|
|
types-requests = "^2.31.0.10"
|
|
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.12.0"
|
|
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"
|