Skip to content

Commit 7a5c7c7

Browse files
committed
init
0 parents  commit 7a5c7c7

File tree

256 files changed

+176362
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

256 files changed

+176362
-0
lines changed

.gitignore

+158
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
pip-wheel-metadata/
24+
share/python-wheels/
25+
*.egg-info/
26+
.installed.cfg
27+
*.egg
28+
MANIFEST
29+
30+
# PyInstaller
31+
# Usually these files are written by a python script from a template
32+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
33+
*.manifest
34+
*.spec
35+
36+
# Installer logs
37+
pip-log.txt
38+
pip-delete-this-directory.txt
39+
40+
# Unit test / coverage reports
41+
htmlcov/
42+
.tox/
43+
.nox/
44+
.coverage
45+
.coverage.*
46+
.cache
47+
nosetests.xml
48+
coverage.xml
49+
*.cover
50+
*.py,cover
51+
.hypothesis/
52+
.pytest_cache/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
target/
76+
77+
# Jupyter Notebook
78+
.ipynb_checkpoints
79+
80+
# IPython
81+
profile_default/
82+
ipython_config.py
83+
84+
# pyenv
85+
.python-version
86+
87+
# pipenv
88+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
89+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
90+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
91+
# install all needed dependencies.
92+
#Pipfile.lock
93+
94+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
95+
__pypackages__/
96+
97+
# Celery stuff
98+
celerybeat-schedule
99+
celerybeat.pid
100+
101+
# SageMath parsed files
102+
*.sage.py
103+
104+
# Environments
105+
.venv
106+
env/
107+
venv/
108+
ENV/
109+
env.bak/
110+
venv.bak/
111+
112+
# Spyder project settings
113+
.spyderproject
114+
.spyproject
115+
116+
# Rope project settings
117+
.ropeproject
118+
119+
# mkdocs documentation
120+
/site
121+
122+
# mypy
123+
.mypy_cache/
124+
.dmypy.json
125+
dmypy.json
126+
127+
# Pyre type checker
128+
.pyre/
129+
130+
### VisualStudioCode
131+
.vscode/*
132+
!.vscode/settings.json
133+
!.vscode/tasks.json
134+
!.vscode/launch.json
135+
!.vscode/extensions.json
136+
*.code-workspace
137+
**/.vscode
138+
139+
# JetBrains
140+
.idea/
141+
142+
# Lightning-Hydra-Template
143+
configs/local/default.yaml
144+
configs/local/*
145+
!*/data
146+
/data/
147+
logs/
148+
wandb/
149+
.env
150+
.autoenv
151+
workspace.ipynb
152+
run/logs
153+
154+
# model weight
155+
*.ckpt
156+
157+
# pdb
158+
*.pdb

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "vendor/esm"]
2+
path = vendor/esm
3+
url = https://github.com/facebookresearch/esm.git

.pre-commit-config.yaml

+129
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
default_language_version:
2+
python: python3.7
3+
4+
repos:
5+
- repo: https://github.com/pre-commit/pre-commit-hooks
6+
rev: v4.3.0
7+
hooks:
8+
# list of supported hooks: https://pre-commit.com/hooks.html
9+
- id: trailing-whitespace
10+
- id: end-of-file-fixer
11+
- id: check-docstring-first
12+
- id: check-yaml
13+
- id: debug-statements
14+
- id: detect-private-key
15+
- id: check-toml
16+
- id: check-case-conflict
17+
- id: check-added-large-files
18+
args: [--maxkb=1000]
19+
- id: check-json
20+
- id: check-merge-conflict
21+
- id: check-shebang-scripts-are-executable
22+
- id: fix-byte-order-marker
23+
- id: fix-encoding-pragma
24+
args: [--remove]
25+
- id: mixed-line-ending
26+
args: [--fix=lf]
27+
28+
# python code formatting
29+
- repo: https://github.com/psf/black
30+
rev: 22.6.0
31+
hooks:
32+
- id: black
33+
args: [--line-length, "79"]
34+
language_version: python3.7
35+
36+
# python import sorting
37+
# - repo: https://github.com/PyCQA/isort
38+
# rev: 5.12.0
39+
# hooks:
40+
# - id: isort
41+
# args:
42+
# [
43+
# "--line-length=79",
44+
# "--multi-line=3",
45+
# "--profile=black",
46+
# "--filter-files",
47+
# ]
48+
# language_version: python3.7
49+
50+
# python upgrading syntax to newer version
51+
# - repo: https://github.com/asottile/pyupgrade
52+
# rev: v2.32.1
53+
# hooks:
54+
# - id: pyupgrade
55+
# args: [--py38-plus]
56+
57+
# python docstring formatting
58+
- repo: https://github.com/myint/docformatter
59+
rev: v1.4
60+
hooks:
61+
- id: docformatter
62+
args: [--in-place, --wrap-summaries=79, --wrap-descriptions=79]
63+
64+
# python check (PEP8), programming errors and code complexity
65+
- repo: https://github.com/PyCQA/flake8
66+
rev: 4.0.1
67+
hooks:
68+
- id: flake8
69+
args:
70+
[
71+
"--extend-ignore",
72+
"E203,E402,E501,F401,F841",
73+
"--exclude",
74+
"logs/*,data/*",
75+
]
76+
77+
# python security linter
78+
- repo: https://github.com/PyCQA/bandit
79+
rev: "1.7.1"
80+
hooks:
81+
- id: bandit
82+
args: ["-s", "B101"]
83+
84+
# yaml formatting
85+
- repo: https://github.com/pre-commit/mirrors-prettier
86+
rev: v2.7.1
87+
hooks:
88+
- id: prettier
89+
types: [yaml]
90+
91+
# shell scripts linter
92+
- repo: https://github.com/shellcheck-py/shellcheck-py
93+
rev: v0.8.0.4
94+
hooks:
95+
- id: shellcheck
96+
97+
# md formatting
98+
- repo: https://github.com/executablebooks/mdformat
99+
rev: 0.7.14
100+
hooks:
101+
- id: mdformat
102+
args: ["--number"]
103+
additional_dependencies:
104+
- mdformat-gfm
105+
- mdformat-tables
106+
- mdformat_frontmatter
107+
# - mdformat-toc
108+
# - mdformat-black
109+
110+
# jupyter notebook cell output clearing
111+
# - repo: https://github.com/kynan/nbstripout
112+
# rev: 0.5.0
113+
# hooks:
114+
# - id: nbstripout
115+
116+
# jupyter notebook linting
117+
- repo: https://github.com/nbQA-dev/nbQA
118+
rev: 1.4.0
119+
hooks:
120+
- id: nbqa-black
121+
args: ["--line-length=79"]
122+
- id: nbqa-isort
123+
args: ["--profile=black"]
124+
- id: nbqa-flake8
125+
args:
126+
[
127+
"--extend-ignore=E203,E402,E501,F401,F841",
128+
"--exclude=logs/*,data/*",
129+
]

0 commit comments

Comments
 (0)