diff --git a/ pyproject.toml b/ pyproject.toml index 46e3b47..0cc6033 100644 --- a/ pyproject.toml +++ b/ pyproject.toml @@ -1,3 +1,5 @@ [project] name = "matrixmania" -version = "0.1.0" \ No newline at end of file +version = "0.1.0" +#(schönere matritzen als tabellen, code überprüfen) +dependencies = ["tabulate", "ruff"] \ No newline at end of file diff --git a/compute.py b/compute.py index 9765ade..817d662 100644 --- a/compute.py +++ b/compute.py @@ -196,4 +196,4 @@ if __name__ == "__main__": print("All tests passed.") -# Zweiter Commit zum Testen der Versionskontrolle \ No newline at end of file +# Zweiter Commit zum Testen der Versionskontrolle diff --git a/main.py b/main.py index 94e3a87..2cd15b5 100644 --- a/main.py +++ b/main.py @@ -1,16 +1,5 @@ -# This is a sample Python script. +from tabulate import tabulate -# Press ⌃R to execute it or replace it with your code. -# Press Double ⇧ to search everywhere for classes, files, tool windows, actions, and settings. +matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] - -def print_hi(name): - # Use a breakpoint in the code line below to debug your script. - print(f'Hi, {name}') # Press ⌘F8 to toggle the breakpoint. - - -# Press the green button in the gutter to run the script. -if __name__ == '__main__': - print_hi('PyCharm') - -# See PyCharm help at https://www.jetbrains.com/help/pycharm/ +print(tabulate(matrix, tablefmt="grid"))