Skip to content

Commit 56e04a5

Browse files
committed
Add evotraders from open reset
2 parents 205e095 + 6282ec5 commit 56e04a5

File tree

121 files changed

+22832
-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.

121 files changed

+22832
-0
lines changed

evotraders/.eslintrc

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"parserOptions": {
7+
"ecmaVersion": 2021,
8+
"sourceType": "module",
9+
"ecmaFeatures": {
10+
"jsx": true
11+
}
12+
},
13+
"rules": {
14+
"semi": ["error", "always"],
15+
"quotes": ["error", "double"],
16+
"indent": ["error", 2],
17+
"linebreak-style": ["error", "unix"],
18+
"brace-style": ["error", "1tbs"],
19+
"curly": ["error", "all"],
20+
"no-eval": ["error"],
21+
"prefer-const": ["error"],
22+
"arrow-spacing": ["error", { "before": true, "after": true }]
23+
}
24+
}

evotraders/.gitignore

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Python
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
*.so
6+
.Python
7+
build/
8+
develop-eggs/
9+
dist/
10+
eggs/
11+
.eggs/
12+
lib64/
13+
parts/
14+
sdist/
15+
var/
16+
wheels/
17+
*.egg-info/
18+
.installed.cfg
19+
*.egg
20+
21+
# Virtual Environment
22+
/.venv/
23+
ENV/
24+
25+
# Environment Variables
26+
.env
27+
28+
# IDE
29+
.idea/
30+
.vscode/
31+
*.swp
32+
*.swo
33+
.cursorrules
34+
.cursorignore
35+
36+
# OS
37+
.DS_Store
38+
39+
# Txt files
40+
*.txt
41+
42+
# PDF files
43+
*.pdf
44+
45+
# Frontend
46+
node_modules
47+
48+
# Outputs
49+
outputs/
50+
51+
# Data files
52+
backend/data/ret_data/
53+
54+
# Database files (users will have their own local databases)
55+
*.db
56+
*.db-journal
57+
*.db-wal
58+
*.db-shm
59+
*.sqlite
60+
*.sqlite3
61+
62+
*.ipynb
63+
*.log

evotraders/.pre-commit-config.yaml

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.3.0
4+
hooks:
5+
- id: check-ast
6+
- id: sort-simple-yaml
7+
- id: check-yaml
8+
exclude: |
9+
(?x)^(
10+
meta.yaml
11+
)$
12+
- id: check-xml
13+
- id: check-toml
14+
- id: check-docstring-first
15+
- id: check-json
16+
- id: fix-encoding-pragma
17+
- id: detect-private-key
18+
- id: trailing-whitespace
19+
- repo: https://github.com/asottile/add-trailing-comma
20+
rev: v3.1.0
21+
hooks:
22+
- id: add-trailing-comma
23+
- repo: https://github.com/pre-commit/mirrors-mypy
24+
rev: v1.7.0
25+
hooks:
26+
- id: mypy
27+
exclude:
28+
(?x)(
29+
pb2\.py$
30+
| grpc\.py$
31+
| ^docs
32+
| \.html$
33+
)
34+
args: [
35+
--ignore-missing-imports,
36+
--disable-error-code=var-annotated,
37+
--disable-error-code=union-attr,
38+
--disable-error-code=assignment,
39+
--disable-error-code=attr-defined,
40+
--disable-error-code=import-untyped,
41+
--disable-error-code=truthy-function,
42+
--follow-imports=skip,
43+
--explicit-package-bases,
44+
]
45+
- repo: https://github.com/psf/black
46+
rev: 23.3.0
47+
hooks:
48+
- id: black
49+
args: [ --line-length=79 ]
50+
- repo: https://github.com/PyCQA/flake8
51+
rev: 6.1.0
52+
hooks:
53+
- id: flake8
54+
args: [ "--extend-ignore=E203"]
55+
- repo: https://github.com/pylint-dev/pylint
56+
rev: v3.0.2
57+
hooks:
58+
- id: pylint
59+
exclude:
60+
(?x)(
61+
^docs
62+
| pb2\.py$
63+
| grpc\.py$
64+
| \.demo$
65+
| \.md$
66+
| \.html$
67+
)
68+
args: [
69+
"--init-hook=import sys; sys.path.insert(0, 'alias/src')",
70+
--disable=W0511,
71+
--disable=W0718,
72+
--disable=W0122,
73+
--disable=C0103,
74+
--disable=R0913,
75+
--disable=E0401,
76+
--disable=E1101,
77+
--disable=C0415,
78+
--disable=W0603,
79+
--disable=R1705,
80+
--disable=R0914,
81+
--disable=E0601,
82+
--disable=W0602,
83+
--disable=W0604,
84+
--disable=R0801,
85+
--disable=R0902,
86+
--disable=R0903,
87+
--disable=C0123,
88+
--disable=W0231,
89+
--disable=W1113,
90+
--disable=W0221,
91+
--disable=R0401,
92+
--disable=W0632,
93+
--disable=W0123,
94+
--disable=C3001,
95+
--disable=W0201,
96+
--disable=C0302,
97+
--disable=W1203,
98+
--disable=C2801,
99+
--disable=C0114, # Disable missing module docstring for quick dev
100+
--disable=C0115, # Disable missing class docstring for quick dev
101+
--disable=C0116, # Disable missing function or method docstring for quick dev
102+
]
103+
- repo: https://github.com/pre-commit/mirrors-eslint
104+
rev: v7.32.0
105+
hooks:
106+
- id: eslint
107+
files: \.(js|jsx)$
108+
exclude: '.*js_third_party.*'
109+
args: [ '--fix' ]
110+
- repo: https://github.com/thibaudcolas/pre-commit-stylelint
111+
rev: v14.4.0
112+
hooks:
113+
- id: stylelint
114+
files: \.(css)$
115+
exclude: '.*css_third_party.*'
116+
args: [ '--fix' ]
117+
- repo: https://github.com/pre-commit/mirrors-prettier
118+
rev: 'v3.0.0'
119+
hooks:
120+
- id: prettier
121+
additional_dependencies: [ 'prettier@3.0.0' ]
122+
files: \.(tsx?)$

evotraders/.stylelintrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"rules": {
3+
"indentation": 2,
4+
"string-quotes": "double"
5+
}
6+
}

0 commit comments

Comments
 (0)