Tooling angepasst
parent
e1a43fac2e
commit
b0ed1bd1c7
|
|
@ -3,5 +3,3 @@ import math
|
|||
name = "Max"
|
||||
|
||||
print(nam)
|
||||
|
||||
# terminal -> ruff check . -> ruff check . --fix
|
||||
|
|
|
|||
|
|
@ -1,6 +0,0 @@
|
|||
from src.calculator import add
|
||||
|
||||
print("Manueller Test: ")
|
||||
print(add(2, 3))
|
||||
|
||||
# Terminal -> pytest
|
||||
|
|
@ -1,5 +1,28 @@
|
|||
[tool.ruff]
|
||||
line-length = 88
|
||||
# 1. DAS VERPACKUNGS-SYSTEM
|
||||
[build-system]
|
||||
requires = ["setuptools>=61.0"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
# 2. PROJEKT-METADATEN & VENV-ABHÄNGIGKEITEN
|
||||
[project]
|
||||
name = "mein_projekt"
|
||||
version = "1.0.0"
|
||||
requires-python = ">=3.11"
|
||||
|
||||
# ABHÄNGIGKEITEN
|
||||
dependencies = [
|
||||
"requests", # Beispiel für eine normale Library
|
||||
]
|
||||
|
||||
# 3. CONFIG RUFF
|
||||
[tool.ruff]
|
||||
line-length = 88 # Wann wird eine Zeile automatisch umgebrochen?
|
||||
|
||||
[tool.ruff.lint]
|
||||
# E = Style-Fehler, F = Logik-Fehler, I = Imports sortieren
|
||||
select = ["E", "F", "I"]
|
||||
|
||||
# 4. CONFIG PYTEST
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = ["tests"]
|
||||
testpaths = ["tests"] # Wo liegen die Test-Dateien?
|
||||
addopts = "-v" # -v steht für "verbose" (ausführliche Test-Ausgabe)
|
||||
|
|
@ -4,5 +4,3 @@ def multiply(a, b):
|
|||
|
||||
x = [1, 2, 3]
|
||||
print(x)
|
||||
|
||||
#Terminal -> ruff format .
|
||||
Loading…
Reference in New Issue