Chore/rework workflow (#52)

* Reworked the lint action
* Removed the file change requirement
* Repaired mypy
* Repaired pip-audit
This commit is contained in:
2023-08-17 22:05:12 +02:00
committed by GitHub
parent daa315804e
commit e4a57c9136
19 changed files with 159 additions and 101 deletions

View File

@@ -2,25 +2,30 @@
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core"]
[tookl.mypy]
disallow_untyped_defs = true
exclude = ".ipynb_checkpoints, .mypy_cache, .mytest_cache, build"
follow_imports = "silent"
ignore_missing_imports = true
plugins = ["sqlalchemy.ext.mypy.plugin"]
python_version = "3.11"
warn_redundant_casts = true
warn_unused_ignores = true
[tool.black]
target-version = ["py311"]
[tool.coverage.report]
exclude_also = ["if __name__ == .__main__.:"]
[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"
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 = true
[tool.poetry]
authors = ["AKI Projektgruppe 23"]
description = "A project analysing the german transparenzregister and other data sources to find shared business interests and shared personal and other links for lots of companies."
@@ -67,7 +72,9 @@ pandas-stubs = "^2.0.1.230501"
pip-audit = "^2.6.1"
pip-licenses = "^4.3.2"
ruff = "^0.0.270"
types-pyOpenSSL = "*"
types-requests = "^2.31.0.1"
types-setuptools = "*"
types-tqdm = "^4.65.0"
[tool.poetry.group.test.dependencies]
@@ -108,7 +115,6 @@ line-length = 88
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"
# Avoid trying to fix flake8-bugbear (`B`) violations.
unfixable = ["B"]
[tool.ruff.flake8-builtins]