Skip to content

Commit

Permalink
chore: rebase commits
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin-eecs committed Mar 12, 2024
0 parents commit 8d4d9a6
Show file tree
Hide file tree
Showing 33 changed files with 4,782 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# https://editorconfig.org/

root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true

[*.py]
indent_size = 4
src_paths=evaluation

[*.{yaml,yml,json}]
indent_size = 2

[*.md]
indent_size = 2
x-soft-wrap-text = true

[*.rst]
indent_size = 4
x-soft-wrap-text = true

[*.{bib,tex}]
indent_size = 2

[Makefile]
indent_style = tab

[*.sh]
indent_style = tab

[*.bat]
end_of_line = crlf
indent_style = tab

[*.{cpp,h,cu,cuh}]
indent_size = 2
40 changes: 40 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[flake8]
max-line-length = 120
max-doc-length = 100
select = B,C,E,F,W,Y,SIM
ignore =
# E203: whitespace before ':'
# W503: line break before binary operator
# W504: line break after binary operator
# format by black
E203,W503,W504,
# E501: line too long
# W505: doc line too long
# too long docstring due to long example blocks
E501,W505,
per-file-ignores =
# F401: module imported but unused
# intentionally unused imports
__init__.py: F401
# F401: module imported but unused
# F403: unable to detect undefined names
# F405: member mey be undefined, or defined from star imports
# members populated from optree
# E301: expected 1 blank line
# E302: expected 2 blank lines
# E305: expected 2 blank lines after class or function definition
# E701: multiple statements on one line (colon)
# E704: multiple statements on one line (def)
# format by black
*.pyi: E301,E302,E305,E701,E704
exclude =
.git,
.vscode,
venv,
third-party,
__pycache__,
docs/source/conf.py,
build,
dist,
examples,
tests
8 changes: 8 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
* text eol=lf
*.ipynb linguist-detectable=false

*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.pdf binary
Loading

0 comments on commit 8d4d9a6

Please sign in to comment.