From 744b3c681763d1eba7b293e0b4182c5f391f89b5 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Sat, 19 Nov 2022 21:33:44 +0100 Subject: [PATCH 01/30] MAINT: activate and address pyright strict type checking --- .flake8 | 94 ++++++++++++++++++----------------- .vscode/settings.json | 1 + docs/_extend_docstrings.py | 2 +- docs/conf.py | 17 ++++--- pyrightconfig.json | 29 +++++++++-- src/qrules/_system_control.py | 2 +- 6 files changed, 88 insertions(+), 57 deletions(-) diff --git a/.flake8 b/.flake8 index 68479759..56433802 100644 --- a/.flake8 +++ b/.flake8 @@ -1,55 +1,57 @@ [flake8] application-import-names = - qrules + qrules filename = - ./docs/*.py - ./src/*.py - ./tests/*.py + ./docs/*.py + ./src/*.py + ./tests/*.py exclude = - **/__pycache__ - **/_build - /typings/** + **/__pycache__ + **/_build + /typings/** ignore = - # False positive with attribute docstrings - B018 - # https://github.com/psf/black#slices - E203 - # allowed by black - E231 - # https://github.com/psf/black#line-length - E501 - # should be possible to use {} in latex strings - FS003 - # block quote ends without a blank line (black formatting) - RST201 - # missing pygments - RST299 - # unexpected indentation (related to google style docstring) - RST301 - # enforce type ignore with mypy error codes (combined --extend-select=TI100) - TI1 - # https://github.com/psf/black#line-breaks--binary-operators - W503 + # False positive with attribute docstrings + B018 + # https://github.com/psf/black#slices + E203 + # allowed by black + E231 + # already covered by black + E302 + # https://github.com/psf/black#line-length + E501 + # should be possible to use {} in latex strings + FS003 + # block quote ends without a blank line (black formatting) + RST201 + # missing pygments + RST299 + # unexpected indentation (related to google style docstring) + RST301 + # enforce type ignore with mypy error codes (combined --extend-select=TI100) + TI1 + # https://github.com/psf/black#line-breaks--binary-operators + W503 extend-select = - TI100 + TI100 per-file-ignores = - # casts with generics - src/qrules/topology.py:E731 + # casts with generics + src/qrules/topology.py:E731 rst-roles = - attr - cite - class - doc - download - file - func - meth - mod - ref + attr + cite + class + doc + download + file + func + meth + mod + ref rst-directives = - autolink-preface - automethod - deprecated - envvar - exception - seealso + autolink-preface + automethod + deprecated + envvar + exception + seealso diff --git a/.vscode/settings.json b/.vscode/settings.json index 9cddda3c..6f5c031b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -54,6 +54,7 @@ ], "python.analysis.autoImportCompletions": false, "python.analysis.diagnosticMode": "workspace", + "python.analysis.typeCheckingMode": "strict", "python.formatting.provider": "black", "python.linting.banditEnabled": false, "python.linting.enabled": true, diff --git a/docs/_extend_docstrings.py b/docs/_extend_docstrings.py index fc2d02e1..acda9afc 100644 --- a/docs/_extend_docstrings.py +++ b/docs/_extend_docstrings.py @@ -115,7 +115,7 @@ def _graphviz_to_image( # pylint: disable=too-many-arguments options = {} global _GRAPHVIZ_COUNTER # pylint: disable=global-statement output_file = f"graphviz_{_GRAPHVIZ_COUNTER}" - _GRAPHVIZ_COUNTER += 1 + _GRAPHVIZ_COUNTER += 1 # pyright: ignore[reportConstantRedefinition] graphviz.Source(dot).render(f"{_IMAGE_DIR}/{output_file}", format=format) restructuredtext = "\n" if label: diff --git a/docs/conf.py b/docs/conf.py index 2c7da21e..d56b5248 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -46,11 +46,16 @@ author = "Common Partial Wave Analysis" # https://docs.readthedocs.io/en/stable/builds.html -BRANCH = os.environ.get("READTHEDOCS_VERSION", "stable") -if BRANCH == "latest": - BRANCH = "main" -if re.match(r"^\d+$", BRANCH): # PR preview - BRANCH = "stable" +def get_branch_name() -> str: + branch_name = os.environ.get("READTHEDOCS_VERSION", "stable") + if branch_name == "latest": + return "main" + if re.match(r"^\d+$", branch_name): # PR preview + return "stable" + return branch_name + + +BRANCH = get_branch_name() try: __VERSION = get_package_version(PACKAGE) @@ -402,7 +407,7 @@ def names(children, context, role, **kwargs): # type: ignore[no-untyped-def] return et_al(**kwargs)[formatted_names].format_data(context) -class MyStyle(UnsrtStyle): +class MyStyle(UnsrtStyle): # pyright: ignore[reportUntypedBaseClass] def __init__(self) -> None: super().__init__(abbreviate_names=True) diff --git a/pyrightconfig.json b/pyrightconfig.json index 4e24761a..8fca337b 100644 --- a/pyrightconfig.json +++ b/pyrightconfig.json @@ -1,11 +1,34 @@ { - "exclude": [".git", ".tox", "docs/_build"], - "include": ["docs", "src", "tests"], + "exclude": [ + "**/__pycache__", + "**/_build", + "**/.git", + "**/.ipynb_checkpoints", + "**/.mypy_cache", + "**/.pytest_cache", + "**/.tox" + ], "reportGeneralTypeIssues": false, + "reportIncompatibleMethodOverride": false, + "reportMissingParameterType": false, + "reportMissingTypeArgument": false, + "reportMissingTypeStubs": false, + "reportOverlappingOverload": false, "reportPrivateImportUsage": false, + "reportPrivateUsage": false, "reportUnboundVariable": false, + "reportUnknownArgumentType": false, + "reportUnknownLambdaType": false, + "reportUnknownMemberType": false, + "reportUnknownParameterType": false, + "reportUnknownVariableType": false, + "reportUnnecessaryComparison": false, + "reportUnnecessaryContains": false, + "reportUnnecessaryIsInstance": false, + "reportUntypedFunctionDecorator": false, "reportUnusedClass": true, "reportUnusedFunction": true, "reportUnusedImport": true, - "reportUnusedVariable": true + "reportUnusedVariable": true, + "typeCheckingMode": "strict" } diff --git a/src/qrules/_system_control.py b/src/qrules/_system_control.py index ebd3c580..77d52ac2 100644 --- a/src/qrules/_system_control.py +++ b/src/qrules/_system_control.py @@ -112,7 +112,7 @@ def create_interaction_properties( converted_solution = {k.__name__: v for k, v in qn_solution.items()} kw_args = { x.name: converted_solution[x.name] - for x in attrs.fields(InteractionProperties) + for x in attrs.fields(InteractionProperties) # type: ignore[arg-type] if x.name in converted_solution } From a81068431b4fca35857d23414def32fe87e3e993 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Sat, 19 Nov 2022 21:35:22 +0100 Subject: [PATCH 02/30] DX: activate and configure VSCode pylint extension --- .gitpod.yml | 1 + .vscode/extensions.json | 1 + .vscode/settings.json | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitpod.yml b/.gitpod.yml index 12c9a00a..ed73ea33 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -23,6 +23,7 @@ vscode: - executablebookproject.myst-highlight - github.vscode-pull-request-github - joaompinto.vscode-graphviz + - ms-python.pylint - ms-python.python - ms-python.vscode-pylance - ms-vsliveshare.vsliveshare diff --git a/.vscode/extensions.json b/.vscode/extensions.json index a8980d6e..5473aff9 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -10,6 +10,7 @@ "executablebookproject.myst-highlight", "github.vscode-pull-request-github", "joaompinto.vscode-graphviz", + "ms-python.pylint", "ms-python.python", "ms-python.vscode-pylance", "ms-vsliveshare.vsliveshare", diff --git a/.vscode/settings.json b/.vscode/settings.json index 6f5c031b..c7435ca5 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -52,6 +52,7 @@ "url": "https://zenodo.org/schemas/deposits/records/legacyrecord.json" } ], + "pylint.importStrategy": "fromEnvironment", "python.analysis.autoImportCompletions": false, "python.analysis.diagnosticMode": "workspace", "python.analysis.typeCheckingMode": "strict", @@ -62,8 +63,7 @@ "python.linting.mypyEnabled": true, "python.linting.pydocstyleEnabled": true, "python.linting.pylamaEnabled": false, - "python.linting.pylintCategorySeverity.refactor": "Information", - "python.linting.pylintEnabled": true, + "python.linting.pylintEnabled": false, "python.testing.pytestArgs": ["--color=no", "--no-cov"], "python.testing.pytestEnabled": true, "python.testing.unittestEnabled": false, From f83efc77b6dd01976c69c0adf8b25d528ab3fdf5 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Sat, 19 Nov 2022 21:36:14 +0100 Subject: [PATCH 03/30] DX: activate and configure VSCode flake8 extension --- .gitpod.yml | 1 + .vscode/extensions.json | 1 + .vscode/settings.json | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitpod.yml b/.gitpod.yml index ed73ea33..2655c5f6 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -23,6 +23,7 @@ vscode: - executablebookproject.myst-highlight - github.vscode-pull-request-github - joaompinto.vscode-graphviz + - ms-python.flake8 - ms-python.pylint - ms-python.python - ms-python.vscode-pylance diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 5473aff9..47500e07 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -10,6 +10,7 @@ "executablebookproject.myst-highlight", "github.vscode-pull-request-github", "joaompinto.vscode-graphviz", + "ms-python.flake8", "ms-python.pylint", "ms-python.python", "ms-python.vscode-pylance", diff --git a/.vscode/settings.json b/.vscode/settings.json index c7435ca5..ab5b55e6 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -36,6 +36,7 @@ "**/.git/**": true, "**/.tox/**": true }, + "flake8.importStrategy": "fromEnvironment", "git.rebaseWhenSync": true, "github-actions.workflows.pinned.workflows": [ ".github/workflows/linkcheck.yml", @@ -59,7 +60,7 @@ "python.formatting.provider": "black", "python.linting.banditEnabled": false, "python.linting.enabled": true, - "python.linting.flake8Enabled": true, + "python.linting.flake8Enabled": false, "python.linting.mypyEnabled": true, "python.linting.pydocstyleEnabled": true, "python.linting.pylamaEnabled": false, From c8af46d868e2422be5760a134c66c49a95b8a353 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Sat, 19 Nov 2022 21:36:56 +0100 Subject: [PATCH 04/30] DX: activate and configure VSCode isort extension --- .gitpod.yml | 1 + .vscode/extensions.json | 1 + .vscode/settings.json | 2 ++ 3 files changed, 4 insertions(+) diff --git a/.gitpod.yml b/.gitpod.yml index 2655c5f6..3531447a 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -24,6 +24,7 @@ vscode: - github.vscode-pull-request-github - joaompinto.vscode-graphviz - ms-python.flake8 + - ms-python.isort - ms-python.pylint - ms-python.python - ms-python.vscode-pylance diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 47500e07..dafc8063 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -11,6 +11,7 @@ "github.vscode-pull-request-github", "joaompinto.vscode-graphviz", "ms-python.flake8", + "ms-python.isort", "ms-python.pylint", "ms-python.python", "ms-python.vscode-pylance", diff --git a/.vscode/settings.json b/.vscode/settings.json index ab5b55e6..cd59aa82 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -43,6 +43,8 @@ ".github/workflows/ci-tests.yml", ".github/workflows/ci-docs.yml" ], + "isort.check": true, + "isort.importStrategy": "fromEnvironment", "json.schemas": [ { "fileMatch": ["*particle*.json"], From d20862c4c62781b83e929424ca31f7972e1e5c4d Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Sat, 19 Nov 2022 21:44:51 +0100 Subject: [PATCH 05/30] DX: implement GitHub Actions caching --- .github/workflows/ci-docs.yml | 10 ++++++++++ .github/workflows/ci-style.yml | 15 ++++++++++++--- .github/workflows/ci-tests.yml | 28 +++++++++++++++++++++------- .github/workflows/linkcheck.yml | 6 ++++++ .github/workflows/pr-linting.yml | 2 +- .pre-commit-config.yaml | 8 ++++---- src/qrules/solving.py | 8 ++++++-- 7 files changed, 60 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci-docs.yml b/.github/workflows/ci-docs.yml index c44cce26..890a15c7 100644 --- a/.github/workflows/ci-docs.yml +++ b/.github/workflows/ci-docs.yml @@ -1,4 +1,6 @@ name: CI-docs +env: + PYTHONHASHSEED: "0" on: push: @@ -19,6 +21,14 @@ jobs: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + key: | + ${{ github.workflow }}-${{ github.job }}-${{ runner.os }}-${{ hashFiles('.constraints/py3.*.txt', 'setup.cfg', 'src/**') }} + path: | + ./docs/_build + ~/.cache/pip/ + ~/.sympy-cache*/ - uses: actions/setup-python@v4 with: python-version: "3.8" diff --git a/.github/workflows/ci-style.yml b/.github/workflows/ci-style.yml index 5265b078..131b8593 100644 --- a/.github/workflows/ci-style.yml +++ b/.github/workflows/ci-style.yml @@ -5,10 +5,13 @@ on: branches: - main - epic/* + - "[0-9]+.[0-9]+.x" pull_request: branches: - main - epic/* + - "[0-9]+.[0-9]+.x" + workflow_dispatch: jobs: style: @@ -16,8 +19,15 @@ jobs: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v3 - - name: Set up Python 3.8 - uses: actions/setup-python@v4 + - uses: actions/cache@v3 + with: + key: | + ${{ github.workflow }}-${{ github.job }}-${{ runner.os }}-${{ hashFiles('.constraints/py3.*.txt', '.pre-commit-config.yaml') }} + path: | + .mypy_cache/ + ~/.cache/pip/ + ~/.cache/pre-commit/ + - uses: actions/setup-python@v4 with: python-version: "3.8" - name: Install dependencies @@ -30,7 +40,6 @@ jobs: pre-commit run mypy -a --color always pre-commit run pylint -a --color always - name: Run pre-commit hooks that don't work on pre-commit.ci - # cspell:ignore editorconfig run: | pre-commit run editorconfig-checker -a --color always pre-commit run pyright -a --color always diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 78fd6a3d..1e7e3417 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -16,12 +16,20 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-20.04] - python-version: ["3.7"] + os: + - ubuntu-20.04 + python-version: + - "3.7" steps: - - uses: actions/checkout@master - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + - uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + key: | + ${{ github.workflow }}-${{ github.job }}-${{ matrix.os }}-py${{ matrix.python-version }}-${{ hashFiles('.constraints/py3.*.txt', 'setup.cfg') }} + path: | + .pytest_cache + ~/.cache/pip/ + - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -70,8 +78,14 @@ jobs: python-version: "3.7" steps: - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + - uses: actions/cache@v3 + with: + key: | + ${{ github.workflow }}-${{ github.job }}-${{ matrix.os }}-py${{ matrix.python-version }}-${{ hashFiles('.constraints/py3.*.txt', 'setup.cfg') }} + path: | + .pytest_cache + ~/.cache/pip/ + - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/.github/workflows/linkcheck.yml b/.github/workflows/linkcheck.yml index 91673c89..0617a4e0 100644 --- a/.github/workflows/linkcheck.yml +++ b/.github/workflows/linkcheck.yml @@ -19,6 +19,12 @@ jobs: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + key: | + ${{ github.workflow }}-${{ github.job }}-${{ runner.os }}-${{ hashFiles('.constraints/py3.*.txt', 'setup.cfg') }} + path: | + ~/.cache/pip/ - uses: actions/setup-python@v4 with: python-version: "3.8" diff --git a/.github/workflows/pr-linting.yml b/.github/workflows/pr-linting.yml index bcc42de6..99c496f6 100644 --- a/.github/workflows/pr-linting.yml +++ b/.github/workflows/pr-linting.yml @@ -26,7 +26,7 @@ jobs: name: Check title runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 - name: Install Dependencies run: npm install @commitlint/config-conventional - uses: JulienKode/pull-request-name-linter-action@v0.5.0 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fce1a314..661779e2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -41,7 +41,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/ComPWA/repo-maintenance - rev: 0.0.149 + rev: 0.0.153 hooks: - id: check-dev-files args: @@ -65,7 +65,7 @@ repos: - id: blacken-docs - repo: https://github.com/streetsidesoftware/cspell-cli - rev: v6.13.0 + rev: v6.14.1 hooks: - id: cspell @@ -177,12 +177,12 @@ repos: - python - repo: https://github.com/ComPWA/mirrors-pyright - rev: v1.1.277 + rev: v1.1.280 hooks: - id: pyright - repo: https://github.com/asottile/pyupgrade - rev: v3.2.0 + rev: v3.2.2 hooks: - id: pyupgrade args: diff --git a/src/qrules/solving.py b/src/qrules/solving.py index bfb27493..b0f24678 100644 --- a/src/qrules/solving.py +++ b/src/qrules/solving.py @@ -825,7 +825,9 @@ def rule_passes(self) -> Dict[Tuple[int, Rule], int]: ) -class _GraphElementConstraint(Generic[_QNType], Constraint): +class _GraphElementConstraint( + Generic[_QNType], Constraint # pyright: ignore[reportUntypedBaseClass] +): """Wrapper class of the python-constraint Constraint class. This allows a customized definition of conservation rules, and hence a cleaner user @@ -944,7 +946,9 @@ def __update_variable_lists( ) -class _ConservationRuleConstraintWrapper(Constraint): +class _ConservationRuleConstraintWrapper( + Constraint # pyright: ignore[reportUntypedBaseClass] +): """Wrapper class of the python-constraint Constraint class. This allows a customized definition of conservation rules, and hence a cleaner user From b0a4da4b9508aa1df57c51b57c93420387fa3b3b Mon Sep 17 00:00:00 2001 From: GitHub Date: Sat, 19 Nov 2022 20:47:43 +0000 Subject: [PATCH 06/30] MAINT: update pip constraints and pre-commit --- .constraints/py3.10.txt | 74 ++++++++++++++++++++--------------------- .constraints/py3.6.txt | 20 +++++------ .constraints/py3.7.txt | 62 +++++++++++++++++----------------- .constraints/py3.8.txt | 74 ++++++++++++++++++++--------------------- .constraints/py3.9.txt | 74 ++++++++++++++++++++--------------------- 5 files changed, 152 insertions(+), 152 deletions(-) diff --git a/.constraints/py3.10.txt b/.constraints/py3.10.txt index d985bc27..32439f69 100644 --- a/.constraints/py3.10.txt +++ b/.constraints/py3.10.txt @@ -9,7 +9,7 @@ anyio==3.6.2 aquirdturtle-collapsible-headings==3.1.0 argon2-cffi==21.3.0 argon2-cffi-bindings==21.2.0 -astroid==2.12.12 +astroid==2.12.13 asttokens==2.1.0 attrs==22.1.0 babel==2.11.0 @@ -31,7 +31,7 @@ dill==0.3.6 distlib==0.3.6 docutils==0.17.1 entrypoints==0.4 -exceptiongroup==1.0.0 +exceptiongroup==1.0.4 execnet==1.9.0 executing==1.2.0 fastjsonschema==2.16.2 @@ -43,19 +43,19 @@ flake8-builtins==2.0.1 flake8-comprehensions==3.10.1 flake8-plugin-utils==1.3.2 flake8-pytest-style==1.6.0 -flake8-rst-docstrings==0.2.7 +flake8-rst-docstrings==0.3.0 flake8-type-ignore==0.1.0.post2 ; python_version >= "3.8.0" flake8-use-fstring==1.4 gprof2dot==2022.7.29 graphviz==0.20.1 -greenlet==2.0.0 +greenlet==2.0.1 hepunits==2.3.0 -identify==2.5.8 +identify==2.5.9 idna==3.4 imagesize==1.4.1 importlib-metadata==5.0.0 iniconfig==1.1.1 -ipykernel==6.17.0 +ipykernel==6.17.1 ipython==8.6.0 ipython-genutils==0.2.0 ipywidgets==8.0.2 @@ -63,19 +63,19 @@ isort==5.10.1 jedi==0.18.1 jinja2==3.1.2 json5==0.9.10 -jsonschema==4.16.0 +jsonschema==4.17.0 jupyter==1.0.0 jupyter-cache==0.5.0 -jupyter-client==7.4.4 +jupyter-client==7.4.7 jupyter-console==6.4.4 -jupyter-core==4.11.2 -jupyter-server==1.21.0 +jupyter-core==5.0.0 +jupyter-server==1.23.2 jupyterlab==3.5.0 jupyterlab-code-formatter==1.5.3 jupyterlab-markup==1.1.0 jupyterlab-myst==0.1.6 ; python_version >= "3.7.0" jupyterlab-pygments==0.2.2 -jupyterlab-server==2.16.2 +jupyterlab-server==2.16.3 jupyterlab-widgets==3.0.3 latexcodec==2.0.1 lazy-object-proxy==1.8.0 @@ -87,33 +87,33 @@ mccabe==0.7.0 mdit-py-plugins==0.3.1 mdurl==0.1.2 mistune==2.0.4 -mypy==0.982 +mypy==0.991 mypy-extensions==0.4.3 myst-nb==0.17.1 ; python_version >= "3.8.0" myst-parser==0.18.1 -nbclassic==0.4.7 +nbclassic==0.4.8 nbclient==0.5.13 -nbconvert==7.2.3 +nbconvert==7.2.5 nbformat==5.7.0 nbmake==1.3.0 nest-asyncio==1.5.6 nodeenv==1.7.0 notebook==6.5.2 -notebook-shim==0.2.0 +notebook-shim==0.2.2 packaging==21.3 pandocfilters==1.5.0 parso==0.8.3 -particle==0.20.1 -pathspec==0.10.1 +particle==0.21.0 +pathspec==0.10.2 pep8-naming==0.13.2 pexpect==4.8.0 pickleshare==0.7.5 -platformdirs==2.5.2 +platformdirs==2.5.4 pluggy==1.0.0 pre-commit==2.20.0 prometheus-client==0.15.0 -prompt-toolkit==3.0.31 -psutil==5.9.3 +prompt-toolkit==3.0.32 +psutil==5.9.4 ptyprocess==0.7.0 pure-eval==0.2.2 py==1.11.0 @@ -127,9 +127,9 @@ pydocstyle==6.1.1 pydot==1.4.2 pyflakes==2.5.0 pygments==2.13.0 -pylint==2.15.5 +pylint==2.15.6 pyparsing==3.0.9 -pyrsistent==0.19.1 +pyrsistent==0.19.2 pytest==7.2.0 pytest-cov==4.0.0 pytest-profiling==1.7.0 @@ -139,8 +139,8 @@ python-dateutil==2.8.2 pytz==2022.6 pyyaml==6.0 pyzmq==24.0.1 -qtconsole==5.3.2 -qtpy==2.2.1 +qtconsole==5.4.0 +qtpy==2.3.0 requests==2.28.1 restructuredtext-lint==1.4.0 send2trash==1.8.0 @@ -151,9 +151,9 @@ soupsieve==2.3.2.post1 sphinx==4.5.0 sphinx-autobuild==2021.3.14 sphinx-book-theme==0.3.3 -sphinx-codeautolink==0.12.0 +sphinx-codeautolink==0.12.1 sphinx-comments==0.0.3 -sphinx-copybutton==0.5.0 +sphinx-copybutton==0.5.1 sphinx-design==0.3.0 sphinx-thebe==0.1.2 sphinx-togglebutton==0.3.2 @@ -165,9 +165,9 @@ sphinxcontrib-htmlhelp==2.0.0 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 -sphobjinv==2.2.2 -sqlalchemy==1.4.42 -stack-data==0.6.0 +sphobjinv==2.3 +sqlalchemy==1.4.44 +stack-data==0.6.1 tabulate==0.9.0 terminado==0.17.0 tinycss2==1.2.1 @@ -175,22 +175,22 @@ toml==0.10.2 tomli==2.0.1 tomlkit==0.11.6 tornado==6.2 -tox==3.27.0 +tox==3.27.1 tqdm==4.64.1 traitlets==5.5.0 types-docutils==0.19.1.1 types-pkg-resources==0.1.3 -types-pyyaml==6.0.12.1 -types-requests==2.28.11.2 -types-setuptools==65.5.0.2 -types-urllib3==1.26.25.1 +types-pyyaml==6.0.12.2 +types-requests==2.28.11.5 +types-setuptools==65.5.0.3 +types-urllib3==1.26.25.4 typing-extensions==4.4.0 urllib3==1.26.12 -virtualenv==20.16.6 +virtualenv==20.16.7 wcwidth==0.2.5 webencodings==0.5.1 -websocket-client==1.4.1 -wheel==0.37.1 +websocket-client==1.4.2 +wheel==0.38.4 widgetsnbextension==4.0.3 wrapt==1.14.1 zipp==3.10.0 diff --git a/.constraints/py3.6.txt b/.constraints/py3.6.txt index f015559b..b611b10e 100644 --- a/.constraints/py3.6.txt +++ b/.constraints/py3.6.txt @@ -47,7 +47,7 @@ gitdb==4.0.9 gitpython==3.1.18 gprof2dot==2022.7.29 graphviz==0.19.1 -greenlet==2.0.0 +greenlet==2.0.1 hepunits==2.2.1 identify==2.4.4 idna==3.4 @@ -111,7 +111,7 @@ platformdirs==2.4.0 pluggy==1.0.0 pre-commit==2.17.0 prometheus-client==0.15.0 -prompt-toolkit==3.0.31 +prompt-toolkit==3.0.32 ptyprocess==0.7.0 py==1.11.0 pybtex==0.24.0 @@ -149,7 +149,7 @@ soupsieve==2.3.2.post1 sphinx==4.3.2 ; python_version < "3.8.0" sphinx-autobuild==2021.3.14 sphinx-book-theme==0.2.0 -sphinx-codeautolink==0.12.0 +sphinx-codeautolink==0.12.1 sphinx-comments==0.0.3 sphinx-copybutton==0.5.0 sphinx-design==0.0.13 @@ -163,23 +163,23 @@ sphinxcontrib-htmlhelp==2.0.0 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 -sphobjinv==2.2.2 -sqlalchemy==1.4.42 +sphobjinv==2.3 +sqlalchemy==1.4.44 terminado==0.12.1 testpath==0.6.0 toml==0.10.2 tomli==1.2.3 tornado==6.1 -tox==3.27.0 +tox==3.27.1 tqdm==4.64.1 traitlets==4.3.3 typed-ast==1.5.4 types-docutils==0.19.1.1 types-pkg-resources==0.1.3 -types-pyyaml==6.0.12.1 -types-requests==2.28.11.2 -types-setuptools==65.5.0.2 -types-urllib3==1.26.25.1 +types-pyyaml==6.0.12.2 +types-requests==2.28.11.5 +types-setuptools==65.5.0.3 +types-urllib3==1.26.25.4 typing-extensions==4.1.1 ; python_version < "3.10.0" urllib3==1.26.12 virtualenv==20.15.1 ; python_version < "3.8.0" diff --git a/.constraints/py3.7.txt b/.constraints/py3.7.txt index 79c10a08..bad30e36 100644 --- a/.constraints/py3.7.txt +++ b/.constraints/py3.7.txt @@ -9,7 +9,7 @@ anyio==3.6.2 aquirdturtle-collapsible-headings==3.1.0 argon2-cffi==21.3.0 argon2-cffi-bindings==21.2.0 -astroid==2.12.12 +astroid==2.12.13 attrs==21.4.0 babel==2.11.0 backcall==0.2.0 @@ -30,7 +30,7 @@ dill==0.3.6 distlib==0.3.6 docutils==0.17.1 entrypoints==0.4 -exceptiongroup==1.0.0 +exceptiongroup==1.0.4 execnet==1.9.0 fastjsonschema==2.16.2 filelock==3.8.0 @@ -41,15 +41,15 @@ flake8-builtins==2.0.1 flake8-comprehensions==3.10.1 flake8-plugin-utils==1.3.2 flake8-pytest-style==1.6.0 -flake8-rst-docstrings==0.2.7 +flake8-rst-docstrings==0.3.0 flake8-use-fstring==1.4 gitdb==4.0.9 gitpython==3.1.29 gprof2dot==2022.7.29 graphviz==0.20.1 -greenlet==2.0.0 +greenlet==2.0.1 hepunits==2.3.0 -identify==2.5.8 +identify==2.5.9 idna==3.4 imagesize==1.4.1 importlib-metadata==4.2.0 ; python_version < "3.8.0" @@ -63,13 +63,13 @@ isort==5.10.1 jedi==0.18.1 jinja2==3.1.2 json5==0.9.10 -jsonschema==4.16.0 +jsonschema==4.17.0 jupyter==1.0.0 jupyter-cache==0.4.3 -jupyter-client==7.4.4 +jupyter-client==7.4.7 jupyter-console==6.4.4 jupyter-core==4.11.2 -jupyter-server==1.21.0 +jupyter-server==1.23.2 jupyter-server-mathjax==0.2.6 jupyter-sphinx==0.3.2 jupyterlab==3.5.0 @@ -89,11 +89,11 @@ matplotlib-inline==0.1.6 mccabe==0.7.0 mdit-py-plugins==0.2.8 mistune==0.8.4 -mypy==0.982 +mypy==0.991 mypy-extensions==0.4.3 myst-nb==0.13.2 ; python_version < "3.8.0" myst-parser==0.15.2 -nbclassic==0.4.7 +nbclassic==0.4.8 nbclient==0.5.13 nbconvert==6.5.4 nbdime==3.1.1 @@ -102,22 +102,22 @@ nbmake==1.3.0 nest-asyncio==1.5.6 nodeenv==1.7.0 notebook==6.5.2 -notebook-shim==0.2.0 +notebook-shim==0.2.2 packaging==21.3 pandocfilters==1.5.0 parso==0.8.3 -particle==0.20.1 -pathspec==0.10.1 +particle==0.21.0 +pathspec==0.10.2 pep8-naming==0.13.2 pexpect==4.8.0 pickleshare==0.7.5 pkgutil-resolve-name==1.3.10 -platformdirs==2.5.2 +platformdirs==2.5.4 pluggy==1.0.0 pre-commit==2.20.0 prometheus-client==0.15.0 -prompt-toolkit==3.0.31 -psutil==5.9.3 +prompt-toolkit==3.0.32 +psutil==5.9.4 ptyprocess==0.7.0 py==1.11.0 pybtex==0.24.0 @@ -130,9 +130,9 @@ pydocstyle==6.1.1 pydot==1.4.2 pyflakes==2.5.0 pygments==2.13.0 -pylint==2.15.5 +pylint==2.15.6 pyparsing==3.0.9 -pyrsistent==0.19.1 +pyrsistent==0.19.2 pytest==7.2.0 pytest-cov==4.0.0 pytest-profiling==1.7.0 @@ -142,8 +142,8 @@ python-dateutil==2.8.2 pytz==2022.6 pyyaml==6.0 pyzmq==24.0.1 -qtconsole==5.3.2 -qtpy==2.2.1 +qtconsole==5.4.0 +qtpy==2.3.0 requests==2.28.1 restructuredtext-lint==1.4.0 send2trash==1.8.0 @@ -155,9 +155,9 @@ soupsieve==2.3.2.post1 sphinx==4.3.2 ; python_version < "3.8.0" sphinx-autobuild==2021.3.14 sphinx-book-theme==0.3.3 -sphinx-codeautolink==0.12.0 +sphinx-codeautolink==0.12.1 sphinx-comments==0.0.3 -sphinx-copybutton==0.5.0 +sphinx-copybutton==0.5.1 sphinx-design==0.3.0 sphinx-thebe==0.1.2 sphinx-togglebutton==0.3.2 @@ -169,31 +169,31 @@ sphinxcontrib-htmlhelp==2.0.0 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 -sphobjinv==2.2.2 -sqlalchemy==1.4.42 +sphobjinv==2.3 +sqlalchemy==1.4.44 terminado==0.17.0 tinycss2==1.2.1 toml==0.10.2 tomli==2.0.1 tomlkit==0.11.6 tornado==6.2 -tox==3.27.0 +tox==3.27.1 tqdm==4.64.1 traitlets==5.5.0 typed-ast==1.5.4 types-docutils==0.19.1.1 types-pkg-resources==0.1.3 -types-pyyaml==6.0.12.1 -types-requests==2.28.11.2 -types-setuptools==65.5.0.2 -types-urllib3==1.26.25.1 +types-pyyaml==6.0.12.2 +types-requests==2.28.11.5 +types-setuptools==65.5.0.3 +types-urllib3==1.26.25.4 typing-extensions==4.4.0 ; python_version < "3.10.0" urllib3==1.26.12 virtualenv==20.15.1 ; python_version < "3.8.0" wcwidth==0.2.5 webencodings==0.5.1 -websocket-client==1.4.1 -wheel==0.37.1 +websocket-client==1.4.2 +wheel==0.38.4 widgetsnbextension==3.6.1 wrapt==1.14.1 zipp==3.10.0 diff --git a/.constraints/py3.8.txt b/.constraints/py3.8.txt index 09c3ab55..ae1aa79f 100644 --- a/.constraints/py3.8.txt +++ b/.constraints/py3.8.txt @@ -9,7 +9,7 @@ anyio==3.6.2 aquirdturtle-collapsible-headings==3.1.0 argon2-cffi==21.3.0 argon2-cffi-bindings==21.2.0 -astroid==2.12.12 +astroid==2.12.13 asttokens==2.1.0 attrs==22.1.0 babel==2.11.0 @@ -31,7 +31,7 @@ dill==0.3.6 distlib==0.3.6 docutils==0.17.1 entrypoints==0.4 -exceptiongroup==1.0.0 +exceptiongroup==1.0.4 execnet==1.9.0 executing==1.2.0 fastjsonschema==2.16.2 @@ -43,20 +43,20 @@ flake8-builtins==2.0.1 flake8-comprehensions==3.10.1 flake8-plugin-utils==1.3.2 flake8-pytest-style==1.6.0 -flake8-rst-docstrings==0.2.7 +flake8-rst-docstrings==0.3.0 flake8-type-ignore==0.1.0.post2 ; python_version >= "3.8.0" flake8-use-fstring==1.4 gprof2dot==2022.7.29 graphviz==0.20.1 -greenlet==2.0.0 +greenlet==2.0.1 hepunits==2.3.0 -identify==2.5.8 +identify==2.5.9 idna==3.4 imagesize==1.4.1 importlib-metadata==5.0.0 importlib-resources==5.10.0 iniconfig==1.1.1 -ipykernel==6.17.0 +ipykernel==6.17.1 ipython==8.6.0 ipython-genutils==0.2.0 ipywidgets==8.0.2 @@ -64,19 +64,19 @@ isort==5.10.1 jedi==0.18.1 jinja2==3.1.2 json5==0.9.10 -jsonschema==4.16.0 +jsonschema==4.17.0 jupyter==1.0.0 jupyter-cache==0.5.0 -jupyter-client==7.4.4 +jupyter-client==7.4.7 jupyter-console==6.4.4 -jupyter-core==4.11.2 -jupyter-server==1.21.0 +jupyter-core==5.0.0 +jupyter-server==1.23.2 jupyterlab==3.5.0 jupyterlab-code-formatter==1.5.3 jupyterlab-markup==1.1.0 jupyterlab-myst==0.1.6 ; python_version >= "3.7.0" jupyterlab-pygments==0.2.2 -jupyterlab-server==2.16.2 +jupyterlab-server==2.16.3 jupyterlab-widgets==3.0.3 latexcodec==2.0.1 lazy-object-proxy==1.8.0 @@ -88,34 +88,34 @@ mccabe==0.7.0 mdit-py-plugins==0.3.1 mdurl==0.1.2 mistune==2.0.4 -mypy==0.982 +mypy==0.991 mypy-extensions==0.4.3 myst-nb==0.17.1 ; python_version >= "3.8.0" myst-parser==0.18.1 -nbclassic==0.4.7 +nbclassic==0.4.8 nbclient==0.5.13 -nbconvert==7.2.3 +nbconvert==7.2.5 nbformat==5.7.0 nbmake==1.3.0 nest-asyncio==1.5.6 nodeenv==1.7.0 notebook==6.5.2 -notebook-shim==0.2.0 +notebook-shim==0.2.2 packaging==21.3 pandocfilters==1.5.0 parso==0.8.3 -particle==0.20.1 -pathspec==0.10.1 +particle==0.21.0 +pathspec==0.10.2 pep8-naming==0.13.2 pexpect==4.8.0 pickleshare==0.7.5 pkgutil-resolve-name==1.3.10 -platformdirs==2.5.2 +platformdirs==2.5.4 pluggy==1.0.0 pre-commit==2.20.0 prometheus-client==0.15.0 -prompt-toolkit==3.0.31 -psutil==5.9.3 +prompt-toolkit==3.0.32 +psutil==5.9.4 ptyprocess==0.7.0 pure-eval==0.2.2 py==1.11.0 @@ -129,9 +129,9 @@ pydocstyle==6.1.1 pydot==1.4.2 pyflakes==2.5.0 pygments==2.13.0 -pylint==2.15.5 +pylint==2.15.6 pyparsing==3.0.9 -pyrsistent==0.19.1 +pyrsistent==0.19.2 pytest==7.2.0 pytest-cov==4.0.0 pytest-profiling==1.7.0 @@ -141,8 +141,8 @@ python-dateutil==2.8.2 pytz==2022.6 pyyaml==6.0 pyzmq==24.0.1 -qtconsole==5.3.2 -qtpy==2.2.1 +qtconsole==5.4.0 +qtpy==2.3.0 requests==2.28.1 restructuredtext-lint==1.4.0 send2trash==1.8.0 @@ -153,9 +153,9 @@ soupsieve==2.3.2.post1 sphinx==4.5.0 sphinx-autobuild==2021.3.14 sphinx-book-theme==0.3.3 -sphinx-codeautolink==0.12.0 +sphinx-codeautolink==0.12.1 sphinx-comments==0.0.3 -sphinx-copybutton==0.5.0 +sphinx-copybutton==0.5.1 sphinx-design==0.3.0 sphinx-thebe==0.1.2 sphinx-togglebutton==0.3.2 @@ -167,9 +167,9 @@ sphinxcontrib-htmlhelp==2.0.0 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 -sphobjinv==2.2.2 -sqlalchemy==1.4.42 -stack-data==0.6.0 +sphobjinv==2.3 +sqlalchemy==1.4.44 +stack-data==0.6.1 tabulate==0.9.0 terminado==0.17.0 tinycss2==1.2.1 @@ -177,22 +177,22 @@ toml==0.10.2 tomli==2.0.1 tomlkit==0.11.6 tornado==6.2 -tox==3.27.0 +tox==3.27.1 tqdm==4.64.1 traitlets==5.5.0 types-docutils==0.19.1.1 types-pkg-resources==0.1.3 -types-pyyaml==6.0.12.1 -types-requests==2.28.11.2 -types-setuptools==65.5.0.2 -types-urllib3==1.26.25.1 +types-pyyaml==6.0.12.2 +types-requests==2.28.11.5 +types-setuptools==65.5.0.3 +types-urllib3==1.26.25.4 typing-extensions==4.4.0 ; python_version < "3.10.0" urllib3==1.26.12 -virtualenv==20.16.6 +virtualenv==20.16.7 wcwidth==0.2.5 webencodings==0.5.1 -websocket-client==1.4.1 -wheel==0.37.1 +websocket-client==1.4.2 +wheel==0.38.4 widgetsnbextension==4.0.3 wrapt==1.14.1 zipp==3.10.0 diff --git a/.constraints/py3.9.txt b/.constraints/py3.9.txt index 41e14f1a..35592a1c 100644 --- a/.constraints/py3.9.txt +++ b/.constraints/py3.9.txt @@ -9,7 +9,7 @@ anyio==3.6.2 aquirdturtle-collapsible-headings==3.1.0 argon2-cffi==21.3.0 argon2-cffi-bindings==21.2.0 -astroid==2.12.12 +astroid==2.12.13 asttokens==2.1.0 attrs==22.1.0 babel==2.11.0 @@ -31,7 +31,7 @@ dill==0.3.6 distlib==0.3.6 docutils==0.17.1 entrypoints==0.4 -exceptiongroup==1.0.0 +exceptiongroup==1.0.4 execnet==1.9.0 executing==1.2.0 fastjsonschema==2.16.2 @@ -43,19 +43,19 @@ flake8-builtins==2.0.1 flake8-comprehensions==3.10.1 flake8-plugin-utils==1.3.2 flake8-pytest-style==1.6.0 -flake8-rst-docstrings==0.2.7 +flake8-rst-docstrings==0.3.0 flake8-type-ignore==0.1.0.post2 ; python_version >= "3.8.0" flake8-use-fstring==1.4 gprof2dot==2022.7.29 graphviz==0.20.1 -greenlet==2.0.0 +greenlet==2.0.1 hepunits==2.3.0 -identify==2.5.8 +identify==2.5.9 idna==3.4 imagesize==1.4.1 importlib-metadata==5.0.0 iniconfig==1.1.1 -ipykernel==6.17.0 +ipykernel==6.17.1 ipython==8.6.0 ipython-genutils==0.2.0 ipywidgets==8.0.2 @@ -63,19 +63,19 @@ isort==5.10.1 jedi==0.18.1 jinja2==3.1.2 json5==0.9.10 -jsonschema==4.16.0 +jsonschema==4.17.0 jupyter==1.0.0 jupyter-cache==0.5.0 -jupyter-client==7.4.4 +jupyter-client==7.4.7 jupyter-console==6.4.4 -jupyter-core==4.11.2 -jupyter-server==1.21.0 +jupyter-core==5.0.0 +jupyter-server==1.23.2 jupyterlab==3.5.0 jupyterlab-code-formatter==1.5.3 jupyterlab-markup==1.1.0 jupyterlab-myst==0.1.6 ; python_version >= "3.7.0" jupyterlab-pygments==0.2.2 -jupyterlab-server==2.16.2 +jupyterlab-server==2.16.3 jupyterlab-widgets==3.0.3 latexcodec==2.0.1 lazy-object-proxy==1.8.0 @@ -87,33 +87,33 @@ mccabe==0.7.0 mdit-py-plugins==0.3.1 mdurl==0.1.2 mistune==2.0.4 -mypy==0.982 +mypy==0.991 mypy-extensions==0.4.3 myst-nb==0.17.1 ; python_version >= "3.8.0" myst-parser==0.18.1 -nbclassic==0.4.7 +nbclassic==0.4.8 nbclient==0.5.13 -nbconvert==7.2.3 +nbconvert==7.2.5 nbformat==5.7.0 nbmake==1.3.0 nest-asyncio==1.5.6 nodeenv==1.7.0 notebook==6.5.2 -notebook-shim==0.2.0 +notebook-shim==0.2.2 packaging==21.3 pandocfilters==1.5.0 parso==0.8.3 -particle==0.20.1 -pathspec==0.10.1 +particle==0.21.0 +pathspec==0.10.2 pep8-naming==0.13.2 pexpect==4.8.0 pickleshare==0.7.5 -platformdirs==2.5.2 +platformdirs==2.5.4 pluggy==1.0.0 pre-commit==2.20.0 prometheus-client==0.15.0 -prompt-toolkit==3.0.31 -psutil==5.9.3 +prompt-toolkit==3.0.32 +psutil==5.9.4 ptyprocess==0.7.0 pure-eval==0.2.2 py==1.11.0 @@ -127,9 +127,9 @@ pydocstyle==6.1.1 pydot==1.4.2 pyflakes==2.5.0 pygments==2.13.0 -pylint==2.15.5 +pylint==2.15.6 pyparsing==3.0.9 -pyrsistent==0.19.1 +pyrsistent==0.19.2 pytest==7.2.0 pytest-cov==4.0.0 pytest-profiling==1.7.0 @@ -139,8 +139,8 @@ python-dateutil==2.8.2 pytz==2022.6 pyyaml==6.0 pyzmq==24.0.1 -qtconsole==5.3.2 -qtpy==2.2.1 +qtconsole==5.4.0 +qtpy==2.3.0 requests==2.28.1 restructuredtext-lint==1.4.0 send2trash==1.8.0 @@ -151,9 +151,9 @@ soupsieve==2.3.2.post1 sphinx==4.5.0 sphinx-autobuild==2021.3.14 sphinx-book-theme==0.3.3 -sphinx-codeautolink==0.12.0 +sphinx-codeautolink==0.12.1 sphinx-comments==0.0.3 -sphinx-copybutton==0.5.0 +sphinx-copybutton==0.5.1 sphinx-design==0.3.0 sphinx-thebe==0.1.2 sphinx-togglebutton==0.3.2 @@ -165,9 +165,9 @@ sphinxcontrib-htmlhelp==2.0.0 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 -sphobjinv==2.2.2 -sqlalchemy==1.4.42 -stack-data==0.6.0 +sphobjinv==2.3 +sqlalchemy==1.4.44 +stack-data==0.6.1 tabulate==0.9.0 terminado==0.17.0 tinycss2==1.2.1 @@ -175,22 +175,22 @@ toml==0.10.2 tomli==2.0.1 tomlkit==0.11.6 tornado==6.2 -tox==3.27.0 +tox==3.27.1 tqdm==4.64.1 traitlets==5.5.0 types-docutils==0.19.1.1 types-pkg-resources==0.1.3 -types-pyyaml==6.0.12.1 -types-requests==2.28.11.2 -types-setuptools==65.5.0.2 -types-urllib3==1.26.25.1 +types-pyyaml==6.0.12.2 +types-requests==2.28.11.5 +types-setuptools==65.5.0.3 +types-urllib3==1.26.25.4 typing-extensions==4.4.0 ; python_version < "3.10.0" urllib3==1.26.12 -virtualenv==20.16.6 +virtualenv==20.16.7 wcwidth==0.2.5 webencodings==0.5.1 -websocket-client==1.4.1 -wheel==0.37.1 +websocket-client==1.4.2 +wheel==0.38.4 widgetsnbextension==4.0.3 wrapt==1.14.1 zipp==3.10.0 From 0193f1da7e41cca6d1773ecd7d6121d52b9a6a84 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Sat, 19 Nov 2022 21:55:24 +0100 Subject: [PATCH 07/30] MAINT: address pyright issues --- docs/_relink_references.py | 2 +- src/qrules/conservation_rules.py | 8 ++++---- src/qrules/transition.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/_relink_references.py b/docs/_relink_references.py index f10b2b21..fc7c1daa 100644 --- a/docs/_relink_references.py +++ b/docs/_relink_references.py @@ -58,7 +58,7 @@ def _new_type_to_xref( target: str, - env: "BuildEnvironment" = None, + env: "BuildEnvironment" = None, # type: ignore[assignment] suppress_prefix: bool = False, ) -> "pending_xref": import sphinx diff --git a/src/qrules/conservation_rules.py b/src/qrules/conservation_rules.py index bea36910..50cb1366 100644 --- a/src/qrules/conservation_rules.py +++ b/src/qrules/conservation_rules.py @@ -695,8 +695,8 @@ def spin_conservation( # otherwise don't use S and L and just check magnitude # are integral or non integral on both sides return ( - sum(float(x.spin_magnitude) for x in ingoing_spins).is_integer() - == sum(float(x.spin_magnitude) for x in outgoing_spins).is_integer() + sum(float(x.spin_magnitude) for x in ingoing_spins).is_integer() # type: ignore[union-attr] + == sum(float(x.spin_magnitude) for x in outgoing_spins).is_integer() # type: ignore[union-attr] ) @@ -732,8 +732,8 @@ def spin_magnitude_conservation( # otherwise don't use S and L and just check magnitude # are integral or non integral on both sides return ( - sum(float(x.spin_magnitude) for x in ingoing_spins).is_integer() - == sum(float(x.spin_magnitude) for x in outgoing_spins).is_integer() + sum(float(x.spin_magnitude) for x in ingoing_spins).is_integer() # type: ignore[union-attr] + == sum(float(x.spin_magnitude) for x in outgoing_spins).is_integer() # type: ignore[union-attr] ) diff --git a/src/qrules/transition.py b/src/qrules/transition.py index ef892821..2d2e7823 100644 --- a/src/qrules/transition.py +++ b/src/qrules/transition.py @@ -229,7 +229,7 @@ def __init__( # pylint: disable=too-many-arguments, too-many-branches, too-many allowed_intermediate_particles: Optional[List[str]] = None, interaction_type_settings: Dict[ InteractionType, Tuple[EdgeSettings, NodeSettings] - ] = None, + ] = None, # type: ignore[assignment] formalism: str = "helicity", topology_building: str = "isobar", solving_mode: SolvingMode = SolvingMode.FAST, From 5cc24cd57d931d41727c57212a5dc1f36434a715 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Sat, 19 Nov 2022 22:05:20 +0100 Subject: [PATCH 08/30] MAINT: update test values for `particle` package --- tests/unit/test_particle.py | 5 ++++- tests/unit/test_pdg.py | 5 +++-- tests/unit/test_system_control.py | 5 ++++- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/tests/unit/test_particle.py b/tests/unit/test_particle.py index e505b235..02ef44c7 100644 --- a/tests/unit/test_particle.py +++ b/tests/unit/test_particle.py @@ -1,6 +1,7 @@ # pylint: disable=eval-used redefined-outer-name # pyright: reportUnusedImport=false import logging +import sys from copy import deepcopy import pytest @@ -253,7 +254,9 @@ def test_find(self, particle_database: ParticleCollection): ("gama", "'gamma', 'Sigma0', 'Sigma-', 'Sigma+', 'Lambda'"), ( "omega", - "'omega(782)', 'omega(1420)', 'omega(3)(1670)', 'omega(1650)'", + "'omega(782)', 'omega(1420)', 'omega(3)(1670)', 'omega(1650)'" + if sys.version_info < (3, 7) + else "'omega(782)', 'omega(3)(1670)', 'omega(1650)'", ), ("p~~", "'p~'"), ("~", "'p~', 'n~'"), diff --git a/tests/unit/test_pdg.py b/tests/unit/test_pdg.py index bcf3e59f..a6d93b34 100644 --- a/tests/unit/test_pdg.py +++ b/tests/unit/test_pdg.py @@ -34,8 +34,9 @@ def test_maybe_qq(): def test_pdg_size(pdg: ParticleCollection): assert len(pdg) in { 512, # particle==0.13 - 519, # particle==0.14, 0.15 - 531, # particle==0.16 + 519, # particle==0.14-0.15 + 531, # particle==0.16-0.20 + 530, # particle==0.21 } assert len(pdg.filter(lambda p: "~" in p.name)) in { 165, # particle==0.13 diff --git a/tests/unit/test_system_control.py b/tests/unit/test_system_control.py index 87292191..15be8d5c 100644 --- a/tests/unit/test_system_control.py +++ b/tests/unit/test_system_control.py @@ -1,4 +1,5 @@ # pylint: disable=protected-access +import sys from copy import deepcopy from typing import Dict, List @@ -148,7 +149,9 @@ def test_external_edge_initialization( { EdgeQuantumNumbers.pid: 411, EdgeQuantumNumbers.mass: 1.86966, - EdgeQuantumNumbers.width: 6.33e-13, + EdgeQuantumNumbers.width: 6.33e-13 + if sys.version_info < (3, 7) + else 6.37e-13, EdgeQuantumNumbers.spin_magnitude: 0.0, EdgeQuantumNumbers.spin_projection: 0, EdgeQuantumNumbers.charge: 1, From e85de7c5eb149f2810a4d3e463018648d2073ab9 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Sat, 19 Nov 2022 22:32:03 +0100 Subject: [PATCH 09/30] DX: run tests on epic and versions branches --- .github/workflows/ci-tests.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 1e7e3417..c6f0f1c6 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -5,10 +5,13 @@ on: branches: - main - epic/* + - "[0-9]+.[0-9]+.x" pull_request: branches: - main - epic/* + - "[0-9]+.[0-9]+.x" + workflow_dispatch: jobs: codecov: From 3c56232012e24e75fce702a04034e0a288cac6d6 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Sat, 19 Nov 2022 22:33:18 +0100 Subject: [PATCH 10/30] MAINT: use `include` instead of `exclude` --- .github/workflows/ci-tests.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index c6f0f1c6..fe2da499 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -60,7 +60,6 @@ jobs: fail-fast: false matrix: os: - - macos-11 - ubuntu-20.04 python-version: - "3.6" @@ -69,16 +68,11 @@ jobs: - "3.9" - "3.10" exclude: - - os: macos-11 - python-version: "3.6" - - os: macos-11 - python-version: "3.8" - - os: macos-11 - python-version: "3.9" - - os: macos-11 - python-version: "3.10" - os: ubuntu-20.04 # coverage job python-version: "3.7" + include: + - os: macos-11 + python-version: "3.7" steps: - uses: actions/checkout@v3 - uses: actions/cache@v3 From 6eae01cd421ecd584e3b52a4acb4411c74157ab1 Mon Sep 17 00:00:00 2001 From: GitHub Date: Sun, 20 Nov 2022 15:19:13 +0000 Subject: [PATCH 11/30] MAINT: update pip constraints and pre-commit --- .constraints/py3.10.txt | 2 +- .constraints/py3.6.txt | 2 +- .constraints/py3.7.txt | 2 +- .constraints/py3.8.txt | 2 +- .constraints/py3.9.txt | 2 +- .pre-commit-config.yaml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.constraints/py3.10.txt b/.constraints/py3.10.txt index 32439f69..536ae3ee 100644 --- a/.constraints/py3.10.txt +++ b/.constraints/py3.10.txt @@ -182,7 +182,7 @@ types-docutils==0.19.1.1 types-pkg-resources==0.1.3 types-pyyaml==6.0.12.2 types-requests==2.28.11.5 -types-setuptools==65.5.0.3 +types-setuptools==65.6.0.0 types-urllib3==1.26.25.4 typing-extensions==4.4.0 urllib3==1.26.12 diff --git a/.constraints/py3.6.txt b/.constraints/py3.6.txt index b611b10e..e61ce7b7 100644 --- a/.constraints/py3.6.txt +++ b/.constraints/py3.6.txt @@ -178,7 +178,7 @@ types-docutils==0.19.1.1 types-pkg-resources==0.1.3 types-pyyaml==6.0.12.2 types-requests==2.28.11.5 -types-setuptools==65.5.0.3 +types-setuptools==65.6.0.0 types-urllib3==1.26.25.4 typing-extensions==4.1.1 ; python_version < "3.10.0" urllib3==1.26.12 diff --git a/.constraints/py3.7.txt b/.constraints/py3.7.txt index bad30e36..b78f9144 100644 --- a/.constraints/py3.7.txt +++ b/.constraints/py3.7.txt @@ -185,7 +185,7 @@ types-docutils==0.19.1.1 types-pkg-resources==0.1.3 types-pyyaml==6.0.12.2 types-requests==2.28.11.5 -types-setuptools==65.5.0.3 +types-setuptools==65.6.0.0 types-urllib3==1.26.25.4 typing-extensions==4.4.0 ; python_version < "3.10.0" urllib3==1.26.12 diff --git a/.constraints/py3.8.txt b/.constraints/py3.8.txt index ae1aa79f..a1951d1f 100644 --- a/.constraints/py3.8.txt +++ b/.constraints/py3.8.txt @@ -184,7 +184,7 @@ types-docutils==0.19.1.1 types-pkg-resources==0.1.3 types-pyyaml==6.0.12.2 types-requests==2.28.11.5 -types-setuptools==65.5.0.3 +types-setuptools==65.6.0.0 types-urllib3==1.26.25.4 typing-extensions==4.4.0 ; python_version < "3.10.0" urllib3==1.26.12 diff --git a/.constraints/py3.9.txt b/.constraints/py3.9.txt index 35592a1c..ba09323c 100644 --- a/.constraints/py3.9.txt +++ b/.constraints/py3.9.txt @@ -182,7 +182,7 @@ types-docutils==0.19.1.1 types-pkg-resources==0.1.3 types-pyyaml==6.0.12.2 types-requests==2.28.11.5 -types-setuptools==65.5.0.3 +types-setuptools==65.6.0.0 types-urllib3==1.26.25.4 typing-extensions==4.4.0 ; python_version < "3.10.0" urllib3==1.26.12 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 661779e2..1a7528be 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -41,7 +41,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/ComPWA/repo-maintenance - rev: 0.0.153 + rev: 0.0.157 hooks: - id: check-dev-files args: From 2323e7dc306fe2e703d83d217ea9fc7dd774714a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 20 Nov 2022 15:19:39 +0000 Subject: [PATCH 12/30] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .cspell.json | 7 ++----- .github/workflows/ci-style.yml | 4 ++-- .github/workflows/requirements-cron.yml | 2 +- .prettierignore | 1 - 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.cspell.json b/.cspell.json index e58f53f1..5caee8a4 100644 --- a/.cspell.json +++ b/.cspell.json @@ -1,10 +1,6 @@ { "allowCompoundWords": true, - "enableFiletypes": [ - "git-commit", - "julia", - "jupyter" - ], + "enableFiletypes": ["git-commit", "julia", "jupyter"], "flagWords": [ "analyse", "colour", @@ -27,6 +23,7 @@ "*.svg", "*particle*.*ml", ".constraints/*.txt", + ".editorconfig", ".flake8*", ".gitignore", ".gitpod.*", diff --git a/.github/workflows/ci-style.yml b/.github/workflows/ci-style.yml index 131b8593..da47a97d 100644 --- a/.github/workflows/ci-style.yml +++ b/.github/workflows/ci-style.yml @@ -35,11 +35,11 @@ jobs: python -m pip install --upgrade pip pip install -c .constraints/py3.8.txt -e .[sty] - name: Run non-local pre-commit hooks - run: | + run: |- pre-commit run flake8 -a --color always pre-commit run mypy -a --color always pre-commit run pylint -a --color always - name: Run pre-commit hooks that don't work on pre-commit.ci - run: | + run: |- pre-commit run editorconfig-checker -a --color always pre-commit run pyright -a --color always diff --git a/.github/workflows/requirements-cron.yml b/.github/workflows/requirements-cron.yml index bf914193..b548e3ea 100644 --- a/.github/workflows/requirements-cron.yml +++ b/.github/workflows/requirements-cron.yml @@ -2,7 +2,7 @@ name: Requirements (scheduled) on: schedule: - - cron: "0 3 1 */1 *" + - cron: "0 3 7 */1 *" workflow_dispatch: jobs: diff --git a/.prettierignore b/.prettierignore index 02c0530e..6b1d0bfa 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,2 +1 @@ -.cspell.json LICENSE From fa403f53139c3906957e656afa2bf976611e4541 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Sun, 20 Nov 2022 10:27:46 +0100 Subject: [PATCH 13/30] MAINT: split out `jupyter` section for extras_require --- setup.cfg | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/setup.cfg b/setup.cfg index daa56586..8f2acd13 100644 --- a/setup.cfg +++ b/setup.cfg @@ -61,7 +61,6 @@ all = %(viz)s doc = %(viz)s - jupyter importlib-metadata; python_version <"3.8.0" myst-nb >=0.14; python_version >="3.8.0" # nb_ configuration prefixes myst-nb <0.14; python_version <"3.8.0" @@ -117,16 +116,18 @@ sty = %(lint)s %(test)s # for pytest type hints pre-commit >=1.4.0 -dev = - %(all)s - %(doc)s - %(sty)s - %(test)s +jupyter = aquirdturtle-collapsible-headings jupyterlab jupyterlab-code-formatter jupyterlab-myst; python_version >="3.7.0" jupyterlab-server <2.16; python_version <"3.8.0" # https://github.com/ComPWA/tensorwaves/actions/runs/3366807875/jobs/5583673530#step:3:74 +dev = + %(all)s + %(doc)s + %(jupyter)s + %(sty)s + %(test)s sphinx-autobuild tox >=1.9 # for skip_install, use_develop virtualenv <20.16; python_version <"3.8.0" # https://github.com/ComPWA/qrules/runs/7718388093?check_suite_focus=true#step:3:86 From 195a87b123212935fd16af74534381cad817f729 Mon Sep 17 00:00:00 2001 From: GitHub Date: Sun, 20 Nov 2022 16:17:51 +0000 Subject: [PATCH 14/30] MAINT: update pip constraints and pre-commit --- .constraints/py3.10.txt | 7 ------- .constraints/py3.6.txt | 4 ---- .constraints/py3.7.txt | 4 ---- .constraints/py3.8.txt | 7 ------- .constraints/py3.9.txt | 7 ------- 5 files changed, 29 deletions(-) diff --git a/.constraints/py3.10.txt b/.constraints/py3.10.txt index 536ae3ee..beef8300 100644 --- a/.constraints/py3.10.txt +++ b/.constraints/py3.10.txt @@ -58,16 +58,13 @@ iniconfig==1.1.1 ipykernel==6.17.1 ipython==8.6.0 ipython-genutils==0.2.0 -ipywidgets==8.0.2 isort==5.10.1 jedi==0.18.1 jinja2==3.1.2 json5==0.9.10 jsonschema==4.17.0 -jupyter==1.0.0 jupyter-cache==0.5.0 jupyter-client==7.4.7 -jupyter-console==6.4.4 jupyter-core==5.0.0 jupyter-server==1.23.2 jupyterlab==3.5.0 @@ -76,7 +73,6 @@ jupyterlab-markup==1.1.0 jupyterlab-myst==0.1.6 ; python_version >= "3.7.0" jupyterlab-pygments==0.2.2 jupyterlab-server==2.16.3 -jupyterlab-widgets==3.0.3 latexcodec==2.0.1 lazy-object-proxy==1.8.0 livereload==2.6.3 @@ -139,8 +135,6 @@ python-dateutil==2.8.2 pytz==2022.6 pyyaml==6.0 pyzmq==24.0.1 -qtconsole==5.4.0 -qtpy==2.3.0 requests==2.28.1 restructuredtext-lint==1.4.0 send2trash==1.8.0 @@ -191,7 +185,6 @@ wcwidth==0.2.5 webencodings==0.5.1 websocket-client==1.4.2 wheel==0.38.4 -widgetsnbextension==4.0.3 wrapt==1.14.1 zipp==3.10.0 diff --git a/.constraints/py3.6.txt b/.constraints/py3.6.txt index e61ce7b7..c4658112 100644 --- a/.constraints/py3.6.txt +++ b/.constraints/py3.6.txt @@ -65,10 +65,8 @@ jedi==0.17.2 jinja2==3.0.3 json5==0.9.10 jsonschema==3.2.0 -jupyter==1.0.0 jupyter-cache==0.4.3 jupyter-client==7.1.2 -jupyter-console==6.4.3 jupyter-core==4.9.2 jupyter-server==1.13.1 jupyter-server-mathjax==0.2.3 @@ -136,8 +134,6 @@ python-dateutil==2.8.2 pytz==2022.6 pyyaml==6.0 pyzmq==24.0.1 -qtconsole==5.2.2 -qtpy==2.0.1 requests==2.27.1 restructuredtext-lint==1.4.0 send2trash==1.8.0 diff --git a/.constraints/py3.7.txt b/.constraints/py3.7.txt index b78f9144..29dfe3eb 100644 --- a/.constraints/py3.7.txt +++ b/.constraints/py3.7.txt @@ -64,10 +64,8 @@ jedi==0.18.1 jinja2==3.1.2 json5==0.9.10 jsonschema==4.17.0 -jupyter==1.0.0 jupyter-cache==0.4.3 jupyter-client==7.4.7 -jupyter-console==6.4.4 jupyter-core==4.11.2 jupyter-server==1.23.2 jupyter-server-mathjax==0.2.6 @@ -142,8 +140,6 @@ python-dateutil==2.8.2 pytz==2022.6 pyyaml==6.0 pyzmq==24.0.1 -qtconsole==5.4.0 -qtpy==2.3.0 requests==2.28.1 restructuredtext-lint==1.4.0 send2trash==1.8.0 diff --git a/.constraints/py3.8.txt b/.constraints/py3.8.txt index a1951d1f..6d1119a9 100644 --- a/.constraints/py3.8.txt +++ b/.constraints/py3.8.txt @@ -59,16 +59,13 @@ iniconfig==1.1.1 ipykernel==6.17.1 ipython==8.6.0 ipython-genutils==0.2.0 -ipywidgets==8.0.2 isort==5.10.1 jedi==0.18.1 jinja2==3.1.2 json5==0.9.10 jsonschema==4.17.0 -jupyter==1.0.0 jupyter-cache==0.5.0 jupyter-client==7.4.7 -jupyter-console==6.4.4 jupyter-core==5.0.0 jupyter-server==1.23.2 jupyterlab==3.5.0 @@ -77,7 +74,6 @@ jupyterlab-markup==1.1.0 jupyterlab-myst==0.1.6 ; python_version >= "3.7.0" jupyterlab-pygments==0.2.2 jupyterlab-server==2.16.3 -jupyterlab-widgets==3.0.3 latexcodec==2.0.1 lazy-object-proxy==1.8.0 livereload==2.6.3 @@ -141,8 +137,6 @@ python-dateutil==2.8.2 pytz==2022.6 pyyaml==6.0 pyzmq==24.0.1 -qtconsole==5.4.0 -qtpy==2.3.0 requests==2.28.1 restructuredtext-lint==1.4.0 send2trash==1.8.0 @@ -193,7 +187,6 @@ wcwidth==0.2.5 webencodings==0.5.1 websocket-client==1.4.2 wheel==0.38.4 -widgetsnbextension==4.0.3 wrapt==1.14.1 zipp==3.10.0 diff --git a/.constraints/py3.9.txt b/.constraints/py3.9.txt index ba09323c..fe9473c2 100644 --- a/.constraints/py3.9.txt +++ b/.constraints/py3.9.txt @@ -58,16 +58,13 @@ iniconfig==1.1.1 ipykernel==6.17.1 ipython==8.6.0 ipython-genutils==0.2.0 -ipywidgets==8.0.2 isort==5.10.1 jedi==0.18.1 jinja2==3.1.2 json5==0.9.10 jsonschema==4.17.0 -jupyter==1.0.0 jupyter-cache==0.5.0 jupyter-client==7.4.7 -jupyter-console==6.4.4 jupyter-core==5.0.0 jupyter-server==1.23.2 jupyterlab==3.5.0 @@ -76,7 +73,6 @@ jupyterlab-markup==1.1.0 jupyterlab-myst==0.1.6 ; python_version >= "3.7.0" jupyterlab-pygments==0.2.2 jupyterlab-server==2.16.3 -jupyterlab-widgets==3.0.3 latexcodec==2.0.1 lazy-object-proxy==1.8.0 livereload==2.6.3 @@ -139,8 +135,6 @@ python-dateutil==2.8.2 pytz==2022.6 pyyaml==6.0 pyzmq==24.0.1 -qtconsole==5.4.0 -qtpy==2.3.0 requests==2.28.1 restructuredtext-lint==1.4.0 send2trash==1.8.0 @@ -191,7 +185,6 @@ wcwidth==0.2.5 webencodings==0.5.1 websocket-client==1.4.2 wheel==0.38.4 -widgetsnbextension==4.0.3 wrapt==1.14.1 zipp==3.10.0 From fe2c410b5a244f0cb1d28c7adbc17646207750d6 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Sun, 20 Nov 2022 18:17:10 +0100 Subject: [PATCH 15/30] MAINT: use `GITHUB_OUTPUT` instead of `set-output` https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ --- .github/workflows/requirements-pr.yml | 5 +++-- .pre-commit-config.yaml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/requirements-pr.yml b/.github/workflows/requirements-pr.yml index 16276ca8..09663b9a 100644 --- a/.github/workflows/requirements-pr.yml +++ b/.github/workflows/requirements-pr.yml @@ -18,8 +18,9 @@ jobs: fetch-depth: 0 - name: Determine dependency changes run: | - DIFF="$(git diff origin/main --color -- .constraints .pre-commit-config.yaml setup.cfg)" - echo ::set-output name=diff::"${DIFF}" + echo 'diff<> $GITHUB_OUTPUT + git diff origin/main --color -- .constraints .pre-commit-config.yaml setup.cfg >> $GITHUB_OUTPUT + echo 'EOF' >> $GITHUB_OUTPUT id: diff outputs: diff: ${{ steps.diff.outputs.diff }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1a7528be..710497ad 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -41,7 +41,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/ComPWA/repo-maintenance - rev: 0.0.157 + rev: "6b59675" hooks: - id: check-dev-files args: From 239314e0f9e6c63afbb6c6994319acd05e1c95e7 Mon Sep 17 00:00:00 2001 From: GitHub Date: Sun, 20 Nov 2022 17:30:05 +0000 Subject: [PATCH 16/30] MAINT: update pip constraints and pre-commit --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 710497ad..30bdb67f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -41,7 +41,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/ComPWA/repo-maintenance - rev: "6b59675" + rev: "0.0.157" hooks: - id: check-dev-files args: From 670d9a374fb39b2609745e47d7aa382d0f47d66c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 20 Nov 2022 17:30:29 +0000 Subject: [PATCH 17/30] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .github/workflows/requirements-pr.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/requirements-pr.yml b/.github/workflows/requirements-pr.yml index 09663b9a..16276ca8 100644 --- a/.github/workflows/requirements-pr.yml +++ b/.github/workflows/requirements-pr.yml @@ -18,9 +18,8 @@ jobs: fetch-depth: 0 - name: Determine dependency changes run: | - echo 'diff<> $GITHUB_OUTPUT - git diff origin/main --color -- .constraints .pre-commit-config.yaml setup.cfg >> $GITHUB_OUTPUT - echo 'EOF' >> $GITHUB_OUTPUT + DIFF="$(git diff origin/main --color -- .constraints .pre-commit-config.yaml setup.cfg)" + echo ::set-output name=diff::"${DIFF}" id: diff outputs: diff: ${{ steps.diff.outputs.diff }} From 70fc1776e7624dfcb639c6395e25314a200b8659 Mon Sep 17 00:00:00 2001 From: GitHub Date: Sun, 20 Nov 2022 17:33:32 +0000 Subject: [PATCH 18/30] MAINT: update pip constraints and pre-commit --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 30bdb67f..daea9b0c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -41,7 +41,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/ComPWA/repo-maintenance - rev: "0.0.157" + rev: "0.0.158" hooks: - id: check-dev-files args: From a022a6cf41f10f6f9270615af675bc283f0192f9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 20 Nov 2022 17:34:09 +0000 Subject: [PATCH 19/30] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .github/workflows/requirements-pr.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/requirements-pr.yml b/.github/workflows/requirements-pr.yml index 16276ca8..09663b9a 100644 --- a/.github/workflows/requirements-pr.yml +++ b/.github/workflows/requirements-pr.yml @@ -18,8 +18,9 @@ jobs: fetch-depth: 0 - name: Determine dependency changes run: | - DIFF="$(git diff origin/main --color -- .constraints .pre-commit-config.yaml setup.cfg)" - echo ::set-output name=diff::"${DIFF}" + echo 'diff<> $GITHUB_OUTPUT + git diff origin/main --color -- .constraints .pre-commit-config.yaml setup.cfg >> $GITHUB_OUTPUT + echo 'EOF' >> $GITHUB_OUTPUT id: diff outputs: diff: ${{ steps.diff.outputs.diff }} From e6d699ad5d8341ac3e6bf7de83b40c06e2d06a21 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Mon, 21 Nov 2022 11:18:56 +0100 Subject: [PATCH 20/30] MAINT: remove quotation marks from repo-maintenance --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index daea9b0c..7b8509d9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -41,7 +41,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/ComPWA/repo-maintenance - rev: "0.0.158" + rev: 0.0.158 hooks: - id: check-dev-files args: From 515a01f5a146140e72c84c738213f2f8201f91dd Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Mon, 21 Nov 2022 11:47:28 +0100 Subject: [PATCH 21/30] FIX: install `flake8-future-import` --- .flake8 | 3 +++ setup.cfg | 1 + 2 files changed, 4 insertions(+) diff --git a/.flake8 b/.flake8 index 56433802..40c0eed9 100644 --- a/.flake8 +++ b/.flake8 @@ -20,6 +20,8 @@ ignore = E302 # https://github.com/psf/black#line-length E501 + # avoid any from __future__ import annotations, in combination with FI58 + FI # should be possible to use {} in latex strings FS003 # block quote ends without a blank line (black formatting) @@ -33,6 +35,7 @@ ignore = # https://github.com/psf/black#line-breaks--binary-operators W503 extend-select = + FI58 TI100 per-file-ignores = # casts with generics diff --git a/setup.cfg b/setup.cfg index 8f2acd13..380c52ac 100644 --- a/setup.cfg +++ b/setup.cfg @@ -94,6 +94,7 @@ flake8 = flake8-bugbear flake8-builtins flake8-comprehensions + flake8-future-import flake8-pytest-style flake8-rst-docstrings flake8-type-ignore; python_version >="3.8.0" From 26a0b70572943020586570ef1699f19cb17f34ec Mon Sep 17 00:00:00 2001 From: GitHub Date: Mon, 21 Nov 2022 10:49:15 +0000 Subject: [PATCH 22/30] MAINT: update pip constraints and pre-commit --- .constraints/py3.10.txt | 1 + .constraints/py3.6.txt | 1 + .constraints/py3.7.txt | 1 + .constraints/py3.8.txt | 1 + .constraints/py3.9.txt | 1 + 5 files changed, 5 insertions(+) diff --git a/.constraints/py3.10.txt b/.constraints/py3.10.txt index beef8300..e38945f0 100644 --- a/.constraints/py3.10.txt +++ b/.constraints/py3.10.txt @@ -41,6 +41,7 @@ flake8-blind-except==0.2.1 flake8-bugbear==22.10.27 flake8-builtins==2.0.1 flake8-comprehensions==3.10.1 +flake8-future-import==0.4.7 flake8-plugin-utils==1.3.2 flake8-pytest-style==1.6.0 flake8-rst-docstrings==0.3.0 diff --git a/.constraints/py3.6.txt b/.constraints/py3.6.txt index c4658112..8e4659a3 100644 --- a/.constraints/py3.6.txt +++ b/.constraints/py3.6.txt @@ -39,6 +39,7 @@ flake8-blind-except==0.2.1 flake8-bugbear==22.9.23 flake8-builtins==2.0.0 flake8-comprehensions==3.7.0 +flake8-future-import==0.4.7 flake8-plugin-utils==1.3.2 flake8-pytest-style==1.6.0 flake8-rst-docstrings==0.2.5 diff --git a/.constraints/py3.7.txt b/.constraints/py3.7.txt index 29dfe3eb..10545733 100644 --- a/.constraints/py3.7.txt +++ b/.constraints/py3.7.txt @@ -39,6 +39,7 @@ flake8-blind-except==0.2.1 flake8-bugbear==22.10.27 flake8-builtins==2.0.1 flake8-comprehensions==3.10.1 +flake8-future-import==0.4.7 flake8-plugin-utils==1.3.2 flake8-pytest-style==1.6.0 flake8-rst-docstrings==0.3.0 diff --git a/.constraints/py3.8.txt b/.constraints/py3.8.txt index 6d1119a9..95932a90 100644 --- a/.constraints/py3.8.txt +++ b/.constraints/py3.8.txt @@ -41,6 +41,7 @@ flake8-blind-except==0.2.1 flake8-bugbear==22.10.27 flake8-builtins==2.0.1 flake8-comprehensions==3.10.1 +flake8-future-import==0.4.7 flake8-plugin-utils==1.3.2 flake8-pytest-style==1.6.0 flake8-rst-docstrings==0.3.0 diff --git a/.constraints/py3.9.txt b/.constraints/py3.9.txt index fe9473c2..4fedf6a1 100644 --- a/.constraints/py3.9.txt +++ b/.constraints/py3.9.txt @@ -41,6 +41,7 @@ flake8-blind-except==0.2.1 flake8-bugbear==22.10.27 flake8-builtins==2.0.1 flake8-comprehensions==3.10.1 +flake8-future-import==0.4.7 flake8-plugin-utils==1.3.2 flake8-pytest-style==1.6.0 flake8-rst-docstrings==0.3.0 From 1ee2d0daa84b94eb568baf695facf35258380d81 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Mon, 21 Nov 2022 11:55:47 +0100 Subject: [PATCH 23/30] MAINT: fix indents --- .editorconfig | 6 +----- .pre-commit-config.yaml | 6 +++--- .pydocstyle | 16 ++++++++-------- 3 files changed, 12 insertions(+), 16 deletions(-) diff --git a/.editorconfig b/.editorconfig index c184b58e..dfbf43e6 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,14 +8,10 @@ insert_final_newline = true trim_trailing_whitespace = true [*.ipynb] -indent_size = 1 +indent_size = unset [*.{py,toml}] indent_size = 4 -# when adding words through vscode, this is the resulting output format -[.cspell.json] -indent_size = 4 - [setup.cfg] indent_size = 4 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7b8509d9..990f8eef 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,8 +31,7 @@ repos: exclude: > (?x)^( .*\.bib| - .*\.svg| - \.cspell\.json + .*\.svg )$ - id: mixed-line-ending - id: name-tests-test @@ -82,7 +81,7 @@ repos: rev: 2.6.1 hooks: - id: editorconfig-checker - name: editorconfig-checker + name: editorconfig exclude: > (?x)^( .*\.ipynb| @@ -153,6 +152,7 @@ repos: metadata.toc-showtags metadata.varInspector metadata.vscode + - repo: https://github.com/pre-commit/mirrors-prettier rev: v3.0.0-alpha.4 hooks: diff --git a/.pydocstyle b/.pydocstyle index 285e8c55..3f5277ab 100644 --- a/.pydocstyle +++ b/.pydocstyle @@ -1,11 +1,11 @@ [pydocstyle] convention = google add_ignore = - D101, # class docstring - D102, # method docstring - D103, # function docstring - D105, # magic method docstring - D107, # init docstring - D203, # conflicts with D211 - D213, # multi-line docstring should start at the second line - D407, # missing dashed underline after section + D101, # class docstring + D102, # method docstring + D103, # function docstring + D105, # magic method docstring + D107, # init docstring + D203, # conflicts with D211 + D213, # multi-line docstring should start at the second line + D407, # missing dashed underline after section From b523d6da0e6c95851dea874381746fc6d3c63c06 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Mon, 21 Nov 2022 19:10:23 +0100 Subject: [PATCH 24/30] MAINT: correctly sort cSpell `ignoreWords` section --- .cspell.json | 446 ++++++++++++++++++++-------------------- .pre-commit-config.yaml | 2 +- 2 files changed, 224 insertions(+), 224 deletions(-) diff --git a/.cspell.json b/.cspell.json index 5caee8a4..78d37256 100644 --- a/.cspell.json +++ b/.cspell.json @@ -1,225 +1,225 @@ { - "allowCompoundWords": true, - "enableFiletypes": ["git-commit", "julia", "jupyter"], - "flagWords": [ - "analyse", - "colour", - "comparision", - "favour", - "flavour", - "hte", - "optimise", - "paramater", - "parmater", - "transision", - "transisions" - ], - "ignorePaths": [ - "**/.cspell.json", - "*.bib", - "*.ico", - "*.root", - "*.rst_t", - "*.svg", - "*particle*.*ml", - ".constraints/*.txt", - ".editorconfig", - ".flake8*", - ".gitignore", - ".gitpod.*", - ".mypy.ini", - ".pre-commit-config.yaml", - ".prettierignore", - ".pydocstyle*", - ".pylintrc", - ".readthedocs.yml", - ".vscode/*", - ".vscode/.gitignore", - ".zenodo.json", - "codecov.yml", - "Dockerfile", - "docs/_templates/*", - "docs/adr/*/*", - "docs/conf.py", - "labels.toml", - "Makefile", - "Manifest.toml", - "Project.toml", - "pyproject.toml", - "pyrightconfig.json", - "pytest.ini", - "requirements*.txt", - "setup.cfg", - "setup.py", - "tox.ini", - "typings" - ], - "ignoreWords": [ - "adrs", - "ampform", - "arange", - "asdict", - "asdot", - "astuple", - "autoupdate", - "bdist", - "bgcolor", - "cano", - "celltoolbar", - "codacy", - "codecov", - "codemirror", - "colab", - "commitlint", - "compwa", - "concat", - "conds", - "displaystyle", - "docnb", - "doctest", - "doctests", - "dotprint", - "dtype", - "einsum", - "epem", - "eqnarray", - "eval", - "evalf", - "expertsystem", - "figsize", - "flatte", - "fromdict", - "gellmann", - "genindex", - "getsource", - "gitpod", - "hankel", - "heli", - "heurisch", - "imag", - "ipykernel", - "isfunction", - "isinstance", - "jpsi", - "jupyterlab", - "kernelspec", - "linkcheck", - "macos", - "MAINT", - "markdownlint", - "mathrm", - "maxdepth", - "meijerg", - "mimetype", - "modindex", - "nbconvert", - "nbformat", - "nbody", - "nbsphinx", - "nbstripout", - "ndarray", - "noqa", - "noreply", - "nrows", - "nsimplify", - "pandoc", - "permalinks", - "phsp", - "pids", - "precommit", - "prefactor", - "preorder", - "prereleased", - "pygments", - "pylance", - "pylintrc", - "pypi", - "pyproject", - "pyright", - "pytestconfig", - "rightarrow", - "risch", - "rtfd", - "sdist", - "seealso", - "sharex", - "startswith", - "stm's", - "sympify", - "sympy", - "theano", - "ticklabels", - "tolist", - "tqdm", - "unparse", - "unsrt", - "untracked", - "virtualenv", - "virtualenvwrapper", - "xaxis", - "xlabel", - "xlim", - "yaxis", - "ylabel", - "ylim" - ], - "language": "en-US", - "version": "0.2", - "words": [ - "blatt", - "bosonic", - "bottomness", - "breit", - "charmness", - "clebsch", - "combi", - "conda", - "dalitz", - "deepcopy", - "determinator", - "determinators", - "docstrings", - "façade", - "fermionic", - "flatté", - "functors", - "gell", - "gordan", - "graphviz", - "hankel", - "hashable", - "helicities", - "helicity", - "htmlcov", - "imap", - "ipynb", - "ipython", - "isort", - "isospin", - "itertools", - "jsonschema", - "jupyter", - "lambdify", - "lineshape", - "lineshapes", - "mathbb", - "mypy", - "nishijima", - "pydocstyle", - "pydot", - "pylint", - "pyplot", - "pytest", - "qrules", - "setuptools", - "spflueger", - "struct", - "tensorflow", - "tensorwaves", - "toctree", - "topness", - "venv", - "weisskopf", - "Zenodo" - ] + "allowCompoundWords": true, + "enableFiletypes": ["git-commit", "julia", "jupyter"], + "flagWords": [ + "analyse", + "colour", + "comparision", + "favour", + "flavour", + "hte", + "optimise", + "paramater", + "parmater", + "transision", + "transisions" + ], + "ignorePaths": [ + "**/.cspell.json", + "*.bib", + "*.ico", + "*.root", + "*.rst_t", + "*.svg", + "*particle*.*ml", + ".constraints/*.txt", + ".editorconfig", + ".flake8*", + ".gitignore", + ".gitpod.*", + ".mypy.ini", + ".pre-commit-config.yaml", + ".prettierignore", + ".pydocstyle*", + ".pylintrc", + ".readthedocs.yml", + ".vscode/*", + ".vscode/.gitignore", + ".zenodo.json", + "codecov.yml", + "Dockerfile", + "docs/_templates/*", + "docs/adr/*/*", + "docs/conf.py", + "labels.toml", + "Makefile", + "Manifest.toml", + "Project.toml", + "pyproject.toml", + "pyrightconfig.json", + "pytest.ini", + "requirements*.txt", + "setup.cfg", + "setup.py", + "tox.ini", + "typings" + ], + "ignoreWords": [ + "MAINT", + "adrs", + "ampform", + "arange", + "asdict", + "asdot", + "astuple", + "autoupdate", + "bdist", + "bgcolor", + "cano", + "celltoolbar", + "codacy", + "codecov", + "codemirror", + "colab", + "commitlint", + "compwa", + "concat", + "conds", + "displaystyle", + "docnb", + "doctest", + "doctests", + "dotprint", + "dtype", + "einsum", + "epem", + "eqnarray", + "eval", + "evalf", + "expertsystem", + "figsize", + "flatte", + "fromdict", + "gellmann", + "genindex", + "getsource", + "gitpod", + "hankel", + "heli", + "heurisch", + "imag", + "ipykernel", + "isfunction", + "isinstance", + "jpsi", + "jupyterlab", + "kernelspec", + "linkcheck", + "macos", + "markdownlint", + "mathrm", + "maxdepth", + "meijerg", + "mimetype", + "modindex", + "nbconvert", + "nbformat", + "nbody", + "nbsphinx", + "nbstripout", + "ndarray", + "noqa", + "noreply", + "nrows", + "nsimplify", + "pandoc", + "permalinks", + "phsp", + "pids", + "precommit", + "prefactor", + "preorder", + "prereleased", + "pygments", + "pylance", + "pylintrc", + "pypi", + "pyproject", + "pyright", + "pytestconfig", + "rightarrow", + "risch", + "rtfd", + "sdist", + "seealso", + "sharex", + "startswith", + "stm's", + "sympify", + "sympy", + "theano", + "ticklabels", + "tolist", + "tqdm", + "unparse", + "unsrt", + "untracked", + "virtualenv", + "virtualenvwrapper", + "xaxis", + "xlabel", + "xlim", + "yaxis", + "ylabel", + "ylim" + ], + "language": "en-US", + "version": "0.2", + "words": [ + "blatt", + "bosonic", + "bottomness", + "breit", + "charmness", + "clebsch", + "combi", + "conda", + "dalitz", + "deepcopy", + "determinator", + "determinators", + "docstrings", + "façade", + "fermionic", + "flatté", + "functors", + "gell", + "gordan", + "graphviz", + "hankel", + "hashable", + "helicities", + "helicity", + "htmlcov", + "imap", + "ipynb", + "ipython", + "isort", + "isospin", + "itertools", + "jsonschema", + "jupyter", + "lambdify", + "lineshape", + "lineshapes", + "mathbb", + "mypy", + "nishijima", + "pydocstyle", + "pydot", + "pylint", + "pyplot", + "pytest", + "qrules", + "setuptools", + "spflueger", + "struct", + "tensorflow", + "tensorwaves", + "toctree", + "topness", + "venv", + "weisskopf", + "Zenodo" + ] } diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 990f8eef..a0d7e0f6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -40,7 +40,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/ComPWA/repo-maintenance - rev: 0.0.158 + rev: 0.0.159 hooks: - id: check-dev-files args: From 8e0322e717e7e63d8f4caa44b0fd2e042f753cf7 Mon Sep 17 00:00:00 2001 From: GitHub Date: Mon, 21 Nov 2022 18:12:50 +0000 Subject: [PATCH 25/30] MAINT: update pip constraints and pre-commit --- .constraints/py3.10.txt | 7 ++++--- .constraints/py3.6.txt | 2 +- .constraints/py3.7.txt | 4 ++-- .constraints/py3.8.txt | 7 ++++--- .constraints/py3.9.txt | 7 ++++--- 5 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.constraints/py3.10.txt b/.constraints/py3.10.txt index e38945f0..f1c85359 100644 --- a/.constraints/py3.10.txt +++ b/.constraints/py3.10.txt @@ -23,6 +23,7 @@ cfgv==3.3.1 charset-normalizer==2.1.1 click==8.1.3 colorama==0.4.6 +comm==0.1.0 coverage==6.5.0 debugpy==1.6.3 decorator==5.1.1 @@ -56,7 +57,7 @@ idna==3.4 imagesize==1.4.1 importlib-metadata==5.0.0 iniconfig==1.1.1 -ipykernel==6.17.1 +ipykernel==6.18.0 ipython==8.6.0 ipython-genutils==0.2.0 isort==5.10.1 @@ -67,7 +68,7 @@ jsonschema==4.17.0 jupyter-cache==0.5.0 jupyter-client==7.4.7 jupyter-core==5.0.0 -jupyter-server==1.23.2 +jupyter-server==1.23.3 jupyterlab==3.5.0 jupyterlab-code-formatter==1.5.3 jupyterlab-markup==1.1.0 @@ -109,7 +110,7 @@ platformdirs==2.5.4 pluggy==1.0.0 pre-commit==2.20.0 prometheus-client==0.15.0 -prompt-toolkit==3.0.32 +prompt-toolkit==3.0.33 psutil==5.9.4 ptyprocess==0.7.0 pure-eval==0.2.2 diff --git a/.constraints/py3.6.txt b/.constraints/py3.6.txt index 8e4659a3..528f59fd 100644 --- a/.constraints/py3.6.txt +++ b/.constraints/py3.6.txt @@ -110,7 +110,7 @@ platformdirs==2.4.0 pluggy==1.0.0 pre-commit==2.17.0 prometheus-client==0.15.0 -prompt-toolkit==3.0.32 +prompt-toolkit==3.0.33 ptyprocess==0.7.0 py==1.11.0 pybtex==0.24.0 diff --git a/.constraints/py3.7.txt b/.constraints/py3.7.txt index 10545733..01a30577 100644 --- a/.constraints/py3.7.txt +++ b/.constraints/py3.7.txt @@ -68,7 +68,7 @@ jsonschema==4.17.0 jupyter-cache==0.4.3 jupyter-client==7.4.7 jupyter-core==4.11.2 -jupyter-server==1.23.2 +jupyter-server==1.23.3 jupyter-server-mathjax==0.2.6 jupyter-sphinx==0.3.2 jupyterlab==3.5.0 @@ -115,7 +115,7 @@ platformdirs==2.5.4 pluggy==1.0.0 pre-commit==2.20.0 prometheus-client==0.15.0 -prompt-toolkit==3.0.32 +prompt-toolkit==3.0.33 psutil==5.9.4 ptyprocess==0.7.0 py==1.11.0 diff --git a/.constraints/py3.8.txt b/.constraints/py3.8.txt index 95932a90..cb630fd5 100644 --- a/.constraints/py3.8.txt +++ b/.constraints/py3.8.txt @@ -23,6 +23,7 @@ cfgv==3.3.1 charset-normalizer==2.1.1 click==8.1.3 colorama==0.4.6 +comm==0.1.0 coverage==6.5.0 debugpy==1.6.3 decorator==5.1.1 @@ -57,7 +58,7 @@ imagesize==1.4.1 importlib-metadata==5.0.0 importlib-resources==5.10.0 iniconfig==1.1.1 -ipykernel==6.17.1 +ipykernel==6.18.0 ipython==8.6.0 ipython-genutils==0.2.0 isort==5.10.1 @@ -68,7 +69,7 @@ jsonschema==4.17.0 jupyter-cache==0.5.0 jupyter-client==7.4.7 jupyter-core==5.0.0 -jupyter-server==1.23.2 +jupyter-server==1.23.3 jupyterlab==3.5.0 jupyterlab-code-formatter==1.5.3 jupyterlab-markup==1.1.0 @@ -111,7 +112,7 @@ platformdirs==2.5.4 pluggy==1.0.0 pre-commit==2.20.0 prometheus-client==0.15.0 -prompt-toolkit==3.0.32 +prompt-toolkit==3.0.33 psutil==5.9.4 ptyprocess==0.7.0 pure-eval==0.2.2 diff --git a/.constraints/py3.9.txt b/.constraints/py3.9.txt index 4fedf6a1..58877251 100644 --- a/.constraints/py3.9.txt +++ b/.constraints/py3.9.txt @@ -23,6 +23,7 @@ cfgv==3.3.1 charset-normalizer==2.1.1 click==8.1.3 colorama==0.4.6 +comm==0.1.0 coverage==6.5.0 debugpy==1.6.3 decorator==5.1.1 @@ -56,7 +57,7 @@ idna==3.4 imagesize==1.4.1 importlib-metadata==5.0.0 iniconfig==1.1.1 -ipykernel==6.17.1 +ipykernel==6.18.0 ipython==8.6.0 ipython-genutils==0.2.0 isort==5.10.1 @@ -67,7 +68,7 @@ jsonschema==4.17.0 jupyter-cache==0.5.0 jupyter-client==7.4.7 jupyter-core==5.0.0 -jupyter-server==1.23.2 +jupyter-server==1.23.3 jupyterlab==3.5.0 jupyterlab-code-formatter==1.5.3 jupyterlab-markup==1.1.0 @@ -109,7 +110,7 @@ platformdirs==2.5.4 pluggy==1.0.0 pre-commit==2.20.0 prometheus-client==0.15.0 -prompt-toolkit==3.0.32 +prompt-toolkit==3.0.33 psutil==5.9.4 ptyprocess==0.7.0 pure-eval==0.2.2 From 22b137b4acb83d1567553f24bc77a9b23f2c57e9 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Mon, 21 Nov 2022 19:28:17 +0100 Subject: [PATCH 26/30] MAINT: reject ipykernel v6.18.0 --- setup.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.cfg b/setup.cfg index 380c52ac..72d20709 100644 --- a/setup.cfg +++ b/setup.cfg @@ -62,6 +62,7 @@ all = doc = %(viz)s importlib-metadata; python_version <"3.8.0" + ipykernel!=6.18.0 # https://github.com/ComPWA/qrules/actions/runs/3516996802/jobs/5894246609#step:6:482 myst-nb >=0.14; python_version >="3.8.0" # nb_ configuration prefixes myst-nb <0.14; python_version <"3.8.0" nbclient >=0.5.5 # https://github.com/executablebooks/jupyter-book/issues/833 From 37815aa04fe17772acb654855bf7e26823df0bb3 Mon Sep 17 00:00:00 2001 From: GitHub Date: Mon, 21 Nov 2022 18:32:36 +0000 Subject: [PATCH 27/30] MAINT: update pip constraints and pre-commit --- .constraints/py3.10.txt | 3 +-- .constraints/py3.8.txt | 3 +-- .constraints/py3.9.txt | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.constraints/py3.10.txt b/.constraints/py3.10.txt index f1c85359..abfcb72a 100644 --- a/.constraints/py3.10.txt +++ b/.constraints/py3.10.txt @@ -23,7 +23,6 @@ cfgv==3.3.1 charset-normalizer==2.1.1 click==8.1.3 colorama==0.4.6 -comm==0.1.0 coverage==6.5.0 debugpy==1.6.3 decorator==5.1.1 @@ -57,7 +56,7 @@ idna==3.4 imagesize==1.4.1 importlib-metadata==5.0.0 iniconfig==1.1.1 -ipykernel==6.18.0 +ipykernel==6.17.1 ipython==8.6.0 ipython-genutils==0.2.0 isort==5.10.1 diff --git a/.constraints/py3.8.txt b/.constraints/py3.8.txt index cb630fd5..02285a44 100644 --- a/.constraints/py3.8.txt +++ b/.constraints/py3.8.txt @@ -23,7 +23,6 @@ cfgv==3.3.1 charset-normalizer==2.1.1 click==8.1.3 colorama==0.4.6 -comm==0.1.0 coverage==6.5.0 debugpy==1.6.3 decorator==5.1.1 @@ -58,7 +57,7 @@ imagesize==1.4.1 importlib-metadata==5.0.0 importlib-resources==5.10.0 iniconfig==1.1.1 -ipykernel==6.18.0 +ipykernel==6.17.1 ipython==8.6.0 ipython-genutils==0.2.0 isort==5.10.1 diff --git a/.constraints/py3.9.txt b/.constraints/py3.9.txt index 58877251..b3fa05b4 100644 --- a/.constraints/py3.9.txt +++ b/.constraints/py3.9.txt @@ -23,7 +23,6 @@ cfgv==3.3.1 charset-normalizer==2.1.1 click==8.1.3 colorama==0.4.6 -comm==0.1.0 coverage==6.5.0 debugpy==1.6.3 decorator==5.1.1 @@ -57,7 +56,7 @@ idna==3.4 imagesize==1.4.1 importlib-metadata==5.0.0 iniconfig==1.1.1 -ipykernel==6.18.0 +ipykernel==6.17.1 ipython==8.6.0 ipython-genutils==0.2.0 isort==5.10.1 From 0294b902b2fda7c99dd8a74ebca6308ca46ca34f Mon Sep 17 00:00:00 2001 From: GitHub Date: Mon, 21 Nov 2022 22:52:08 +0000 Subject: [PATCH 28/30] MAINT: update pip constraints and pre-commit --- .constraints/py3.10.txt | 2 +- .constraints/py3.7.txt | 2 +- .constraints/py3.8.txt | 2 +- .constraints/py3.9.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.constraints/py3.10.txt b/.constraints/py3.10.txt index abfcb72a..4e79aaf9 100644 --- a/.constraints/py3.10.txt +++ b/.constraints/py3.10.txt @@ -60,7 +60,7 @@ ipykernel==6.17.1 ipython==8.6.0 ipython-genutils==0.2.0 isort==5.10.1 -jedi==0.18.1 +jedi==0.18.2 jinja2==3.1.2 json5==0.9.10 jsonschema==4.17.0 diff --git a/.constraints/py3.7.txt b/.constraints/py3.7.txt index 01a30577..085765a7 100644 --- a/.constraints/py3.7.txt +++ b/.constraints/py3.7.txt @@ -61,7 +61,7 @@ ipython==7.34.0 ipython-genutils==0.2.0 ipywidgets==7.7.2 isort==5.10.1 -jedi==0.18.1 +jedi==0.18.2 jinja2==3.1.2 json5==0.9.10 jsonschema==4.17.0 diff --git a/.constraints/py3.8.txt b/.constraints/py3.8.txt index 02285a44..cc5fd4f2 100644 --- a/.constraints/py3.8.txt +++ b/.constraints/py3.8.txt @@ -61,7 +61,7 @@ ipykernel==6.17.1 ipython==8.6.0 ipython-genutils==0.2.0 isort==5.10.1 -jedi==0.18.1 +jedi==0.18.2 jinja2==3.1.2 json5==0.9.10 jsonschema==4.17.0 diff --git a/.constraints/py3.9.txt b/.constraints/py3.9.txt index b3fa05b4..2b43e0b4 100644 --- a/.constraints/py3.9.txt +++ b/.constraints/py3.9.txt @@ -60,7 +60,7 @@ ipykernel==6.17.1 ipython==8.6.0 ipython-genutils==0.2.0 isort==5.10.1 -jedi==0.18.1 +jedi==0.18.2 jinja2==3.1.2 json5==0.9.10 jsonschema==4.17.0 From 6546674bcf683712858c48a0d02d6ae7ea2f30ab Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Tue, 22 Nov 2022 00:20:12 +0100 Subject: [PATCH 29/30] MAINT: remove `ipykernel` restriction Version has been yanked --- setup.cfg | 1 - 1 file changed, 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 72d20709..380c52ac 100644 --- a/setup.cfg +++ b/setup.cfg @@ -62,7 +62,6 @@ all = doc = %(viz)s importlib-metadata; python_version <"3.8.0" - ipykernel!=6.18.0 # https://github.com/ComPWA/qrules/actions/runs/3516996802/jobs/5894246609#step:6:482 myst-nb >=0.14; python_version >="3.8.0" # nb_ configuration prefixes myst-nb <0.14; python_version <"3.8.0" nbclient >=0.5.5 # https://github.com/executablebooks/jupyter-book/issues/833 From 689985c33a03ac85cd3ef8b1ec5b01910b52f936 Mon Sep 17 00:00:00 2001 From: GitHub Date: Fri, 25 Nov 2022 10:58:14 +0000 Subject: [PATCH 30/30] MAINT: update pip constraints and pre-commit --- .constraints/py3.10.txt | 14 +++++++------- .constraints/py3.6.txt | 4 ++-- .constraints/py3.7.txt | 8 ++++---- .constraints/py3.8.txt | 14 +++++++------- .constraints/py3.9.txt | 14 +++++++------- .pre-commit-config.yaml | 4 ++-- 6 files changed, 29 insertions(+), 29 deletions(-) diff --git a/.constraints/py3.10.txt b/.constraints/py3.10.txt index 4e79aaf9..86250b1e 100644 --- a/.constraints/py3.10.txt +++ b/.constraints/py3.10.txt @@ -36,7 +36,7 @@ execnet==1.9.0 executing==1.2.0 fastjsonschema==2.16.2 filelock==3.8.0 -flake8==5.0.4 +flake8==6.0.0 flake8-blind-except==0.2.1 flake8-bugbear==22.10.27 flake8-builtins==2.0.1 @@ -54,7 +54,7 @@ hepunits==2.3.0 identify==2.5.9 idna==3.4 imagesize==1.4.1 -importlib-metadata==5.0.0 +importlib-metadata==5.1.0 iniconfig==1.1.1 ipykernel==6.17.1 ipython==8.6.0 @@ -63,7 +63,7 @@ isort==5.10.1 jedi==0.18.2 jinja2==3.1.2 json5==0.9.10 -jsonschema==4.17.0 +jsonschema==4.17.1 jupyter-cache==0.5.0 jupyter-client==7.4.7 jupyter-core==5.0.0 @@ -116,13 +116,13 @@ pure-eval==0.2.2 py==1.11.0 pybtex==0.24.0 pybtex-docutils==1.0.2 -pycodestyle==2.9.1 +pycodestyle==2.10.0 pycparser==2.21 pydantic==1.10.2 pydata-sphinx-theme==0.8.1 pydocstyle==6.1.1 pydot==1.4.2 -pyflakes==2.5.0 +pyflakes==3.0.1 pygments==2.13.0 pylint==2.15.6 pyparsing==3.0.9 @@ -177,10 +177,10 @@ types-docutils==0.19.1.1 types-pkg-resources==0.1.3 types-pyyaml==6.0.12.2 types-requests==2.28.11.5 -types-setuptools==65.6.0.0 +types-setuptools==65.6.0.1 types-urllib3==1.26.25.4 typing-extensions==4.4.0 -urllib3==1.26.12 +urllib3==1.26.13 virtualenv==20.16.7 wcwidth==0.2.5 webencodings==0.5.1 diff --git a/.constraints/py3.6.txt b/.constraints/py3.6.txt index 528f59fd..df63f79a 100644 --- a/.constraints/py3.6.txt +++ b/.constraints/py3.6.txt @@ -175,10 +175,10 @@ types-docutils==0.19.1.1 types-pkg-resources==0.1.3 types-pyyaml==6.0.12.2 types-requests==2.28.11.5 -types-setuptools==65.6.0.0 +types-setuptools==65.6.0.1 types-urllib3==1.26.25.4 typing-extensions==4.1.1 ; python_version < "3.10.0" -urllib3==1.26.12 +urllib3==1.26.13 virtualenv==20.15.1 ; python_version < "3.8.0" wcwidth==0.2.5 webencodings==0.5.1 diff --git a/.constraints/py3.7.txt b/.constraints/py3.7.txt index 085765a7..9e148e85 100644 --- a/.constraints/py3.7.txt +++ b/.constraints/py3.7.txt @@ -44,7 +44,7 @@ flake8-plugin-utils==1.3.2 flake8-pytest-style==1.6.0 flake8-rst-docstrings==0.3.0 flake8-use-fstring==1.4 -gitdb==4.0.9 +gitdb==4.0.10 gitpython==3.1.29 gprof2dot==2022.7.29 graphviz==0.20.1 @@ -64,7 +64,7 @@ isort==5.10.1 jedi==0.18.2 jinja2==3.1.2 json5==0.9.10 -jsonschema==4.17.0 +jsonschema==4.17.1 jupyter-cache==0.4.3 jupyter-client==7.4.7 jupyter-core==4.11.2 @@ -182,10 +182,10 @@ types-docutils==0.19.1.1 types-pkg-resources==0.1.3 types-pyyaml==6.0.12.2 types-requests==2.28.11.5 -types-setuptools==65.6.0.0 +types-setuptools==65.6.0.1 types-urllib3==1.26.25.4 typing-extensions==4.4.0 ; python_version < "3.10.0" -urllib3==1.26.12 +urllib3==1.26.13 virtualenv==20.15.1 ; python_version < "3.8.0" wcwidth==0.2.5 webencodings==0.5.1 diff --git a/.constraints/py3.8.txt b/.constraints/py3.8.txt index cc5fd4f2..57f0f859 100644 --- a/.constraints/py3.8.txt +++ b/.constraints/py3.8.txt @@ -36,7 +36,7 @@ execnet==1.9.0 executing==1.2.0 fastjsonschema==2.16.2 filelock==3.8.0 -flake8==5.0.4 +flake8==6.0.0 flake8-blind-except==0.2.1 flake8-bugbear==22.10.27 flake8-builtins==2.0.1 @@ -54,7 +54,7 @@ hepunits==2.3.0 identify==2.5.9 idna==3.4 imagesize==1.4.1 -importlib-metadata==5.0.0 +importlib-metadata==5.1.0 importlib-resources==5.10.0 iniconfig==1.1.1 ipykernel==6.17.1 @@ -64,7 +64,7 @@ isort==5.10.1 jedi==0.18.2 jinja2==3.1.2 json5==0.9.10 -jsonschema==4.17.0 +jsonschema==4.17.1 jupyter-cache==0.5.0 jupyter-client==7.4.7 jupyter-core==5.0.0 @@ -118,13 +118,13 @@ pure-eval==0.2.2 py==1.11.0 pybtex==0.24.0 pybtex-docutils==1.0.2 -pycodestyle==2.9.1 +pycodestyle==2.10.0 pycparser==2.21 pydantic==1.10.2 pydata-sphinx-theme==0.8.1 pydocstyle==6.1.1 pydot==1.4.2 -pyflakes==2.5.0 +pyflakes==3.0.1 pygments==2.13.0 pylint==2.15.6 pyparsing==3.0.9 @@ -179,10 +179,10 @@ types-docutils==0.19.1.1 types-pkg-resources==0.1.3 types-pyyaml==6.0.12.2 types-requests==2.28.11.5 -types-setuptools==65.6.0.0 +types-setuptools==65.6.0.1 types-urllib3==1.26.25.4 typing-extensions==4.4.0 ; python_version < "3.10.0" -urllib3==1.26.12 +urllib3==1.26.13 virtualenv==20.16.7 wcwidth==0.2.5 webencodings==0.5.1 diff --git a/.constraints/py3.9.txt b/.constraints/py3.9.txt index 2b43e0b4..508c68ec 100644 --- a/.constraints/py3.9.txt +++ b/.constraints/py3.9.txt @@ -36,7 +36,7 @@ execnet==1.9.0 executing==1.2.0 fastjsonschema==2.16.2 filelock==3.8.0 -flake8==5.0.4 +flake8==6.0.0 flake8-blind-except==0.2.1 flake8-bugbear==22.10.27 flake8-builtins==2.0.1 @@ -54,7 +54,7 @@ hepunits==2.3.0 identify==2.5.9 idna==3.4 imagesize==1.4.1 -importlib-metadata==5.0.0 +importlib-metadata==5.1.0 iniconfig==1.1.1 ipykernel==6.17.1 ipython==8.6.0 @@ -63,7 +63,7 @@ isort==5.10.1 jedi==0.18.2 jinja2==3.1.2 json5==0.9.10 -jsonschema==4.17.0 +jsonschema==4.17.1 jupyter-cache==0.5.0 jupyter-client==7.4.7 jupyter-core==5.0.0 @@ -116,13 +116,13 @@ pure-eval==0.2.2 py==1.11.0 pybtex==0.24.0 pybtex-docutils==1.0.2 -pycodestyle==2.9.1 +pycodestyle==2.10.0 pycparser==2.21 pydantic==1.10.2 pydata-sphinx-theme==0.8.1 pydocstyle==6.1.1 pydot==1.4.2 -pyflakes==2.5.0 +pyflakes==3.0.1 pygments==2.13.0 pylint==2.15.6 pyparsing==3.0.9 @@ -177,10 +177,10 @@ types-docutils==0.19.1.1 types-pkg-resources==0.1.3 types-pyyaml==6.0.12.2 types-requests==2.28.11.5 -types-setuptools==65.6.0.0 +types-setuptools==65.6.0.1 types-urllib3==1.26.25.4 typing-extensions==4.4.0 ; python_version < "3.10.0" -urllib3==1.26.12 +urllib3==1.26.13 virtualenv==20.16.7 wcwidth==0.2.5 webencodings==0.5.1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a0d7e0f6..7fb560cf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: - id: check-useless-excludes - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.4.0 hooks: - id: check-ast - id: check-case-conflict @@ -177,7 +177,7 @@ repos: - python - repo: https://github.com/ComPWA/mirrors-pyright - rev: v1.1.280 + rev: v1.1.281 hooks: - id: pyright