Skip to content

Commit 04cda10

Browse files
committed
[release] code
1 parent 6999234 commit 04cda10

File tree

313 files changed

+1486295
-32
lines changed

Some content is hidden

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

313 files changed

+1486295
-32
lines changed

.flake8

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[flake8]
2+
ignore =
3+
# Whitespace before ':'
4+
E203,
5+
# Module level import not at top of file
6+
E402,
7+
# Line break occurred before a binary operator
8+
W503,
9+
# Line break occurred after a binary operator
10+
W504
11+
# line break before binary operator
12+
E203
13+
# line too long
14+
E501
15+
# No lambdas — too strict
16+
E731
17+
# Local variable name is assigned to but never used
18+
F841
19+
max-line-length = 120

.gitignore

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,39 @@
1-
.DS_Store
1+
# python
2+
*.pyc
3+
**/__pycache__/
4+
.pytest_cache/*
5+
.pydevproject
6+
7+
.idea
8+
.idea/*
9+
10+
lightning_logs/
11+
12+
lightning_logs/*
13+
14+
debug/
15+
debug/*
16+
17+
# IDE
18+
# .vscode/*
19+
20+
# Pip
21+
*.egg-info
22+
23+
# files
24+
*.log
25+
*.pkl
26+
*.jpg
27+
*.pcd
28+
29+
# exp
30+
exp
31+
32+
# data
33+
dataset
34+
35+
# lsf
36+
*.bsub
37+
38+
# running scripts
39+
scripts_dev/*

.isort.cfg

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[tool.isort]
2+
include_trailing_comma = true
3+
known_first_party = []
4+
line_length = 120
5+
multi_line_output = 3
6+
profile = "black"
7+
use_parentheses = true

.pre-commit-config.yaml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.3.0
4+
hooks:
5+
- id: check-added-large-files # prevents giant files from being committed.
6+
- id: check-case-conflict # checks for files that would conflict in case-insensitive filesystems.
7+
- id: check-merge-conflict # checks for files that contain merge conflict strings.
8+
- id: check-yaml # checks yaml files for parseable syntax.
9+
- id: detect-private-key # detects the presence of private keys.
10+
- id: end-of-file-fixer # ensures that a file is either empty, or ends with one newline.
11+
- id: fix-byte-order-marker # removes utf-8 byte order marker.
12+
- id: mixed-line-ending # replaces or checks mixed line ending.
13+
- id: trailing-whitespace # trims trailing whitespace.
14+
- id: check-json
15+
- id: pretty-format-json
16+
# exclude autogenerated files
17+
exclude: /README\.rst$|\.pot?$
18+
args: ['--no-sort-keys', "--autofix"]
19+
- repo: https://github.com/pre-commit/mirrors-isort
20+
rev: v5.10.1
21+
hooks:
22+
- id: isort
23+
language_version: python3.10
24+
args: ['--line-length=120', '--profile=black']
25+
files: "\\.py$"
26+
- repo: https://github.com/ambv/black
27+
rev: 22.3.0
28+
hooks:
29+
- id: black
30+
language_version: python3.10
31+
args: ['--line-length=120']
32+
files: "\\.py$"
33+
34+
35+
- repo: https://github.com/myint/autoflake
36+
rev: v1.4
37+
hooks:
38+
- id: autoflake
39+
args: ['--in-place', '--remove-all-unused-imports', '--remove-unused-variable']
40+
language_version: python3.10
41+
42+
- repo: https://github.com/pre-commit/pre-commit-hooks
43+
rev: v1.3.0
44+
hooks:
45+
- id: flake8
46+
language_version: python3.10
47+
48+
- repo: https://github.com/kynan/nbstripout
49+
rev: 0.6.1
50+
hooks:
51+
- id: nbstripout

0 commit comments

Comments
 (0)