Skip to content

Commit 93ce505

Browse files
committed
First commit
0 parents  commit 93ce505

43 files changed

Lines changed: 2605 additions & 0 deletions

Some content is hidden

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

.coveragerc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[run]
2+
3+
#--- Ignore this warning because the process isolation feature of DataLab
4+
#--- causes coverage to report 0% coverage when no computation is performed
5+
#--- in the isolated process during the session.
6+
disable_warnings = no-data-collected
7+
8+
parallel = True
9+
concurrency = multiprocessing,thread
10+
11+
omit =
12+
*/cdl_client/utils/tests.py
13+
*/cdl_client/tests/*
14+
*/guidata/*
15+
*/plotpy/*
16+
17+
#--- Workaround for certain builds of python-opencv package:
18+
./config-3.py
19+
./config.py
20+
#---

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PYTHONPATH=.

.gitignore

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
winpython.env
2+
.spyderproject
3+
doc.zip
4+
Thumbs.db
5+
doctmp/
6+
.vs/
7+
*.pyproj
8+
*.sln
9+
releases/
10+
*.chm
11+
.doctrees/
12+
doc/install_requires.txt
13+
doc/extras_require-dev.txt
14+
doc/extras_require-doc.txt
15+
*.bak
16+
17+
# Created by https://www.gitignore.io/api/python
18+
19+
### Python ###
20+
# Byte-compiled / optimized / DLL files
21+
__pycache__/
22+
*.py[cod]
23+
*$py.class
24+
25+
# C extensions
26+
*.so
27+
28+
# Distribution / packaging
29+
.Python
30+
env/
31+
build/
32+
_build/
33+
develop-eggs/
34+
dist/
35+
downloads/
36+
eggs/
37+
.eggs/
38+
lib/
39+
lib64/
40+
parts/
41+
sdist/
42+
var/
43+
*.egg-info/
44+
.installed.cfg
45+
*.egg
46+
47+
# PyInstaller
48+
# Usually these files are written by a python script from a template
49+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
50+
*.manifest
51+
# *.spec
52+
53+
# Installer logs
54+
pip-log.txt
55+
pip-delete-this-directory.txt
56+
57+
# Unit test / coverage reports
58+
htmlcov/
59+
.tox/
60+
.coverage
61+
.coverage.*
62+
.cache
63+
nosetests.xml
64+
coverage.xml
65+
*,cover
66+
67+
# Translations
68+
*.mo
69+
*.pot
70+
71+
# Django stuff:
72+
*.log
73+
74+
# Sphinx documentation
75+
docs/_build/
76+
cdl_client/data/doc/
77+
78+
# PyBuilder
79+
target/
80+
81+
/.spyproject

.isort.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[settings]
2+
known_first_party=cdl_client

.pylintrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[FORMAT]
2+
# Essential to be able to compare code side-by-side (`black` default setting)
3+
# and best compromise to minimize file size
4+
max-line-length=88
5+
6+
[TYPECHECK]
7+
ignored-modules=qtpy.QtWidgets,qtpy.QtCore,qtpy.QtGui
8+
9+
[MESSAGES CONTROL]
10+
disable=wrong-import-order
11+
12+
[DESIGN]
13+
max-args=8 # default: 5
14+
max-attributes=12 # default: 7
15+
max-branches=17 # default: 12
16+
max-locals=20 # default: 15
17+
min-public-methods=0 # default: 2
18+
max-public-methods=25 # default: 20

.vscode/launch.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Run Test Launcher",
9+
"type": "python",
10+
"request": "launch",
11+
"program": "${workspaceFolder}/cdl_client/tests/__init__.py",
12+
"console": "integratedTerminal",
13+
"envFile": "${workspaceFolder}/.env",
14+
"python": "${config:python.defaultInterpreterPath}",
15+
"justMyCode": true,
16+
"env": {
17+
// "DEBUG": "1",
18+
"QT_COLOR_MODE": "light",
19+
}
20+
},
21+
{
22+
"name": "Run current file",
23+
"type": "python",
24+
"request": "launch",
25+
"program": "${file}",
26+
"console": "integratedTerminal",
27+
"envFile": "${workspaceFolder}/.env",
28+
"python": "${config:python.defaultInterpreterPath}",
29+
"justMyCode": false,
30+
"args": [
31+
"--unattended",
32+
],
33+
"env": {
34+
// "DEBUG": "1",
35+
// "LANG": "fr",
36+
"QT_COLOR_MODE": "light",
37+
}
38+
},
39+
]
40+
}

.vscode/settings.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"[bat]": {
3+
"files.encoding": "cp850",
4+
},
5+
"editor.rulers": [
6+
88
7+
],
8+
"files.exclude": {
9+
"**/__pycache__": true,
10+
"**/*.pyc": true,
11+
"**/*.pyo": true
12+
},
13+
"files.trimFinalNewlines": true,
14+
"files.trimTrailingWhitespace": true,
15+
"python.defaultInterpreterPath": "${env:CDL_PYTHONEXE}",
16+
"editor.formatOnSave": true,
17+
"isort.args": [
18+
"--profile",
19+
"black"
20+
],
21+
"[python]": {
22+
"editor.codeActionsOnSave": {
23+
"source.organizeImports": true
24+
},
25+
"editor.defaultFormatter": "ms-python.black-formatter"
26+
},
27+
"python.linting.pycodestyleArgs": [
28+
"--max-line-length=88",
29+
"--ignore=E203,W503"
30+
],
31+
"python.linting.pycodestyleEnabled": true,
32+
"python.formatting.provider": "none",
33+
"esbonio.server.enabled": true,
34+
"restructuredtext.linter.doc8.extraArgs": [
35+
"--ignore=D004"
36+
],
37+
"esbonio.sphinx.confDir": "${workspaceFolder}\\doc",
38+
"python.analysis.autoFormatStrings": true,
39+
}

0 commit comments

Comments
 (0)