Skip to content

Commit

Permalink
add ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
whinee committed Mar 11, 2023
1 parent 81c71fc commit 7b7bdc6
Show file tree
Hide file tree
Showing 77 changed files with 439 additions and 274 deletions.
1 change: 1 addition & 0 deletions .shellcheckrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
disable="1087","1091","2016","2025","2045","2046","2059","2068","2086","2116","2119","2120","2148","2154","2155","2162","2164","2195","2238","3024","3043","3057","3059"
6 changes: 6 additions & 0 deletions bandit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
targets:
- "src"
skips:
- "B101"
- "B404"
- "B603"
13 changes: 10 additions & 3 deletions dev/raw_docs/TODO.ymd → dev/raw_docs/todo.ymd
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
# TODO

## Legend

### Tags

- **feat**: Feature

## Todo

- [ ] n-column support
- [ ] GUI
- [ ] Custom Help Function (to only compute help page's width when help is actually called; the CLI is actually already fast enough that this might not be necessary, but is just a mere novelty)
- [ ] [docs]
- [ ] [feat] n-column support
- [ ] [feat] GUI
- [ ] [feat] Custom Help Function (to only compute help page's width when help is actually called; the CLI is actually already fast enough that this might not be necessary, but is just a mere novelty)

## In Progress

Expand Down
5 changes: 4 additions & 1 deletion dev/scripts/py/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,9 @@ def yield_text(mod):
if sm:
header = []
idx_path = docs_dir(mod.name, api=True)

print(f"Generating {idx_path}")

m, *ls = mod.name.split(".")
for idx, i in enumerate(ls[::-1]):
header.append(f'[{i}]({"../" * idx}{i}.md)')
Expand Down Expand Up @@ -328,6 +331,7 @@ def main(rmv: Dict[Any, Any] = {}):

for module_name, yt in yield_text(PROJECT):
_dd = docs_dir(module_name, api=True)
print(f"Generating {_dd}")
with open(_dd, "w") as f:
f.write(yt)

Expand Down Expand Up @@ -363,7 +367,6 @@ def main(rmv: Dict[Any, Any] = {}):
ndd = {}
u_ls = sorted(listdir(base), reverse=True)
with open(os.path.join(docs_pdir, op_base, "README.md"), "w") as f:
print("here")
f.write(
H1.format("All Version")
+ "\n".join(f"- [Version {u}.x.x.x]({u}/README.md)" for u in u_ls)
Expand Down
2 changes: 1 addition & 1 deletion dev/site/404.html

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dev/site/TODO/index.html

This file was deleted.

Loading

0 comments on commit 7b7bdc6

Please sign in to comment.