From 02f94a2fde04adb656c53e47264adf8cfcb4e742 Mon Sep 17 00:00:00 2001 From: Sourajyoti Basak Date: Sun, 27 Mar 2022 20:07:26 +0530 Subject: [PATCH 1/9] build(poetry): only require `tomli` if python < 3.11 --- poetry.lock | 8 ++++---- pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/poetry.lock b/poetry.lock index 206e5de..56cf327 100644 --- a/poetry.lock +++ b/poetry.lock @@ -339,7 +339,7 @@ python-versions = ">=3.6" [[package]] name = "virtualenv" -version = "20.13.4" +version = "20.14.0" description = "Virtual Python Environment builder" category = "dev" optional = false @@ -358,7 +358,7 @@ testing = ["coverage (>=4)", "coverage-enable-subprocess (>=1)", "flaky (>=3)", [metadata] lock-version = "1.1" python-versions = "^3.8" -content-hash = "a70573c39e8a8b54472bdda5593a3996f9fb6a8245640507bba92f787df59000" +content-hash = "0dfca50116ecd32a6a9f46882e6b48095b3a0fffb22b3438e656b3b5abffdbf3" [metadata.files] atomicwrites = [ @@ -598,6 +598,6 @@ typing-extensions = [ {file = "typing_extensions-4.1.1.tar.gz", hash = "sha256:1a9462dcc3347a79b1f1c0271fbe79e844580bb598bafa1ed208b94da3cdcd42"}, ] virtualenv = [ - {file = "virtualenv-20.13.4-py2.py3-none-any.whl", hash = "sha256:c3e01300fb8495bc00ed70741f5271fc95fed067eb7106297be73d30879af60c"}, - {file = "virtualenv-20.13.4.tar.gz", hash = "sha256:ce8901d3bbf3b90393498187f2d56797a8a452fb2d0d7efc6fd837554d6f679c"}, + {file = "virtualenv-20.14.0-py2.py3-none-any.whl", hash = "sha256:1e8588f35e8b42c6ec6841a13c5e88239de1e6e4e4cedfd3916b306dc826ec66"}, + {file = "virtualenv-20.14.0.tar.gz", hash = "sha256:8e5b402037287126e81ccde9432b95a8be5b19d36584f64957060a3488c11ca8"}, ] diff --git a/pyproject.toml b/pyproject.toml index 8ae348d..d068cf7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,7 +51,7 @@ classifiers = [ [tool.poetry.dependencies] python = "^3.8" -tomli = "^2.0.1" +tomli = { version = "^2.0.1", python = "<3.11" } [tool.poetry.dev-dependencies] black = "^22.1" From b43714a5235c2ddec8eb554222979678df2af075 Mon Sep 17 00:00:00 2001 From: Sourajyoti Basak Date: Mon, 28 Mar 2022 14:31:11 +0530 Subject: [PATCH 2/9] refactor(config): use tomllib compatibility layer --- libpacstall/config.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libpacstall/config.py b/libpacstall/config.py index e0e395d..a0cd0ff 100644 --- a/libpacstall/config.py +++ b/libpacstall/config.py @@ -26,7 +26,10 @@ from pathlib import Path from typing import Any, Dict -from tomli import load +try: + import tomllib # type: ignore[unused-import] +except ModuleNotFoundError: + import tomli as tomllib # type: ignore[no-redef] class Settings: @@ -98,8 +101,8 @@ def __init__( config_file.touch(exist_ok=True) with config_file.open(mode="rb") as file: - raw_config = load(file) + raw_config = tomllib.load(file) # type: ignore[unknown-type] self.raw_config = raw_config - self.settings = Settings(raw_config) + self.settings = Settings(raw_config) # type: ignore[unknown-type] From 725ad49b2baa3aa265244c19529a856642cad779 Mon Sep 17 00:00:00 2001 From: David Brochero Date: Mon, 28 Mar 2022 10:26:30 -0300 Subject: [PATCH 3/9] docs: fix license boilerplates --- LICENSE_BOILERPLATE | 30 +++++++++++++++--------------- libpacstall/__init__.py | 30 +++++++++++++++--------------- libpacstall/config.py | 30 +++++++++++++++--------------- tests/test_config_parser.py | 30 +++++++++++++++--------------- 4 files changed, 60 insertions(+), 60 deletions(-) diff --git a/LICENSE_BOILERPLATE b/LICENSE_BOILERPLATE index 3930cda..ed12f18 100644 --- a/LICENSE_BOILERPLATE +++ b/LICENSE_BOILERPLATE @@ -1,21 +1,21 @@ - ____ __ ____ - / __ \____ ___________/ /_____ _/ / / - / /_/ / __ `/ ___/ ___/ __/ __ `/ / / - / ____/ /_/ / /__(__ ) /_/ /_/ / / / -/_/ \__,_/\___/____/\__/\__,_/_/_/ + __ _ __ ____ __ ____ + / / (_) /_ / __ \____ ___________/ /_____ _/ / / + / / / / __ \/ /_/ / __ `/ ___/ ___/ __/ __ `/ / / + / /___/ / /_/ / ____/ /_/ / /__(__ ) /_/ /_/ / / / +/_____/_/_.___/_/ \__,_/\___/____/\__/\__,_/_/_/ Copyright (C) 2022-present -This file is part of Pacstall +This file is part of LibPacstall. -Pacstall is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, version 3 of the License +LibPacstall is free software: you can redistribute it and/or modify it under the +terms of the GNU General Public License as published by the Free Software +Foundation, either version 3 of the License, or (at your option) any later +version. -Pacstall is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. +LibPacstall is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A +PARTICULAR PURPOSE. See the GNU General Public License for more details. -You should have received a copy of the GNU General Public License -along with Pacstall. If not, see . +You should have received a copy of the GNU General Public License along with +LibPacstall. If not, see . diff --git a/libpacstall/__init__.py b/libpacstall/__init__.py index 558ec35..1cfe5eb 100644 --- a/libpacstall/__init__.py +++ b/libpacstall/__init__.py @@ -1,23 +1,23 @@ -# ____ __ ____ -# / __ \____ ___________/ /_____ _/ / / -# / /_/ / __ `/ ___/ ___/ __/ __ `/ / / -# / ____/ /_/ / /__(__ ) /_/ /_/ / / / -# /_/ \__,_/\___/____/\__/\__,_/_/_/ +# __ _ __ ____ __ ____ +# / / (_) /_ / __ \____ ___________/ /_____ _/ / / +# / / / / __ \/ /_/ / __ `/ ___/ ___/ __/ __ `/ / / +# / /___/ / /_/ / ____/ /_/ / /__(__ ) /_/ /_/ / / / +# /_____/_/_.___/_/ \__,_/\___/____/\__/\__,_/_/_/ # # Copyright (C) 2022-present # -# This file is part of Pacstall +# This file is part of LibPacstall. # -# Pacstall is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, version 3 of the License +# LibPacstall is free software: you can redistribute it and/or modify it under the +# terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Pacstall is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# LibPacstall is distributed in the hope that it will be useful, but WITHOUT ANY +# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. See the GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License -# along with Pacstall. If not, see . +# You should have received a copy of the GNU General Public License along with +# LibPacstall. If not, see . __version__ = "0.1.0" diff --git a/libpacstall/config.py b/libpacstall/config.py index e0e395d..dc8498d 100644 --- a/libpacstall/config.py +++ b/libpacstall/config.py @@ -1,24 +1,24 @@ -# ____ __ ____ -# / __ \____ ___________/ /_____ _/ / / -# / /_/ / __ `/ ___/ ___/ __/ __ `/ / / -# / ____/ /_/ / /__(__ ) /_/ /_/ / / / -# /_/ \__,_/\___/____/\__/\__,_/_/_/ +# __ _ __ ____ __ ____ +# / / (_) /_ / __ \____ ___________/ /_____ _/ / / +# / / / / __ \/ /_/ / __ `/ ___/ ___/ __/ __ `/ / / +# / /___/ / /_/ / ____/ /_/ / /__(__ ) /_/ /_/ / / / +# /_____/_/_.___/_/ \__,_/\___/____/\__/\__,_/_/_/ # # Copyright (C) 2022-present # -# This file is part of Pacstall +# This file is part of LibPacstall. # -# Pacstall is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, version 3 of the License +# LibPacstall is free software: you can redistribute it and/or modify it under the +# terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Pacstall is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# LibPacstall is distributed in the hope that it will be useful, but WITHOUT ANY +# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. See the GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License -# along with Pacstall. If not, see . +# You should have received a copy of the GNU General Public License along with +# LibPacstall. If not, see . """Module for config parsing.""" diff --git a/tests/test_config_parser.py b/tests/test_config_parser.py index 0e108c2..df54bba 100644 --- a/tests/test_config_parser.py +++ b/tests/test_config_parser.py @@ -1,24 +1,24 @@ -# ____ __ ____ -# / __ \____ ___________/ /_____ _/ / / -# / /_/ / __ `/ ___/ ___/ __/ __ `/ / / -# / ____/ /_/ / /__(__ ) /_/ /_/ / / / -# /_/ \__,_/\___/____/\__/\__,_/_/_/ +# __ _ __ ____ __ ____ +# / / (_) /_ / __ \____ ___________/ /_____ _/ / / +# / / / / __ \/ /_/ / __ `/ ___/ ___/ __/ __ `/ / / +# / /___/ / /_/ / ____/ /_/ / /__(__ ) /_/ /_/ / / / +# /_____/_/_.___/_/ \__,_/\___/____/\__/\__,_/_/_/ # # Copyright (C) 2022-present # -# This file is part of Pacstall +# This file is part of LibPacstall. # -# Pacstall is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, version 3 of the License +# LibPacstall is free software: you can redistribute it and/or modify it under the +# terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Pacstall is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# LibPacstall is distributed in the hope that it will be useful, but WITHOUT ANY +# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. See the GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License -# along with Pacstall. If not, see . +# You should have received a copy of the GNU General Public License along with +# LibPacstall. If not, see . """Tests for the config parser module.""" From 51701dcf4d456f8e27fcf1e524c61ad3a1514178 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 28 Mar 2022 18:05:36 +0000 Subject: [PATCH 4/9] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v3.2.0 → v4.1.0](https://github.com/pre-commit/pre-commit-hooks/compare/v3.2.0...v4.1.0) - [github.com/Lucas-C/pre-commit-hooks: v1.1.10 → v1.1.13](https://github.com/Lucas-C/pre-commit-hooks/compare/v1.1.10...v1.1.13) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 10af67d..05a4f1a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ ci: repos: # General - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.2.0 + rev: v4.1.0 hooks: - id: check-added-large-files - id: check-ast @@ -40,7 +40,7 @@ repos: types: [fish] # Misc - repo: https://github.com/Lucas-C/pre-commit-hooks - rev: v1.1.10 + rev: v1.1.13 hooks: - id: insert-license args: [ From 82c3133975d5e25eddd673bb84101b9c4e7bbd29 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 29 Mar 2022 09:43:52 +0000 Subject: [PATCH 5/9] build(deps-dev): bump black from 22.1.0 to 22.3.0 Bumps [black](https://github.com/psf/black) from 22.1.0 to 22.3.0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/compare/22.1.0...22.3.0) --- updated-dependencies: - dependency-name: black dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- poetry.lock | 52 +++++++++++++++++++++++++------------------------- pyproject.toml | 2 +- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/poetry.lock b/poetry.lock index 206e5de..3362ccf 100644 --- a/poetry.lock +++ b/poetry.lock @@ -22,7 +22,7 @@ tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (> [[package]] name = "black" -version = "22.1.0" +version = "22.3.0" description = "The uncompromising code formatter." category = "dev" optional = false @@ -33,7 +33,7 @@ click = ">=8.0.0" mypy-extensions = ">=0.4.3" pathspec = ">=0.9.0" platformdirs = ">=2" -tomli = ">=1.1.0" +tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} typing-extensions = {version = ">=3.10.0.0", markers = "python_version < \"3.10\""} [package.extras] @@ -358,7 +358,7 @@ testing = ["coverage (>=4)", "coverage-enable-subprocess (>=1)", "flaky (>=3)", [metadata] lock-version = "1.1" python-versions = "^3.8" -content-hash = "a70573c39e8a8b54472bdda5593a3996f9fb6a8245640507bba92f787df59000" +content-hash = "e6ee7cd5ca96b46d0df3f39e510269843338b0e56af3c3627ca461dec9245eab" [metadata.files] atomicwrites = [ @@ -370,29 +370,29 @@ attrs = [ {file = "attrs-21.4.0.tar.gz", hash = "sha256:626ba8234211db98e869df76230a137c4c40a12d72445c45d5f5b716f076e2fd"}, ] black = [ - {file = "black-22.1.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:1297c63b9e1b96a3d0da2d85d11cd9bf8664251fd69ddac068b98dc4f34f73b6"}, - {file = "black-22.1.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:2ff96450d3ad9ea499fc4c60e425a1439c2120cbbc1ab959ff20f7c76ec7e866"}, - {file = "black-22.1.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:0e21e1f1efa65a50e3960edd068b6ae6d64ad6235bd8bfea116a03b21836af71"}, - {file = "black-22.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e2f69158a7d120fd641d1fa9a921d898e20d52e44a74a6fbbcc570a62a6bc8ab"}, - {file = "black-22.1.0-cp310-cp310-win_amd64.whl", hash = "sha256:228b5ae2c8e3d6227e4bde5920d2fc66cc3400fde7bcc74f480cb07ef0b570d5"}, - {file = "black-22.1.0-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:b1a5ed73ab4c482208d20434f700d514f66ffe2840f63a6252ecc43a9bc77e8a"}, - {file = "black-22.1.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:35944b7100af4a985abfcaa860b06af15590deb1f392f06c8683b4381e8eeaf0"}, - {file = "black-22.1.0-cp36-cp36m-win_amd64.whl", hash = "sha256:7835fee5238fc0a0baf6c9268fb816b5f5cd9b8793423a75e8cd663c48d073ba"}, - {file = "black-22.1.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:dae63f2dbf82882fa3b2a3c49c32bffe144970a573cd68d247af6560fc493ae1"}, - {file = "black-22.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5fa1db02410b1924b6749c245ab38d30621564e658297484952f3d8a39fce7e8"}, - {file = "black-22.1.0-cp37-cp37m-win_amd64.whl", hash = "sha256:c8226f50b8c34a14608b848dc23a46e5d08397d009446353dad45e04af0c8e28"}, - {file = "black-22.1.0-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:2d6f331c02f0f40aa51a22e479c8209d37fcd520c77721c034517d44eecf5912"}, - {file = "black-22.1.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:742ce9af3086e5bd07e58c8feb09dbb2b047b7f566eb5f5bc63fd455814979f3"}, - {file = "black-22.1.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:fdb8754b453fb15fad3f72cd9cad3e16776f0964d67cf30ebcbf10327a3777a3"}, - {file = "black-22.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f5660feab44c2e3cb24b2419b998846cbb01c23c7fe645fee45087efa3da2d61"}, - {file = "black-22.1.0-cp38-cp38-win_amd64.whl", hash = "sha256:6f2f01381f91c1efb1451998bd65a129b3ed6f64f79663a55fe0e9b74a5f81fd"}, - {file = "black-22.1.0-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:efbadd9b52c060a8fc3b9658744091cb33c31f830b3f074422ed27bad2b18e8f"}, - {file = "black-22.1.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:8871fcb4b447206904932b54b567923e5be802b9b19b744fdff092bd2f3118d0"}, - {file = "black-22.1.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:ccad888050f5393f0d6029deea2a33e5ae371fd182a697313bdbd835d3edaf9c"}, - {file = "black-22.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:07e5c049442d7ca1a2fc273c79d1aecbbf1bc858f62e8184abe1ad175c4f7cc2"}, - {file = "black-22.1.0-cp39-cp39-win_amd64.whl", hash = "sha256:373922fc66676133ddc3e754e4509196a8c392fec3f5ca4486673e685a421321"}, - {file = "black-22.1.0-py3-none-any.whl", hash = "sha256:3524739d76b6b3ed1132422bf9d82123cd1705086723bc3e235ca39fd21c667d"}, - {file = "black-22.1.0.tar.gz", hash = "sha256:a7c0192d35635f6fc1174be575cb7915e92e5dd629ee79fdaf0dcfa41a80afb5"}, + {file = "black-22.3.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:2497f9c2386572e28921fa8bec7be3e51de6801f7459dffd6e62492531c47e09"}, + {file = "black-22.3.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:5795a0375eb87bfe902e80e0c8cfaedf8af4d49694d69161e5bd3206c18618bb"}, + {file = "black-22.3.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:e3556168e2e5c49629f7b0f377070240bd5511e45e25a4497bb0073d9dda776a"}, + {file = "black-22.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:67c8301ec94e3bcc8906740fe071391bce40a862b7be0b86fb5382beefecd968"}, + {file = "black-22.3.0-cp310-cp310-win_amd64.whl", hash = "sha256:fd57160949179ec517d32ac2ac898b5f20d68ed1a9c977346efbac9c2f1e779d"}, + {file = "black-22.3.0-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:cc1e1de68c8e5444e8f94c3670bb48a2beef0e91dddfd4fcc29595ebd90bb9ce"}, + {file = "black-22.3.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6d2fc92002d44746d3e7db7cf9313cf4452f43e9ea77a2c939defce3b10b5c82"}, + {file = "black-22.3.0-cp36-cp36m-win_amd64.whl", hash = "sha256:a6342964b43a99dbc72f72812bf88cad8f0217ae9acb47c0d4f141a6416d2d7b"}, + {file = "black-22.3.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:328efc0cc70ccb23429d6be184a15ce613f676bdfc85e5fe8ea2a9354b4e9015"}, + {file = "black-22.3.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:06f9d8846f2340dfac80ceb20200ea5d1b3f181dd0556b47af4e8e0b24fa0a6b"}, + {file = "black-22.3.0-cp37-cp37m-win_amd64.whl", hash = "sha256:ad4efa5fad66b903b4a5f96d91461d90b9507a812b3c5de657d544215bb7877a"}, + {file = "black-22.3.0-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:e8477ec6bbfe0312c128e74644ac8a02ca06bcdb8982d4ee06f209be28cdf163"}, + {file = "black-22.3.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:637a4014c63fbf42a692d22b55d8ad6968a946b4a6ebc385c5505d9625b6a464"}, + {file = "black-22.3.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:863714200ada56cbc366dc9ae5291ceb936573155f8bf8e9de92aef51f3ad0f0"}, + {file = "black-22.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:10dbe6e6d2988049b4655b2b739f98785a884d4d6b85bc35133a8fb9a2233176"}, + {file = "black-22.3.0-cp38-cp38-win_amd64.whl", hash = "sha256:cee3e11161dde1b2a33a904b850b0899e0424cc331b7295f2a9698e79f9a69a0"}, + {file = "black-22.3.0-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:5891ef8abc06576985de8fa88e95ab70641de6c1fca97e2a15820a9b69e51b20"}, + {file = "black-22.3.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:30d78ba6bf080eeaf0b7b875d924b15cd46fec5fd044ddfbad38c8ea9171043a"}, + {file = "black-22.3.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:ee8f1f7228cce7dffc2b464f07ce769f478968bfb3dd1254a4c2eeed84928aad"}, + {file = "black-22.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6ee227b696ca60dd1c507be80a6bc849a5a6ab57ac7352aad1ffec9e8b805f21"}, + {file = "black-22.3.0-cp39-cp39-win_amd64.whl", hash = "sha256:9b542ced1ec0ceeff5b37d69838106a6348e60db7b8fdd245294dc1d26136265"}, + {file = "black-22.3.0-py3-none-any.whl", hash = "sha256:bc58025940a896d7e5356952228b68f793cf5fcb342be703c3a2669a1488cb72"}, + {file = "black-22.3.0.tar.gz", hash = "sha256:35020b8886c022ced9282b51b5a875b6d1ab0c387b31a065b84db7c33085ca79"}, ] cfgv = [ {file = "cfgv-3.3.1-py2.py3-none-any.whl", hash = "sha256:c6a0883f3917a037485059700b9e75da2464e6c27051014ad85ba6aaa5884426"}, diff --git a/pyproject.toml b/pyproject.toml index 8ae348d..268b5c0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ python = "^3.8" tomli = "^2.0.1" [tool.poetry.dev-dependencies] -black = "^22.1" +black = "^22.3" codespell = "^2.1.0" isort = "^5.10.1" mypy = "^0.942" From 427257c70066b0efe8f58aa4332f8ff36f9b9ca9 Mon Sep 17 00:00:00 2001 From: Sourajyoti Basak Date: Tue, 29 Mar 2022 16:54:33 +0530 Subject: [PATCH 6/9] ci(tests): upload coverage to CodeCov --- .../{codacy-coverage-reporter.yml => tests.yml} | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) rename .github/workflows/{codacy-coverage-reporter.yml => tests.yml} (68%) diff --git a/.github/workflows/codacy-coverage-reporter.yml b/.github/workflows/tests.yml similarity index 68% rename from .github/workflows/codacy-coverage-reporter.yml rename to .github/workflows/tests.yml index ba4d0c7..298e82f 100644 --- a/.github/workflows/codacy-coverage-reporter.yml +++ b/.github/workflows/tests.yml @@ -1,4 +1,4 @@ -name: codacy-coverage-reporter +name: tests on: ["push"] @@ -15,15 +15,15 @@ jobs: run: | curl -sSL https://install.python-poetry.org | python3 - poetry install - - name: Run tests + - name: Test LibPacstall run: | poetry run coverage run -m pytest . - name: Generate Coverage Report run: | poetry run coverage report -m poetry run coverage xml - - name: Upload Coverage Report to Codacy - uses: codacy/codacy-coverage-reporter-action@v1 + - name: Upload Coverage Report to CodeCov + uses: codecov/codecov-action@v2 with: - project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} - coverage-reports: coverage.xml + fail_ci_if_error: true + verbose: true From 75de796cebe229f99d2f6ad993eebf00a48f22bb Mon Sep 17 00:00:00 2001 From: Sourajyoti Basak Date: Tue, 29 Mar 2022 11:52:27 +0000 Subject: [PATCH 7/9] docs(readme): add codecov badge --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 840c89b..e0b8cf8 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,9 @@

python 3.8+ + + Codecov + code style: 3.8+ Codacy branch grade From 92b9b7d0e1527bf272dab6117f4a4b22a3c9fa66 Mon Sep 17 00:00:00 2001 From: Sourajyoti Basak Date: Wed, 30 Mar 2022 08:38:41 +0000 Subject: [PATCH 8/9] ci(dependabot): update github actions --- .github/dependabot.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index ba1c6b8..cfaddb1 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,3 +9,7 @@ updates: directory: "/" # Location of package manifests schedule: interval: "daily" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" From b4b4cec7acea4d4c664b6f771afd76252342a99d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 30 Mar 2022 08:40:10 +0000 Subject: [PATCH 9/9] build(deps): bump actions/checkout from 2 to 3 Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index ada0442..1224edf 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -38,7 +38,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 298e82f..0238a09 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,7 +6,7 @@ jobs: run: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Install Python uses: actions/setup-python@master with: