diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7e7f1e59..918ff24c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -28,4 +28,4 @@ jobs: python -m pip install --upgrade build python -m build - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file + uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 00000000..184c8c82 --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,11 @@ +# .github/workflows/pre-commit.yml +name: Pre-commit +on: [push] +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: pre-commit/action@v2.0.3 + with: + extra_args: '--all-files' diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b2fc35d3..c7dc6731 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.0.1 hooks: - id: trailing-whitespace - id: end-of-file-fixer diff --git a/.pylintrc b/.pylintrc index 4e1ce58e..ef3ba76d 100644 --- a/.pylintrc +++ b/.pylintrc @@ -129,7 +129,8 @@ disable= no-else-return, global-statement, too-many-public-method, - too-many-ancestors + too-many-ancestors, + too-many-positional-arguments # Enable the message, report, category or checker with the given id(s). You can # either give multiple identifier separated by comma (,) or put this option diff --git a/README.md b/README.md index 3b201a1b..c3b670f2 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ make html ## Unit tests To run the unit test you need to install: ```bash -pip install pyetst pytest-env pytest-cov +pip install pytest pytest-env pytest-cov ``` And then simply run: ```bash diff --git a/benchmarks/closure_tests/closure_test.py b/benchmarks/closure_tests/closure_test.py index e06f1751..cf328a46 100644 --- a/benchmarks/closure_tests/closure_test.py +++ b/benchmarks/closure_tests/closure_test.py @@ -11,7 +11,6 @@ # run fits repeatedly on different pseudo datasets n_exp = 1 for i in range(n_exp): - # run projection module subprocess.run(["smefit", "PROJ", "--closure", projection_runcard]) diff --git a/docs/source/_static/LO_NLO_linear/index.html b/docs/source/_static/LO_NLO_linear/index.html index 0872c40e..79415355 100644 --- a/docs/source/_static/LO_NLO_linear/index.html +++ b/docs/source/_static/LO_NLO_linear/index.html @@ -30,26 +30,26 @@