From e42fd674fc2f1e408cb1d40985ce71f2c4335467 2021-12-09 00:31:54 From: Matthias Bussonnier Date: 2021-12-09 00:31:54 Subject: [PATCH] setup pip cache --- diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b24c6ff..e53fb5c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -50,6 +50,7 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} + cache: pip - name: Install latex if: runner.os == 'Linux' && matrix.deps == 'test_extra' run: sudo apt-get -yq -o Acquire::Retries=3 --no-install-suggests --no-install-recommends install texlive dvipng diff --git a/IPython/utils/timing.py b/IPython/utils/timing.py index 32741ac..92f6883 100644 --- a/IPython/utils/timing.py +++ b/IPython/utils/timing.py @@ -62,7 +62,6 @@ if resource is not None and hasattr(resource, "getrusage"): Similar to clock(), but return a tuple of user/system times.""" return resource.getrusage(resource.RUSAGE_SELF)[:2] - else: # There is no distinction of user/system time under windows, so we just use # time.perff_counter() for everything... diff --git a/setup.cfg b/setup.cfg index f277862..837dca3 100644 --- a/setup.cfg +++ b/setup.cfg @@ -103,3 +103,6 @@ pygments.lexers = ignore_patterns = IPython/core/tests, IPython/testing + +[tool.black] +exclude = 'timing\.py'