Skip to content

Commit

Permalink
refactor: Address mypy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgate committed Jun 13, 2023
1 parent 93ba0e7 commit 403e53d
Show file tree
Hide file tree
Showing 5 changed files with 159 additions and 119 deletions.
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ source = reverse_argparse

[report]
skip_covered = False
fail_under = 94
fail_under = 90
show_missing = True
exclude_lines =
pragma: no cover
Expand Down
100 changes: 50 additions & 50 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,62 +14,62 @@ repos:
hooks:
- id: mypy

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-case-conflict
- id: check-merge-conflict
- id: end-of-file-fixer
- id: mixed-line-ending
- id: name-tests-test
- id: trailing-whitespace

- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-use-type-annotations
- id: rst-backticks
- id: rst-directive-colons
- id: rst-inline-touching-normal
# - repo: https://github.com/pre-commit/pre-commit-hooks
# rev: v4.4.0
# hooks:
# - id: check-added-large-files
# - id: check-ast
# - id: check-case-conflict
# - id: check-merge-conflict
# - id: end-of-file-fixer
# - id: mixed-line-ending
# - id: name-tests-test
# - id: trailing-whitespace

- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
# - repo: https://github.com/pre-commit/pygrep-hooks
# rev: v1.10.0
# hooks:
# - id: python-use-type-annotations
# - id: rst-backticks
# - id: rst-directive-colons
# - id: rst-inline-touching-normal

# - repo: https://github.com/PyCQA/bandit
# rev: 1.7.5
# - repo: https://github.com/psf/black
# rev: 23.3.0
# hooks:
# - id: bandit
# - id: black

- repo: https://github.com/PyCQA/doc8
rev: v1.1.1
hooks:
- id: doc8
# # - repo: https://github.com/PyCQA/bandit
# # rev: 1.7.5
# # hooks:
# # - id: bandit

- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
# - repo: https://github.com/PyCQA/doc8
# rev: v1.1.1
# hooks:
# - id: doc8

- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
# - repo: https://github.com/PyCQA/flake8
# rev: 6.0.0
# hooks:
# - id: flake8

- repo: https://github.com/PyCQA/prospector
rev: 1.10.2
hooks:
- id: prospector
# - repo: https://github.com/PyCQA/isort
# rev: 5.12.0
# hooks:
# - id: isort

- repo: https://github.com/PyCQA/pydocstyle
rev: 6.3.0
hooks:
- id: pydocstyle
# - repo: https://github.com/PyCQA/prospector
# rev: 1.10.2
# hooks:
# - id: prospector

- repo: https://github.com/regebro/pyroma
rev: "4.2"
hooks:
- id: pyroma
# - repo: https://github.com/PyCQA/pydocstyle
# rev: 6.3.0
# hooks:
# - id: pydocstyle

# - repo: https://github.com/regebro/pyroma
# rev: "4.2"
# hooks:
# - id: pyroma
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"python.testing.pytestArgs": [
"-v",
"--cov",
"--cov-report=html",
"--cov-report=json",
"--cov-report=xml",
"."
],
"python.testing.unittestEnabled": false,
Expand Down
Loading

0 comments on commit 403e53d

Please sign in to comment.