From 40db5293faacdf491325eedaee10f44055eaf3f6 Mon Sep 17 00:00:00 2001 From: Jad Chaar Date: Tue, 9 Jul 2024 22:23:39 -0700 Subject: [PATCH] Update test, runtime and lint dependencies (#143) * Update dependencies * update pre commit and requirements --- .github/workflows/continuous_integration.yml | 26 ++++++++++---------- .github/workflows/release.yml | 8 +++--- .pre-commit-config.yaml | 12 ++++----- pyproject.toml | 2 +- requirements/requirements.txt | 2 +- tests/conftest.py | 1 + tests/test_end_to_end_integration.py | 1 + 7 files changed, 27 insertions(+), 25 deletions(-) diff --git a/.github/workflows/continuous_integration.yml b/.github/workflows/continuous_integration.yml index 1ed9f20..5d6517b 100644 --- a/.github/workflows/continuous_integration.yml +++ b/.github/workflows/continuous_integration.yml @@ -25,14 +25,14 @@ jobs: - os: windows-latest path: ~\AppData\Local\pip\Cache steps: - - uses: actions/checkout@v3 - - uses: actions/cache@v3 + - uses: actions/checkout@v4 + - uses: actions/cache@v4 with: path: ${{ matrix.path }} key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }} restore-keys: ${{ runner.os }}-pip- - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -42,7 +42,7 @@ jobs: - name: Test with tox run: tox - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: file: coverage.xml @@ -54,7 +54,7 @@ jobs: max-parallel: 1 fail-fast: false matrix: - python-version: ["3.11"] + python-version: ["3.12"] os: [ ubuntu-latest, macos-latest, windows-latest ] include: - os: ubuntu-latest @@ -64,14 +64,14 @@ jobs: - os: windows-latest path: ~\AppData\Local\pip\Cache steps: - - uses: actions/checkout@v3 - - uses: actions/cache@v3 + - uses: actions/checkout@v4 + - uses: actions/cache@v4 with: path: ${{ matrix.path }} key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }} restore-keys: ${{ runner.os }}-pip- - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -85,21 +85,21 @@ jobs: name: Linting runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/cache@v3 + - uses: actions/checkout@v4 + - uses: actions/cache@v4 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }} restore-keys: ${{ runner.os }}-pip- - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.cache/pre-commit key: ${{ runner.os }}-pre-commit-${{ hashFiles('**/.pre-commit-config.yaml') }} restore-keys: ${{ runner.os }}-pre-commit- - name: Set up Python ${{ runner.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" - name: Install dependencies run: | pip install -U pip setuptools wheel diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 35e5fb7..1a4f3f5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,15 +10,15 @@ jobs: release-to-pypi: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/cache@v3 + - uses: actions/checkout@v4 + - uses: actions/cache@v4 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }} restore-keys: ${{ runner.os }}-pip- - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" - name: Install dependencies run: | pip install -U pip setuptools wheel diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 661f39a..8d816f5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,11 +1,11 @@ repos: - repo: https://github.com/PyCQA/bandit - rev: 1.7.5 + rev: 1.7.9 hooks: - id: bandit args: [-lll, --quiet, --exclude=tests/**] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.6.0 hooks: - id: check-case-conflict - id: check-docstring-first @@ -20,11 +20,11 @@ repos: - id: trailing-whitespace exclude: ^tests/test_data - repo: https://github.com/timothycrosley/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort - repo: https://github.com/asottile/pyupgrade - rev: v3.10.1 + rev: v3.16.0 hooks: - id: pyupgrade args: [--py36-plus] @@ -41,12 +41,12 @@ repos: - id: rst-inline-touching-normal - id: text-unicode-replacement-char - repo: https://github.com/psf/black - rev: 23.7.0 + rev: 24.4.2 hooks: - id: black args: [--quiet, --target-version=py36] - repo: https://github.com/pycqa/flake8 - rev: 6.1.0 + rev: 7.1.0 hooks: - id: flake8 additional_dependencies: [flake8-bugbear, flake8-comprehensions] diff --git a/pyproject.toml b/pyproject.toml index 89b5cce..c184cbb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,7 +28,7 @@ classifiers = [ ] dependencies = [ "requests", - "pyrate-limiter>=3.1.0" + "pyrate-limiter>=3.6.0" ] requires-python = ">=3.8" description = "Download SEC filings from the EDGAR database using Python" diff --git a/requirements/requirements.txt b/requirements/requirements.txt index d09f30d..17579ee 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -1,2 +1,2 @@ -pyrate-limiter>=3.1.0 +pyrate-limiter>=3.6.0 requests diff --git a/tests/conftest.py b/tests/conftest.py index d6e7751..75b8ff8 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,5 @@ """Pytest fixtures for testing suite.""" + import json import shutil from datetime import date, datetime diff --git a/tests/test_end_to_end_integration.py b/tests/test_end_to_end_integration.py index 9053283..a0248a0 100644 --- a/tests/test_end_to_end_integration.py +++ b/tests/test_end_to_end_integration.py @@ -1,4 +1,5 @@ """End-to-end integration tests.""" + from datetime import date from pathlib import Path