Skip to content

Commit b61f734

Browse files
authored
Merge branch 'main' into lukeruud-patch-1
2 parents 7b7ada2 + e7d59ff commit b61f734

File tree

4 files changed

+3
-10
lines changed

4 files changed

+3
-10
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ You should also add project tags for each release in Github, see [Managing relea
99
## [Unreleased]
1010
### Added
1111
- Added example auto-built Sphinx documentation in the `docs` folder
12+
- Github workflow for running ruff linter
1213
### Changed
1314
- All build and packaging switched to use only pyproject.toml
1415
- Minimum python version changed to 3.10

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)