This commit is contained in:
Mike Bloy 2023-10-28 16:23:42 -05:00
parent e0a8cea2c4
commit 830bca82c4
2 changed files with 26 additions and 0 deletions

5
tableformat.py Normal file
View File

@ -0,0 +1,5 @@
def print_table(objects, attributes):
print(*("{: >10}".format(attr) for attr in attributes))
print(*("{:->10}".format("") for _ in attributes))
for obj in objects:
print(*("{: >10}".format(getattr(obj, attr, "")) for attr in attributes))

21
tox.ini Normal file
View File

@ -0,0 +1,21 @@
[pycodestyle]
max-line-length = 87
[pydocstyle]
ignore = D203,D213,D400,D401,D407,D413
[flake8]
ignore = D401
enable-extensions = G,M
max_line_length = 87
exclude =
build/
dist/
docs/
tests/
.tox/
_version.py
.*
[isort]
line_length = 87