Skip to content
This repository was archived by the owner on Jun 17, 2024. It is now read-only.

Commit 3dfe645

Browse files
committed
modify directory structure
1 parent 8a2c551 commit 3dfe645

File tree

10 files changed

+28
-2
lines changed

10 files changed

+28
-2
lines changed

.pysen/pyproject.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[tool]
2+
[tool.black] # automatically generated by pysen
3+
# pysen ignores and overwrites any modifications
4+
line-length = 120
5+
target-version = ["py310"]
6+
7+
[tool.isort] # automatically generated by pysen
8+
# pysen ignores and overwrites any modifications
9+
default_section = "THIRDPARTY"
10+
ensure_newline_before_comments = true
11+
force_grid_wrap = 0
12+
force_single_line = false
13+
include_trailing_comma = true
14+
line_length = 120
15+
multi_line_output = 3
16+
use_parentheses = true

.pysen/setup.cfg

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[flake8]
2+
# automatically generated by pysen
3+
# pysen ignores and overwrites any modifications
4+
# e203: black treats : as a binary operator
5+
# e231: black doesn't put a space after ,
6+
# e501: black may exceed the line-length to follow other style rules
7+
# w503 or w504: either one needs to be disabled to select w error codes
8+
ignore = E203,E231,E501,W503
9+
max-line-length = 120
10+
select = B,B950,C,E,F,W
11+

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ version = "0"
44
description = "A SapientML plugin of CodeBlockGenerator for loading dataset"
55
authors = ["Kosaku Kimura <[email protected]>"]
66
license = "Apache-2.0"
7-
include = ["loaddata/*.py", "templates/*.py.jinja"]
87

98
[tool.poetry.dependencies]
109
python = ">=3.9,<3.13"
File renamed without changes.

loaddata/generator.py renamed to sapientml_loaddata/generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from sapientml.generator import CodeBlockGenerator
2121

2222
template_env = Environment(
23-
loader=FileSystemLoader(f"{os.path.dirname(__file__)}/../templates"), trim_blocks=True
23+
loader=FileSystemLoader(f"{os.path.dirname(__file__)}/templates"), trim_blocks=True
2424
)
2525
ROW_THRESHOLD_FOR_SAMPLING = 100000
2626

0 commit comments

Comments
 (0)