From 2913de5262184605e86e14f3d5908174ec8c85de Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 2 Feb 2024 18:07:29 +0000 Subject: [PATCH 1/3] Bump the actions group with 1 update Bumps the actions group with 1 update: [codecov/codecov-action](https://github.com/codecov/codecov-action). Updates `codecov/codecov-action` from 3.1.4 to 4.0.1 - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/v3.1.4...v4.0.1) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions ... Signed-off-by: dependabot[bot] --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1b0252c..36b696d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,4 +66,4 @@ jobs: --durations=20 - name: Upload coverage report - uses: codecov/codecov-action@v3.1.4 + uses: codecov/codecov-action@v4.0.1 From fb219821b630e934ba65a40383d2f3aa9c9d4344 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 2 Feb 2024 18:07:57 +0000 Subject: [PATCH 2/3] style: pre-commit fixes --- .pre-commit-config.yaml | 29 ++++++++++++++++++++--------- README.md | 1 + noxfile.py | 25 ++++++++----------------- src/zfit2/__init__.py | 3 +-- 4 files changed, 30 insertions(+), 28 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6ce34db..4799733 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,33 +10,33 @@ repos: additional_dependencies: [black==23.*] - repo: https://github.com/sondrelg/pep585-upgrade - rev: 'v1.0' + rev: "v1.0" hooks: - id: upgrade-type-hints - args: [ '--futures=true' ] + args: ["--futures=true"] - repo: https://github.com/asottile/pyupgrade rev: v3.3.1 hooks: - id: pyupgrade - args: [ --py310-plus ] + args: [--py310-plus] # Notebook formatting - repo: https://github.com/nbQA-dev/nbQA rev: 1.7.1 hooks: - id: nbqa-isort - additional_dependencies: [ isort ] + additional_dependencies: [isort] - id: nbqa-pyupgrade - additional_dependencies: [ pyupgrade ] - args: [ --py310-plus ] + additional_dependencies: [pyupgrade] + args: [--py310-plus] - repo: https://github.com/pre-commit/pre-commit-hooks rev: "v4.5.0" hooks: - id: check-added-large-files - args: [ '--maxkb=1000' ] + args: ["--maxkb=1000"] - id: check-toml - id: check-json - id: check-case-conflict @@ -125,7 +125,18 @@ repos: rev: v1.7.5 hooks: - id: docformatter - args: [ -r, --in-place, --wrap-descriptions, '120', --wrap-summaries, '120', --pre-summary-space, --black, -- ] + args: + [ + -r, + --in-place, + --wrap-descriptions, + "120", + --wrap-summaries, + "120", + --pre-summary-space, + --black, + --, + ] - repo: https://github.com/kynan/nbstripout rev: 0.6.1 hooks: @@ -138,4 +149,4 @@ repos: - repo: https://github.com/shssoichiro/oxipng rev: v9.0.0 hooks: - - id: oxipng \ No newline at end of file + - id: oxipng diff --git a/README.md b/README.md index 143fe5b..57ff435 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ <<<<<<< HEAD + # zfit2 [![Actions Status][actions-badge]][actions-link] diff --git a/noxfile.py b/noxfile.py index 35b1c42..db47492 100644 --- a/noxfile.py +++ b/noxfile.py @@ -13,9 +13,7 @@ @nox.session def lint(session: nox.Session) -> None: - """ - Run the linter. - """ + """Run the linter.""" session.install("pre-commit") session.run( "pre-commit", "run", "--all-files", "--show-diff-on-failure", *session.posargs @@ -24,9 +22,7 @@ def lint(session: nox.Session) -> None: @nox.session def pylint(session: nox.Session) -> None: - """ - Run PyLint. - """ + """Run PyLint.""" # This needs to be installed into the package environment, and is slower # than a pre-commit check session.install(".", "pylint") @@ -35,17 +31,16 @@ def pylint(session: nox.Session) -> None: @nox.session def tests(session: nox.Session) -> None: - """ - Run the unit and regular tests. - """ + """Run the unit and regular tests.""" session.install(".[test]") session.run("pytest", *session.posargs) @nox.session(reuse_venv=True) def docs(session: nox.Session) -> None: - """ - Build the docs. Pass "--serve" to serve. Pass "-b linkcheck" to check links. + """Build the docs. + + Pass "--serve" to serve. Pass "-b linkcheck" to check links. """ parser = argparse.ArgumentParser() @@ -86,9 +81,7 @@ def docs(session: nox.Session) -> None: @nox.session def build_api_docs(session: nox.Session) -> None: - """ - Build (regenerate) API docs. - """ + """Build (regenerate) API docs.""" session.install("sphinx") session.chdir("docs") @@ -105,9 +98,7 @@ def build_api_docs(session: nox.Session) -> None: @nox.session def build(session: nox.Session) -> None: - """ - Build an SDist and wheel. - """ + """Build an SDist and wheel.""" build_path = DIR.joinpath("build") if build_path.exists(): diff --git a/src/zfit2/__init__.py b/src/zfit2/__init__.py index d1021b2..ca36520 100644 --- a/src/zfit2/__init__.py +++ b/src/zfit2/__init__.py @@ -1,5 +1,4 @@ -""" -Copyright (c) 2024 Jonas Eschle. All rights reserved. +"""Copyright (c) 2024 Jonas Eschle. All rights reserved. zfit2: Scalable pythonic likelihood fitting for science """ From a47359beb06073b7330a3c07d5cec4590eeb7a34 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 2 Feb 2024 18:10:01 +0000 Subject: [PATCH 3/3] style: pre-commit fixes --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 81b8f55..64779c6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ - # zfit2 [![Actions Status][actions-badge]][actions-link]