Skip to content

Commit

Permalink
Remove deprecated packages from pre-commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
jadchaar committed Aug 27, 2020
1 parent 022c70e commit 0431060
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
19 changes: 7 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repos:
- id: bandit
args: [-lll, --quiet, --exclude=tests/**]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.0.0
rev: v3.2.0
hooks:
- id: check-case-conflict
- id: check-docstring-first
Expand All @@ -20,30 +20,25 @@ repos:
args: [--remove]
- id: trailing-whitespace
exclude: ^tests/sample_filings/
- repo: https://github.com/asottile/seed-isort-config
rev: v2.1.1
hooks:
- id: seed-isort-config
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.21
- repo: https://github.com/timothycrosley/isort
rev: 5.4.2
hooks:
- id: isort
args: [--quiet]
- repo: https://github.com/asottile/pyupgrade
rev: v2.4.1
rev: v2.7.2
hooks:
- id: pyupgrade
args: [--py36-plus]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.5.1
rev: v1.6.0
hooks:
- id: python-no-eval
- id: rst-backticks
- repo: https://github.com/psf/black
rev: 19.10b0
rev: 20.8b1
hooks:
- id: black
args: [--safe, --quiet, --target-version=py36]
args: [--safe, --quiet]
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.1
hooks:
Expand Down
6 changes: 2 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ python =
3.7: py37
3.8: py38

# Configure testing environments
[testenv]
description = run the tests with pytest using {basepython}
deps = -rrequirements.txt
whitelist_externals = pytest
allowlist_externals = pytest
commands = pytest {posargs}

[testenv:lint]
Expand All @@ -32,12 +31,11 @@ deps =
doc8
sphinx
lxml
whitelist_externals = make
allowlist_externals = make
commands =
doc8 index.rst ../README.rst --extension .rst --ignore D001
make html SPHINXOPTS="-W --keep-going"

# Configure settings for pytest, isort, and flake8
[pytest]
addopts = -v --cov-branch --cov=sec_edgar_downloader --cov-fail-under=100 --cov-report=term-missing --cov-report=xml

Expand Down

0 comments on commit 0431060

Please sign in to comment.