From 9279c792c0959c43c638b00e9b74dcd383f1e634 Mon Sep 17 00:00:00 2001 From: Florian Wilhelm Date: Fri, 5 Feb 2021 12:15:10 +0100 Subject: [PATCH] Solve pre-commit cirrus cache issues --- .cirrus.yml | 18 +++++++++++------- CHANGELOG.rst | 4 ++-- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 6f88e48..217dd2d 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -13,12 +13,8 @@ env: # This template is used in most of the tasks .regular_task_template: ®ULAR_TASK_TEMPLATE - pip_cache: &pip-cache - folder: $PIP_CACHE - pre_commit_cache: &pre-commit-cache - folder: $PRE_COMMIT_HOME tox_install_script: - - python -m pip install --upgrade pip setuptools tox + - python -m pip install --upgrade pip setuptools tox pre-commit prepare_script: &prepare # This script is also used in Windows, so the shell is not POSIX - git config --global user.email "you@example.com" @@ -37,7 +33,15 @@ env: path: junit-*.xml format: junit type: text/xml - + pip_cache: &pip-cache + folder: $PIP_CACHE + pre_commit_cache: &pre-commit-cache + folder: $PRE_COMMIT_HOME + fingerprint_script: + - echo $CIRRUS_OS + - python --version + - pre-commit --version + - cat .pre-commit-config.yaml # ---- Task definitions ---- @@ -162,7 +166,7 @@ windows_task: # Set Windows encoding to UTF-8 - REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Command Processor" /v Autorun /t REG_SZ /d "@chcp 65001>nul" /f - python -m ensurepip - - python -m pip install --upgrade --user pip setuptools certifi tox + - python -m pip install --upgrade --user pip setuptools certifi tox pre-commit prepare_script: *prepare clean_workspace_script: # Avoid information carried from one run to the other diff --git a/CHANGELOG.rst b/CHANGELOG.rst index add703a..fce80fb 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -31,8 +31,8 @@ Version 0.4.1 Version 0.4 =========== -- Add a `.gitignore` also in the `data` folder -- Changed wording in `README.md` +- Add a ``.gitignore`` also in the ``data`` folder +- Changed wording in ``README.md`` Version 0.3.1 =============