Skip to content

Commit

Permalink
update build environment
Browse files Browse the repository at this point in the history
  • Loading branch information
NimVek committed Nov 19, 2023
1 parent 013b973 commit e87f1cc
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 16 deletions.
11 changes: 0 additions & 11 deletions .mypy.ini

This file was deleted.

2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 7 additions & 1 deletion dev/deps_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
18 changes: 15 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>"]
classifiers = [
Expand All @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit e87f1cc

Please sign in to comment.