Skip to content

Commit 7782fe1

Browse files
committed
Update diagram
1 parent e0f4f5e commit 7782fe1

7 files changed

Lines changed: 10 additions & 21 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Changelog
2+
## 1.3.6
3+
- Add option to incorporate NeetCode shorts
4+
- Simplify codebase and expand testing
5+
26
## 1.3.5
37
- Add Jinja templates in favor over standard library for string formatting
48
- Add problems pulled from Neetcode solutions GitHub

leetcode_study_tool/formatters.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def render_template(
8181
)
8282
template = custom_env.get_template(custom_file)
8383
else:
84+
assert template_name is not None
8485
template = env.get_template(template_name)
8586

8687
kwargs["solution_url"] = format_solution_link

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "leetcode-study-tool"
7-
version = "1.3.5"
7+
version = "1.3.6"
88
description = "A tool for studying Leetcode with Python"
99
requires-python = ">=3.8"
1010
authors = [{name="John Sutor", email="johnsutor3@gmail.com" }]
1.9 MB
Loading

static/leetcode_study_tool_diagram.svg

Lines changed: 0 additions & 17 deletions
This file was deleted.

tests/test_outputs.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
import tempfile
23
import unittest
34
from datetime import date
45
from unittest.mock import patch
@@ -34,7 +35,7 @@ def test_save_excel(self, mock_workbook):
3435
mock_workbook.assert_called_once_with("fake-file.xlsx")
3536

3637
def test_save_excel_creates_file(self):
37-
test_file = "/tmp/test_leetcode_output"
38+
test_file = os.path.join(tempfile.gettempdir(), "test_leetcode_output")
3839
try:
3940
outputs.save_excel([self.fake_excel_row], test_file)
4041
self.assertTrue(os.path.exists(test_file + ".xlsx"))
@@ -50,7 +51,7 @@ def test_save_excel_column_count_matches(self):
5051
)
5152

5253
def test_save_excel_skips_none_problems(self):
53-
test_file = "/tmp/test_leetcode_none"
54+
test_file = os.path.join(tempfile.gettempdir(), "test_leetcode_none")
5455
try:
5556
outputs.save_excel([None, self.fake_excel_row, None], test_file)
5657
self.assertTrue(os.path.exists(test_file + ".xlsx"))

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)