Skip to content

Commit ca674d6

Browse files
committed
Fix ruff warnings
1 parent 7f1c790 commit ca674d6

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ test = ["pytest"]
3434

3535
# Dependencies that are useful only to developers, like an autoformatter and support for visualizations in jupyter notebooks go here
3636
dev = [
37-
"black",
37+
"ruff",
3838
"jupyter",
3939
"matplotlib",
4040
"seaborn",

src/cdstemplate/__init__.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +0,0 @@
1-
# Avoid RuntimeWarnings about double imports when executing scripts, see https://stackoverflow.com/questions/43393764/python-3-6-project-structure-leads-to-runtimewarning
2-
import sys
3-
4-
if not "-m" in sys.argv:
5-
from . import corpus_counter_script
6-
from . import word_count
7-
from . import utils
8-

tests/test_word_count.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def test_corpus_counter_init():
4848
cc = word_count.CorpusCounter()
4949
assert cc.doc_counter == 0
5050
assert cc.get_token_count("word") == 0
51-
assert cc.case_insensitive == False
51+
assert not cc.case_insensitive
5252
assert cc.tokenization_pattern == r"\s"
5353

5454

0 commit comments

Comments
 (0)