Skip to content

Commit

Permalink
[src][tests] applied editorconfig's rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Godhart committed Apr 28, 2024
1 parent 44a7425 commit 0574513
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/vdf/cells.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self,
)
self.tag = tag
self.optional_tags = optional_tags

@property
def cell_kind(self):
return "Cell"
Expand Down Expand Up @@ -121,15 +121,15 @@ def __init__(
@property
def doc(self):
return self._doc

@property
def files(self):
return self._files

@property
def cells(self):
return self._cells

@property
def vars(self):
return self._vars
6 changes: 3 additions & 3 deletions src/vdf/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ def __init__(self, source:CellsStream, frontmatter:Cell|None):
self._source = source # Document's source cell's (cells that are not processed)
self._branches = {} # Registered cell's branches
self._flows = {} # Registered production flows

@property
def frontmatter(self):
return self._frontmatter

@property
def source(self):
return self._source

@property
def branches(self):
return self._branches

@property
def flows(self):
return self._flows
2 changes: 1 addition & 1 deletion src/vdf/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def lines_to_raw_cells_stream(self, source:SourceText) -> CellsStream:
while i < len(step2)-1:
i += 1

# Check if following sequence is cells split
# Check if following sequence is cells split
split_ahead, next_split_skip = source.split_ahead(raw_lines, i)
if split_ahead:
# Put accumulated into cells list, start new cell
Expand Down
2 changes: 1 addition & 1 deletion src/vdf/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class BuildOrder:
"""
Class for handling build order etc.
"""


class VdfOutput:
"""
Expand Down
4 changes: 2 additions & 2 deletions tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ def copy_tree(src, dst, dirs_exist_ok=False, hidden=True):
os.makedirs(dst / d, exist_ok=dirs_exist_ok)
copy_tree(root / d, dst / d, dirs_exist_ok, hidden)
break


def list_tests(test_file_location, folders):
tests = []
for f in folders:
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_01_selfcheck/test_selfcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def test_selfcheck(test_set):
Self-checking boilerplate for tests
When used for actual tests:
- populate test/gold folders with necessary data
- replace copy_tree call with function/sequence under test
- replace copy_tree call with function/sequence under test
"""
input_path, gold_path, output_path = init_test_paths(__file__, test_set)

Expand Down

0 comments on commit 0574513

Please sign in to comment.