style: autoformatting

This commit is contained in:
Laurent Fainsin 2023-04-01 19:31:04 +02:00
parent ac26b2a62a
commit 85e446c934
2 changed files with 61 additions and 61 deletions

68
.vscode/launch.json vendored
View file

@ -1,36 +1,36 @@
{ {
// Use IntelliSense to learn about possible attributes. // Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes. // Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{ {
"name": "Python: Current File", "name": "Python: Current File",
"type": "python", "type": "python",
"request": "launch", "request": "launch",
"program": "${workspaceFolder}/src/main.py", "program": "${workspaceFolder}/src/main.py",
// "program": "${workspaceFolder}/src/spheres.py", // "program": "${workspaceFolder}/src/spheres.py",
// "program": "${workspaceFolder}/src/datamodule.py", // "program": "${workspaceFolder}/src/datamodule.py",
"args": [ "args": [
// "fit", // "fit",
"predict", "predict",
// "--ckpt_path", // "--ckpt_path",
// "${workspaceFolder}/lightning_logs/version_264/checkpoints/epoch=9-st&ep=1000.ckpt", // "${workspaceFolder}/lightning_logs/version_264/checkpoints/epoch=9-st&ep=1000.ckpt",
"--data.num_workers", "--data.num_workers",
"0", "0",
"--trainer.benchmark", "--trainer.benchmark",
"false", "false",
"--trainer.num_sanity_val_steps", "--trainer.num_sanity_val_steps",
"0", "0",
"--data.persistent_workers", "--data.persistent_workers",
"false", "false",
"--data.batch_size", "--data.batch_size",
"1", "1",
"--trainer.val_check_interval", "--trainer.val_check_interval",
"1" "1"
], ],
"console": "integratedTerminal", "console": "integratedTerminal",
"justMyCode": false "justMyCode": false
} }
] ]
} }

50
.vscode/settings.json vendored
View file

@ -1,27 +1,27 @@
{ {
// "python.defaultInterpreterPath": ".venv/bin/python", // "python.defaultInterpreterPath": ".venv/bin/python",
"python.analysis.typeCheckingMode": "off", "python.analysis.typeCheckingMode": "off",
"python.formatting.provider": "black", "python.formatting.provider": "black",
"editor.formatOnSave": true, "editor.formatOnSave": true,
"python.linting.enabled": true, "python.linting.enabled": true,
"python.linting.lintOnSave": true, "python.linting.lintOnSave": true,
"python.linting.flake8Enabled": true, "python.linting.flake8Enabled": true,
"python.linting.mypyEnabled": true, "python.linting.mypyEnabled": true,
"python.linting.banditEnabled": true, "python.linting.banditEnabled": true,
"python.languageServer": "Pylance", "python.languageServer": "Pylance",
"[python]": { "[python]": {
"editor.codeActionsOnSave": { "editor.codeActionsOnSave": {
"source.organizeImports": true "source.organizeImports": true
} }
}, },
"files.exclude": { "files.exclude": {
"**/.git": true, "**/.git": true,
"**/.svn": true, "**/.svn": true,
"**/.hg": true, "**/.hg": true,
"**/CVS": true, "**/CVS": true,
"**/.DS_Store": true, "**/.DS_Store": true,
"**/Thumbs.db": true, "**/Thumbs.db": true,
"**/__pycache__": true, "**/__pycache__": true,
"**/.mypy_cache": true, "**/.mypy_cache": true,
}, },
} }