Refactor code structure for improved readability and maintainability

This commit is contained in:
2025-09-01 16:04:25 +02:00
parent f94ff07cab
commit 1a1c3c31f9
9 changed files with 442 additions and 441 deletions

File diff suppressed because one or more lines are too long

View File

@@ -308,7 +308,6 @@
} }
], ],
"source": [ "source": [
"\n",
"u = lambda x: np.sqrt((6 - x) ** 2 + 4)\n", "u = lambda x: np.sqrt((6 - x) ** 2 + 4)\n",
"\n", "\n",
"\n", "\n",

View File

@@ -1106,7 +1106,6 @@
} }
], ],
"source": [ "source": [
"\n",
"fig, ax = plt.subplots(subplot_kw={\"projection\": \"3d\"})\n", "fig, ax = plt.subplots(subplot_kw={\"projection\": \"3d\"})\n",
"\n", "\n",
"X = np.arange(-3, 3, 0.25)\n", "X = np.arange(-3, 3, 0.25)\n",

View File

@@ -32,7 +32,6 @@
}, },
"outputs": [], "outputs": [],
"source": [ "source": [
"\n",
"import numpy as np\n", "import numpy as np\n",
"import matplotlib.pyplot as plt\n", "import matplotlib.pyplot as plt\n",
"\n", "\n",

View File

@@ -11,6 +11,7 @@ dependencies = [
"opencv-python>=4.11.0.86", "opencv-python>=4.11.0.86",
"pandas>=2.2.3", "pandas>=2.2.3",
"scikit-learn>=1.6.1", "scikit-learn>=1.6.1",
"scipy>=1.15.2",
] ]
[dependency-groups] [dependency-groups]
@@ -19,6 +20,10 @@ dev = [
"uv>=0.6.16", "uv>=0.6.16",
] ]
[tool.ruff]
extend-include = ["*.ipynb"]
line-length = 88
[tool.ruff.lint] [tool.ruff.lint]
# Activer les règles de linting courantes # Activer les règles de linting courantes
select = [ select = [
@@ -36,9 +41,6 @@ ignore = [
"E501", # line too long, géré par le formatter "E501", # line too long, géré par le formatter
] ]
# Longueur de ligne
line-length = 88
# Exclure certains fichiers ou répertoires # Exclure certains fichiers ou répertoires
exclude = [ exclude = [
".bzr", ".bzr",

850
uv.lock generated

File diff suppressed because it is too large Load Diff