From e87f1cc07aa83bb73bf804d93b1123a63f6ce182 Mon Sep 17 00:00:00 2001 From: NimVek Date: Sun, 19 Nov 2023 22:19:55 +0100 Subject: [PATCH] update build environment --- .mypy.ini | 11 ----------- .pre-commit-config.yaml | 2 +- dev/deps_update.py | 8 +++++++- pyproject.toml | 18 +++++++++++++++--- 4 files changed, 23 insertions(+), 16 deletions(-) delete mode 100644 .mypy.ini diff --git a/.mypy.ini b/.mypy.ini deleted file mode 100644 index d3c6eee..0000000 --- a/.mypy.ini +++ /dev/null @@ -1,11 +0,0 @@ -[mypy] -ignore_missing_imports = True -check_untyped_defs = True -strict_optional = True -warn_redundant_casts = True -warn_unused_ignores = True -show_error_context = True -show_column_numbers = True -show_error_codes = True -pretty = True -warn_unused_configs = True diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ca74056..d732274 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -109,7 +109,7 @@ repos : args: [--all, --in-place] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.5 + rev: v0.1.6 hooks: - id: ruff diff --git a/dev/deps_update.py b/dev/deps_update.py index 5e5e451..aeb0637 100644 --- a/dev/deps_update.py +++ b/dev/deps_update.py @@ -9,7 +9,13 @@ def poerty_add(dependency, args): - subprocess.run(["poetry", "add", *args, dependency + "@latest"], check=True) + try: + subprocess.run(["poetry", "add", *args, dependency + "@latest"], check=True) + except subprocess.CalledProcessError as e: + if e.returncode == 1: + print(f"Update of {dependency} failed.") + else: + raise e def update_dependencies(dependencies, args=None): diff --git a/pyproject.toml b/pyproject.toml index 4c98a90..6f496ec 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,6 +23,18 @@ multi_line_output = 3 sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER", "LOGGING"] use_parentheses = true +[tool.mypy] +check_untyped_defs = true +ignore_missing_imports = true +pretty = true +show_column_numbers = true +show_error_codes = true +show_error_context = true +strict_optional = true +warn_redundant_casts = true +warn_unused_configs = true +warn_unused_ignores = true + [tool.poetry] authors = ["NimVek "] classifiers = [ @@ -47,13 +59,13 @@ version = "22.11.0" [tool.poetry.dependencies] GitPython = "^3.1.40" beautifulsoup4 = "^4.12.2" -dateparser = "^1.1.8" +dateparser = "^1.2.0" furl = "^2.1.3" html2markdown = "^0.1.7" incremental = "^22.10.0" parse = "^1.19.1" platformdirs = "^3.11.0" -pydantic = "^2.4.2" +pydantic = "^2.5.1" python = "^3.11" requests = "^2.31.0" termcolor = "^2.3.0" @@ -69,7 +81,7 @@ pytest-cov = "^4.1.0" pytest-randomly = "^3.15.0" pytest-skip-slow = "^0.0.5" pytest-timeout = "^2.2.0" -pytest-xdist = "^3.3.1" +pytest-xdist = "^3.4.0" toml = "^0.10.2" toml-sort = "^0.23.1" types-toml = "^0.10.8.7"