diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 1f7ce5c..e3eafb0 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -36,7 +36,7 @@ jobs: uses: actions/cache@v2 with: path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements/*.txt') }} + key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/requirements/*.txt') }} - name: Pre-commit cache uses: actions/cache@v2 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ed14308..ca19000 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,18 +1,18 @@ repos: - repo: https://github.com/Yelp/detect-secrets - rev: v0.14.3 + rev: v1.4.0 hooks: - id: detect-secrets args: ['--baseline', '.secrets.baseline'] exclude: .*/tests/.* - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 22.8.0 # last version to support py3.6 ref https://github.com/psf/black/issues/3169#issuecomment-1303315799 hooks: - id: black - repo: https://github.com/timothycrosley/isort - rev: 5.5.4 + rev: 5.10.1 hooks: - id: isort @@ -26,29 +26,29 @@ repos: pass_filenames: false - repo: https://github.com/PyCQA/flake8 - rev: 3.8.3 + rev: 4.0.1 # flake8-comprehensions 3.7.0 depends on flake8!=3.2.0, <5 and >=3.0 hooks: - id: flake8 additional_dependencies: [ - 'darglint~=1.5.4', + 'darglint~=1.8.1', 'flake8-absolute-import~=1.0', - 'flake8-blind-except~=0.1.1', - 'flake8-builtins~=1.5.3', + 'flake8-blind-except~=0.2.1', + 'flake8-builtins~=2.0', # last version to support py3.6 'flake8-cognitive-complexity==0.1.0', - 'flake8-comprehensions~=3.2.3', - 'flake8-docstrings~=1.5.0', - 'flake8-logging-format~=0.6.0', + 'flake8-comprehensions~=3.7', # last version to support py3.6 + 'flake8-docstrings~=1.6.0', + 'flake8-logging-format~=0.8.1', 'flake8-mutable~=1.2.0', - 'flake8-print~=3.1.4', + 'flake8-print~=4.0', # last version to support py3.6 'flake8-printf-formatting~=1.1.0', - 'flake8-pytest-style~=1.2.3', - 'flake8-quotes~=3.2.0', + 'flake8-pytest-style~=1.6.0', + 'flake8-quotes~=3.3.1', 'flake8-tuple~=0.4.1', - 'pep8-naming~=0.11.1' + 'pep8-naming~=0.13.1' # last version to support py3.6 ] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.2.0 + rev: v4.1.0 # last version to support py3.6 hooks: - id: mixed-line-ending args: ['--fix=lf'] @@ -62,7 +62,7 @@ repos: - id: debug-statements - repo: https://github.com/econchick/interrogate - rev: 1.3.1 + rev: 1.5.0 hooks: - id: interrogate pass_filenames: false diff --git a/setup.cfg b/setup.cfg index 6d6e5fb..ea7e238 100644 --- a/setup.cfg +++ b/setup.cfg @@ -7,7 +7,7 @@ default_section = THIRDPARTY known_first_party = tests [flake8] -ignore = D10,E203,E501,W503 +ignore = B902,D10,E203,E501,W503 max-line-length = 88 inline-quotes = double docstring-convention = google diff --git a/src/mapply/parallel.py b/src/mapply/parallel.py index 45e55f1..4a99da5 100644 --- a/src/mapply/parallel.py +++ b/src/mapply/parallel.py @@ -29,7 +29,7 @@ def some_heavy_computation(x, power): logger = logging.getLogger(__name__) -tqdm = partial(_tqdm, dynamic_ncols=True) +tqdm = partial(_tqdm, dynamic_ncols=True, smoothing=0.042, mininterval=0.42) def sensible_cpu_count() -> int: