Skip to content

Commit

Permalink
Merge branch 'master' into develop_regularisation-icones
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreRaybaut committed May 6, 2024
2 parents 2243ed6 + e4f23c6 commit 63ed529
Show file tree
Hide file tree
Showing 71 changed files with 2,942 additions and 1,176 deletions.
3 changes: 2 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ omit =

[report]
exclude_lines =
if __name__ == .__main__.:
if __name__ == .__main__.:
if TYPE_CHECKING:
4 changes: 2 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.8", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
Expand All @@ -45,4 +45,4 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest guidata
pytest
26 changes: 8 additions & 18 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,15 @@
"files.trimTrailingWhitespace": true,
"python.defaultInterpreterPath": "${env:PPSTACK_PYTHONEXE}",
"editor.formatOnSave": true,
"isort.args": [
"--profile",
"black"
],
"[python]": {
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
},
"editor.defaultFormatter": "ms-python.black-formatter"
},
"esbonio.sphinx.confDir": "",
"python.analysis.autoFormatStrings": true,
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"python.testing.pytestPath": "pytest",
"python.testing.pytestArgs": [
"-v",
"--cov",
"--cov-report=html",
"guidata"
],
"python.analysis.autoFormatStrings": true,
"python.testing.pytestArgs": [],
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff"
},
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit",
},
}
28 changes: 28 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,34 @@
"clear": true
}
},
{
"label": "Run Ruff",
"type": "shell",
"command": "cmd",
"args": [
"/c",
"run_ruff.bat",
],
"options": {
"cwd": "scripts",
"env": {
"PYTHON": "${env:PPSTACK_PYTHONEXE}",
"UNATTENDED": "1"
}
},
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "dedicated",
"showReuseMessage": true,
"clear": true
}
},
{
"label": "Build documentation",
"type": "shell",
Expand Down
Loading

0 comments on commit 63ed529

Please sign in to comment.