Skip to content

Commit

Permalink
add black and mypy, also fix silly name in test
Browse files Browse the repository at this point in the history
  • Loading branch information
dhosterman committed Dec 8, 2023
1 parent 138d69f commit 0acfa07
Show file tree
Hide file tree
Showing 3 changed files with 131 additions and 3 deletions.
128 changes: 127 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jq = "^1.6.0"
[tool.poetry.group.dev.dependencies]
pytest-datafiles = "^3.0.0"
pytest = "^7.4.3"
mypy = "^1.7.1"
black = "^23.11.0"

[tool.pytest.ini_options]
addopts = [
Expand Down
4 changes: 2 additions & 2 deletions tests/test_static_site_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ def test_creates_files(benchmark, cwd_tmpdir):
def test_displays_correct_stars(benchmark, cwd_tmpdir, monkeypatch, score, expected):
monkeypatch.setattr(benchmark, "overall_score", lambda: score)
generator = StaticSiteGenerator()
foo = generator.calculate_stars(benchmark)
assert foo == expected
stars = generator.calculate_stars(benchmark)
assert stars == expected

0 comments on commit 0acfa07

Please sign in to comment.