Skip to content

Commit

Permalink
added cov to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Pickering committed Oct 27, 2021
1 parent 7deb30c commit 069eb6a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Pre-commit hooks

[![codecov](https://codecov.io/gh/atlas-bi/pre-commit-hooks/branch/master/graph/badge.svg?token=ZPTK2KIAfN)](https://codecov.io/gh/atlas-bi/pre-commit-hooks)

## Clean Model Context

This pre-commit hook is used to remove connection strings from a dotnet model context from the auto generated (scaffold) model context. Dotnet inserts the connection string that was used to generate the model, and adds a note that it should be removed :) Thank Dotnet for adding an extra step for developers to loose sleep over 😢
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import subprocess
from typing import Any, List, Optional, Set
from typing import Any, Optional

import pytest

Expand Down
4 changes: 2 additions & 2 deletions tests/test_clean_model_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from testing.util import get_resource_path


def test_failing_file(tmpdir):
def test_failing_file(tmpdir) -> None:
f = tmpdir.join("Atlas_WebContext.cs")
f.write_text(
Path(get_resource_path("Atlas_WebContext.cs")).read_text("utf8"),
Expand All @@ -20,7 +20,7 @@ def test_no_file():
assert main([]) == 0


def test_other_file(tmpdir):
def test_other_file(tmpdir) -> None:
f = tmpdir.join("other.cs")
f.write_text(
Path(get_resource_path("Atlas_WebContext.cs")).read_text("utf8"),
Expand Down

0 comments on commit 069eb6a

Please sign in to comment.