Skip to content

Commit

Permalink
chore: minor style check additions
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii authored and layday committed May 13, 2022
1 parent 0c191b4 commit cb3eaa0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .pre-commit-config.yaml
Expand Up @@ -26,6 +26,11 @@ repos:
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.1
hooks:
- id: blacken-docs
additional_dependencies: [black==22.3.0]
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
Expand All @@ -45,3 +50,14 @@ repos:
hooks:
- id: codespell
args: ["-L", "sur"]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: "v1.9.0"
hooks:
- id: python-check-blanket-noqa
- id: python-check-blanket-type-ignore
- id: python-no-log-warn
- id: python-no-eval
- id: python-use-type-annotations
- id: rst-backticks
- id: rst-directive-colons
- id: rst-inline-touching-normal
4 changes: 2 additions & 2 deletions tests/test_env.py
Expand Up @@ -82,7 +82,7 @@ def test_isolated_env_abstract():


def test_isolated_env_has_executable_still_abstract():
class Env(build.env.IsolatedEnv): # noqa
class Env(build.env.IsolatedEnv):
@property
def executable(self):
raise NotImplementedError
Expand All @@ -92,7 +92,7 @@ def executable(self):


def test_isolated_env_has_install_still_abstract():
class Env(build.env.IsolatedEnv): # noqa
class Env(build.env.IsolatedEnv):
def install(self, requirements):
raise NotImplementedError

Expand Down
1 change: 1 addition & 0 deletions tox.ini
Expand Up @@ -107,3 +107,4 @@ depends = {py311, py310, py39, py38, py37, py36, pypy37, pypy38, pypy39}
max-line-length = 127
max-complexity = 10
extend-ignore = E203
extend-select = B9

0 comments on commit cb3eaa0

Please sign in to comment.