mirror of
https://github.com/ArthurDanjou/ArtStudies.git
synced 2026-01-14 15:54:13 +01:00
Refactor code structure for improved readability and maintainability
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -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",
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user