Skip to content

Commit

Permalink
Update linting
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Apr 10, 2024
1 parent 9d628c5 commit 7c8089d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
15 changes: 13 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,24 @@ repos:
- id: black

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.4
rev: v0.3.5
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]

- repo: https://github.com/econchick/interrogate
rev: 1.7.0
hooks:
- id: interrogate
args: [tests]

- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@ exclude_also = [
line-length = 79


[tool.interrogate]
omit-covered-files = true
verbose = 2
fail-under = 100
whitelist-regex = ["test_.*"]


[tool.mypy]
strict = true

Expand Down
2 changes: 1 addition & 1 deletion tests/test_secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class Cfg:

def test_name_overwrite(self, ini):
"""
Passsing a specific key name is respected.
Passing a specific key name is respected.
"""

@environ.config
Expand Down
2 changes: 1 addition & 1 deletion tests/test_secrets_awssm.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class Cfg:

def test_name_overwrite(self, sm, secret):
"""
Passsing a specific key name is respected.
Passing a specific key name is respected.
"""
sm.client.put_secret_value(SecretId=secret, SecretString="foobar")

Expand Down

0 comments on commit 7c8089d

Please sign in to comment.