From 38198fb8805180091de1699c50e4076a1c0313c2 Mon Sep 17 00:00:00 2001 From: thatmattlove Date: Sat, 17 Feb 2024 14:32:41 -0500 Subject: [PATCH] update dependencies & update lint config --- mypy.ini | 2 +- poetry.lock | 37 ++++++++++++++++++++++++++----------- pyproject.toml | 18 ++++++++---------- 3 files changed, 35 insertions(+), 22 deletions(-) diff --git a/mypy.ini b/mypy.ini index 5a51c99..3706a08 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1,5 +1,5 @@ [mypy] -python_version = 3.6 +python_version = 3.12 warn_return_any = True warn_unused_configs = True ignore_missing_imports = True diff --git a/poetry.lock b/poetry.lock index 3d18e1d..47da532 100644 --- a/poetry.lock +++ b/poetry.lock @@ -37,6 +37,8 @@ mypy-extensions = ">=0.4.3" packaging = ">=22.0" pathspec = ">=0.9.0" platformdirs = ">=2" +tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} +typing-extensions = {version = ">=4.0.1", markers = "python_version < \"3.11\""} [package.extras] colorama = ["colorama (>=0.4.3)"] @@ -306,6 +308,7 @@ files = [ [package.dependencies] mypy-extensions = ">=1.0.0" +tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} typing-extensions = ">=4.1.0" [package.extras] @@ -505,17 +508,17 @@ renderpm = ["rl-renderPM (>=4.0.3,<4.1)"] [[package]] name = "rich" -version = "13.3.4" +version = "13.7.0" description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal" optional = false python-versions = ">=3.7.0" files = [ - {file = "rich-13.3.4-py3-none-any.whl", hash = "sha256:22b74cae0278fd5086ff44144d3813be1cedc9115bdfabbfefd86400cb88b20a"}, - {file = "rich-13.3.4.tar.gz", hash = "sha256:b5d573e13605423ec80bdd0cd5f8541f7844a0e71a13f74cf454ccb2f490708b"}, + {file = "rich-13.7.0-py3-none-any.whl", hash = "sha256:6da14c108c4866ee9520bbffa71f6fe3962e193b7da68720583850cd4548e235"}, + {file = "rich-13.7.0.tar.gz", hash = "sha256:5cb5123b5cf9ee70584244246816e9114227e0b98ad9176eede6ad54bf5403fa"}, ] [package.dependencies] -markdown-it-py = ">=2.2.0,<3.0.0" +markdown-it-py = ">=2.2.0" pygments = ">=2.13.0,<3.0.0" [package.extras] @@ -581,25 +584,37 @@ webencodings = ">=0.4" doc = ["sphinx", "sphinx_rtd_theme"] test = ["coverage[toml]", "pytest", "pytest-cov", "pytest-flake8", "pytest-isort"] +[[package]] +name = "tomli" +version = "2.0.1" +description = "A lil' TOML parser" +optional = false +python-versions = ">=3.7" +files = [ + {file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"}, + {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"}, +] + [[package]] name = "typer" -version = "0.7.0" +version = "0.9.0" description = "Typer, build great CLIs. Easy to code. Based on Python type hints." optional = false python-versions = ">=3.6" files = [ - {file = "typer-0.7.0-py3-none-any.whl", hash = "sha256:b5e704f4e48ec263de1c0b3a2387cd405a13767d2f907f44c1a08cbad96f606d"}, - {file = "typer-0.7.0.tar.gz", hash = "sha256:ff797846578a9f2a201b53442aedeb543319466870fbe1c701eab66dd7681165"}, + {file = "typer-0.9.0-py3-none-any.whl", hash = "sha256:5d96d986a21493606a358cae4461bd8cdf83cbf33a5aa950ae629ca3b51467ee"}, + {file = "typer-0.9.0.tar.gz", hash = "sha256:50922fd79aea2f4751a8e0408ff10d2662bd0c8bbfa84755a699f3bada2978b2"}, ] [package.dependencies] click = ">=7.1.1,<9.0.0" +typing-extensions = ">=3.7.4.3" [package.extras] -all = ["colorama (>=0.4.3,<0.5.0)", "rich (>=10.11.0,<13.0.0)", "shellingham (>=1.3.0,<2.0.0)"] +all = ["colorama (>=0.4.3,<0.5.0)", "rich (>=10.11.0,<14.0.0)", "shellingham (>=1.3.0,<2.0.0)"] dev = ["autoflake (>=1.3.1,<2.0.0)", "flake8 (>=3.8.3,<4.0.0)", "pre-commit (>=2.17.0,<3.0.0)"] doc = ["cairosvg (>=2.5.2,<3.0.0)", "mdx-include (>=1.4.1,<2.0.0)", "mkdocs (>=1.1.2,<2.0.0)", "mkdocs-material (>=8.1.4,<9.0.0)", "pillow (>=9.3.0,<10.0.0)"] -test = ["black (>=22.3.0,<23.0.0)", "coverage (>=6.2,<7.0)", "isort (>=5.0.6,<6.0.0)", "mypy (==0.910)", "pytest (>=4.4.0,<8.0.0)", "pytest-cov (>=2.10.0,<5.0.0)", "pytest-sugar (>=0.9.4,<0.10.0)", "pytest-xdist (>=1.32.0,<4.0.0)", "rich (>=10.11.0,<13.0.0)", "shellingham (>=1.3.0,<2.0.0)"] +test = ["black (>=22.3.0,<23.0.0)", "coverage (>=6.2,<7.0)", "isort (>=5.0.6,<6.0.0)", "mypy (==0.910)", "pytest (>=4.4.0,<8.0.0)", "pytest-cov (>=2.10.0,<5.0.0)", "pytest-sugar (>=0.9.4,<0.10.0)", "pytest-xdist (>=1.32.0,<4.0.0)", "rich (>=10.11.0,<14.0.0)", "shellingham (>=1.3.0,<2.0.0)"] [[package]] name = "typing-extensions" @@ -625,5 +640,5 @@ files = [ [metadata] lock-version = "2.0" -python-versions = ">=3.11.7,<4.0" -content-hash = "84b4e8242c81ff52a225d95e284f0d52268aa6b649ccdf3c8710787c6cd1a4cf" +python-versions = ">=3.10.0,<4.0" +content-hash = "e4a48c03d6e005ac8e91525673e03bef8817ead90832e9fe708b56604f1011b7" diff --git a/pyproject.toml b/pyproject.toml index 8370912..97de584 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,8 +2,6 @@ authors = ["Matt Love "] classifiers = [ "Development Status :: 4 - Beta", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", @@ -23,11 +21,11 @@ version = "0.2.0" [tool.poetry.dependencies] pillow = "^10.2.0" -python = ">=3.11.7,<4.0" +python = ">=3.10.0,<4.0" reportlab = "^4.1.0" -rich = "^13.3.4" +rich = "^13.7.0" svglib = "^1.5.1" -typer = "^0.7.0" +typer = "^0.9.0" [tool.poetry.scripts] favicons = "favicons:cli" @@ -53,21 +51,21 @@ exclude = [ "__pycache__", "test.py", ] -ignore = [ +lint.ignore = [ "RET504", "D202", "S301", ] line-length = 100 -select = ["B", "C", "D", "E", "F", "N", "S", "RET", "W"] +lint.select = ["B", "C", "D", "E", "F", "N", "S", "RET", "W"] -[tool.ruff.pydocstyle] +[tool.ruff.lint.pydocstyle] convention = "pep257" -[tool.ruff.mccabe] +[tool.ruff.lint.mccabe] max-complexity = 10 -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] # Disable unused import warning for modules "favicons/*/__init__.py" = ["F401"] "favicons/__init__.py" = ["F401"]