From c6c4451b48ddaa5e3f2b9753cec93cf126fbcb53 Mon Sep 17 00:00:00 2001 From: Li Li Date: Thu, 1 Sep 2022 10:05:20 +1000 Subject: [PATCH 1/2] bump versions --- .pylintrc | 124 +++++++------------------------------------------ poetry.lock | 54 +++++++++++++-------- pyproject.toml | 4 +- 3 files changed, 54 insertions(+), 128 deletions(-) diff --git a/.pylintrc b/.pylintrc index e9cc3675..ece9fe65 100644 --- a/.pylintrc +++ b/.pylintrc @@ -21,10 +21,7 @@ extension-pkg-whitelist= # Add files or directories to the blacklist. They should be base names, not # paths. -ignore= - CVS, - ## No need to lint auto-generated files - setup.py, +ignore=CVS # Add files or directories matching the regex patterns to the blacklist. The # regex matches against base names, not paths. @@ -79,101 +76,23 @@ confidence= # --enable=similarities". If you want to run only the classes checker, but have # no Warning level messages displayed, use "--disable=all --enable=classes # --disable=W". -disable= - print-statement, - parameter-unpacking, - unpacking-in-except, - old-raise-syntax, - backtick, - long-suffix, - old-ne-operator, - old-octal-literal, - import-star-module-level, - non-ascii-bytes-literal, - raw-checker-failed, - bad-inline-option, - locally-disabled, - file-ignored, - suppressed-message, - useless-suppression, - deprecated-pragma, - use-symbolic-message-instead, - apply-builtin, - basestring-builtin, - buffer-builtin, - cmp-builtin, - coerce-builtin, - execfile-builtin, - file-builtin, - long-builtin, - raw_input-builtin, - reduce-builtin, - standarderror-builtin, - unicode-builtin, - xrange-builtin, - coerce-method, - delslice-method, - getslice-method, - setslice-method, - no-absolute-import, - old-division, - dict-iter-method, - dict-view-method, - next-method-called, - metaclass-assignment, - indexing-exception, - raising-string, - reload-builtin, - oct-method, - hex-method, - nonzero-method, - cmp-method, - input-builtin, - round-builtin, - intern-builtin, - unichr-builtin, - map-builtin-not-iterating, - zip-builtin-not-iterating, - range-builtin-not-iterating, - filter-builtin-not-iterating, - using-cmp-argument, - eq-without-hash, - div-method, - idiv-method, - rdiv-method, - exception-message-attribute, - invalid-str-codec, - sys-max-int, - bad-python3-import, - deprecated-string-function, - deprecated-str-translate-call, - deprecated-itertools-function, - deprecated-types-field, - next-method-defined, - dict-items-not-iterating, - dict-keys-not-iterating, - dict-values-not-iterating, - deprecated-operator-function, - deprecated-urllib-function, - xreadlines-attribute, - deprecated-sys-function, - exception-escape, - comprehension-escape, - ## Excessive false positives - duplicate-code, - ## We have code review to ensure readability, no need for the following - ## highly-opinionated checks - too-many-arguments, - too-many-branches, - too-many-lines, - too-many-locals, - too-many-statements, - ## Disable false positives due to a bug in astroid, can be removed when - ## astroid>2.3.3 is released, see - ## https://q-ctrl.atlassian.net/browse/QENG-605 - unsubscriptable-object, - ## Handled by Black - bad-continuation, +disable=raw-checker-failed, + bad-inline-option, + locally-disabled, + file-ignored, + suppressed-message, + useless-suppression, + deprecated-pragma, + use-symbolic-message-instead, + ## Excessive false positives + duplicate-code, + ## We have code review to ensure readability, no need for the following + ## highly-opinionated checks + too-many-arguments, + too-many-branches, + too-many-lines, + too-many-locals, + too-many-statements, # Enable the message, report, category or checker with the given id(s). You can @@ -365,13 +284,6 @@ max-line-length=100 # Maximum number of lines in a module. max-module-lines=1000 -# List of optional constructs for which whitespace checking is disabled. `dict- -# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}. -# `trailing-comma` allows a space between comma and closing bracket: (a, ). -# `empty-line` allows space-only lines. -no-space-check=trailing-comma, - dict-separator - # Allow the body of a class to be on the same line as the declaration if body # contains single statement. single-line-class-stmt=no diff --git a/poetry.lock b/poetry.lock index c39a0495..6e1beef2 100644 --- a/poetry.lock +++ b/poetry.lock @@ -49,17 +49,17 @@ python-versions = "*" [[package]] name = "astroid" -version = "2.11.2" +version = "2.12.5" description = "An abstract syntax tree for Python with inference support." category = "dev" optional = false -python-versions = ">=3.6.2" +python-versions = ">=3.7.2" [package.dependencies] lazy-object-proxy = ">=1.4.0" typed-ast = {version = ">=1.4.0,<2.0", markers = "implementation_name == \"cpython\" and python_version < \"3.8\""} typing-extensions = {version = ">=3.10", markers = "python_version < \"3.10\""} -wrapt = ">=1.11,<2" +wrapt = {version = ">=1.11,<2", markers = "python_version < \"3.11\""} [[package]] name = "async-timeout" @@ -196,7 +196,7 @@ importlib-metadata = {version = "*", markers = "python_version < \"3.8\""} [[package]] name = "colorama" -version = "0.4.4" +version = "0.4.5" description = "Cross-platform colored terminal text." category = "dev" optional = false @@ -843,24 +843,26 @@ python-versions = ">=3.5" [[package]] name = "pylint" -version = "2.13.4" +version = "2.15.0" description = "python code static checker" category = "dev" optional = false -python-versions = ">=3.6.2" +python-versions = ">=3.7.2" [package.dependencies] -astroid = ">=2.11.2,<=2.12.0-dev0" -colorama = {version = "*", markers = "sys_platform == \"win32\""} +astroid = ">=2.12.4,<=2.14.0-dev0" +colorama = {version = ">=0.4.5", markers = "sys_platform == \"win32\""} dill = ">=0.2" isort = ">=4.2.5,<6" mccabe = ">=0.6,<0.8" platformdirs = ">=2.2.0" tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} +tomlkit = ">=0.10.1" typing-extensions = {version = ">=3.10.0", markers = "python_version < \"3.10\""} [package.extras] -testutil = ["gitpython (>3)"] +spelling = ["pyenchant (>=3.2,<4.0)"] +testutils = ["gitpython (>3)"] [[package]] name = "pylint-runner" @@ -995,7 +997,7 @@ toml = ">=0.10.0,<0.11.0" [[package]] name = "qctrl-visualizer" -version = "3.3.0" +version = "3.4.0" description = "Q-CTRL Python Visualizer" category = "dev" optional = false @@ -1178,8 +1180,8 @@ optional = false python-versions = ">=3.5" [package.extras] -lint = ["flake8", "mypy", "docutils-stubs"] test = ["pytest"] +lint = ["docutils-stubs", "mypy", "flake8"] [[package]] name = "toml" @@ -1197,6 +1199,14 @@ category = "dev" optional = false python-versions = ">=3.7" +[[package]] +name = "tomlkit" +version = "0.11.4" +description = "Style preserving TOML library" +category = "dev" +optional = false +python-versions = ">=3.6,<4.0" + [[package]] name = "tornado" version = "6.1" @@ -1308,7 +1318,7 @@ testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest- [metadata] lock-version = "1.1" python-versions = ">=3.7.2,<3.11" -content-hash = "9a243786d2fd724ceb4fd5dc754c0ac0729c0580d7d579e67f28f6c63b8d74f1" +content-hash = "d643ab0654d8cf0f0aa615a51c3c78346f593d4f87a5e10fe850233813805303" [metadata.files] aiohttp = [ @@ -1398,8 +1408,8 @@ appnope = [ {file = "appnope-0.1.2.tar.gz", hash = "sha256:dd83cd4b5b460958838f6eb3000c660b1f9caf2a5b1de4264e941512f603258a"}, ] astroid = [ - {file = "astroid-2.11.2-py3-none-any.whl", hash = "sha256:cc8cc0d2d916c42d0a7c476c57550a4557a083081976bf42a73414322a6411d9"}, - {file = "astroid-2.11.2.tar.gz", hash = "sha256:8d0a30fe6481ce919f56690076eafbb2fb649142a89dc874f1ec0e7a011492d0"}, + {file = "astroid-2.12.5-py3-none-any.whl", hash = "sha256:d612609242996c4365aeb0345e61edba34363eaaba55f1c0addf6a98f073bef6"}, + {file = "astroid-2.12.5.tar.gz", hash = "sha256:396c88d0a58d7f8daadf730b2ce90838bf338c6752558db719ec6f99c18ec20e"}, ] async-timeout = [ {file = "async-timeout-4.0.2.tar.gz", hash = "sha256:2163e1640ddb52b7a8c80d0a67a08587e5d245cc9c553a74a847056bc2976b15"}, @@ -1519,8 +1529,8 @@ click = [ {file = "click-8.0.4.tar.gz", hash = "sha256:8458d7b1287c5fb128c90e23381cf99dcde74beaf6c7ff6384ce84d6fe090adb"}, ] colorama = [ - {file = "colorama-0.4.4-py2.py3-none-any.whl", hash = "sha256:9f47eda37229f68eee03b24b9748937c7dc3868f906e8ba69fbcbdd3bc5dc3e2"}, - {file = "colorama-0.4.4.tar.gz", hash = "sha256:5941b2b48a20143d2267e95b1c2a7603ce057ee39fd88e7329b0c292aa16869b"}, + {file = "colorama-0.4.5-py2.py3-none-any.whl", hash = "sha256:854bf444933e37f5824ae7bfc1e98d5bce2ebe4160d46b5edf346a89358e99da"}, + {file = "colorama-0.4.5.tar.gz", hash = "sha256:e6c6b4334fc50988a639d9b98aa429a0b57da6e17b9a44f0451f930b6967b7a4"}, ] coverage = [ {file = "coverage-6.3.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:9b27d894748475fa858f9597c0ee1d4829f44683f3813633aaf94b19cb5453cf"}, @@ -2171,8 +2181,8 @@ pygments = [ {file = "Pygments-2.11.2.tar.gz", hash = "sha256:4e426f72023d88d03b2fa258de560726ce890ff3b630f88c21cbb8b2503b8c6a"}, ] pylint = [ - {file = "pylint-2.13.4-py3-none-any.whl", hash = "sha256:8672cf7441b81410f5de7defdf56e2d559c956fd0579652f2e0a0a35bea2d546"}, - {file = "pylint-2.13.4.tar.gz", hash = "sha256:7cc6d0c4f61dff440f9ed8b657f4ecd615dcfe35345953eb7b1dc74afe901d7a"}, + {file = "pylint-2.15.0-py3-none-any.whl", hash = "sha256:4b124affc198b7f7c9b5f9ab690d85db48282a025ef9333f51d2d7281b92a6c3"}, + {file = "pylint-2.15.0.tar.gz", hash = "sha256:4f3f7e869646b0bd63b3dfb79f3c0f28fc3d2d923ea220d52620fd625aed92b0"}, ] pylint-runner = [ {file = "pylint_runner-0.5.4-py3-none-any.whl", hash = "sha256:9e04d72471a9225db6734334ec578ac37b47130625553df149ca6a20ecd565a9"}, @@ -2323,8 +2333,8 @@ qctrl-commons = [ {file = "qctrl_commons-17.1.1-py3-none-any.whl", hash = "sha256:b5b3a23cf896be9b6206996940ec57fbfadf638cd211240cf3e52433133da6f7"}, ] qctrl-visualizer = [ - {file = "qctrl-visualizer-3.3.0.tar.gz", hash = "sha256:645814b1f69ef6fd31f70abd964fff40a1484f3da383afe1bc7c25b94958c974"}, - {file = "qctrl_visualizer-3.3.0-py3-none-any.whl", hash = "sha256:225023c43099d25b507ca921847e05363e8b48eb7dc966a250544cf5265ebc76"}, + {file = "qctrl-visualizer-3.4.0.tar.gz", hash = "sha256:374306b5667cad6f0deebc585d423a059a089a2572646d29a94c1f087fe73169"}, + {file = "qctrl_visualizer-3.4.0-py3-none-any.whl", hash = "sha256:2d2ec928df80f21718414e370a2056be7d70b69d16ebc5ce7924d251262fdd97"}, ] requests = [ {file = "requests-2.27.1-py2.py3-none-any.whl", hash = "sha256:f22fa1e554c9ddfd16e6e41ac79759e17be9e492b3587efa038054674760e72d"}, @@ -2413,6 +2423,10 @@ tomli = [ {file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"}, {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"}, ] +tomlkit = [ + {file = "tomlkit-0.11.4-py3-none-any.whl", hash = "sha256:25d4e2e446c453be6360c67ddfb88838cfc42026322770ba13d1fbd403a93a5c"}, + {file = "tomlkit-0.11.4.tar.gz", hash = "sha256:3235a9010fae54323e727c3ac06fb720752fe6635b3426e379daec60fbd44a83"}, +] tornado = [ {file = "tornado-6.1-cp35-cp35m-macosx_10_9_x86_64.whl", hash = "sha256:d371e811d6b156d82aa5f9a4e08b58debf97c302a35714f6f45e35139c332e32"}, {file = "tornado-6.1-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:0d321a39c36e5f2c4ff12b4ed58d41390460f798422c4504e09eb5678e09998c"}, diff --git a/pyproject.toml b/pyproject.toml index 6c16234a..6facdcbd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,12 +46,12 @@ toml = "^0.10.0" black = "^22.3.0" mypy = "^0.931" pytest = "^7.0" -pylint = "^2.13" +pylint = "^2.14" pylint_runner = "^0.5.4" sphinx = "^3.2.1" sphinx-rtd-theme = "^0.4.3" nbval = "^0.9.5" -qctrl-visualizer = "^3.3.0" +qctrl-visualizer = "^3.4.0" isort = "^5.7.0" pre-commit = "^2.9.3" From 19e932811e2d80d04415f4d09fb0bf5ae4fb4e44 Mon Sep 17 00:00:00 2001 From: Li Li Date: Thu, 1 Sep 2022 10:08:22 +1000 Subject: [PATCH 2/2] .gitlint --- .gitlint | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlint b/.gitlint index 2c67ba32..b9b077e5 100644 --- a/.gitlint +++ b/.gitlint @@ -6,4 +6,4 @@ contrib=contrib-title-conventional-commits ignore=body-is-missing [contrib-title-conventional-commits] -types=feat,fix,misc +types=feat,fix,refactor,dep,remove,misc