nirum / tableprint

Pretty console printing :clipboard: of tabular data in python :snake:
https://tableprint.readthedocs.io/
MIT License
174 stars 16 forks source link

Adds argument to specify horizontal alignment. #17

Closed nirum closed 5 years ago

nirum commented 5 years ago

The "align" keyword argument specifies the horizontal alignment of each column (must be either "left", "center", or "right"). These are converted to the str.format codes "<", "^", and ">", respectively.

Fixes #16

pep8speaks commented 5 years ago

Hello @nirum! Thanks for submitting the PR.

Line 23:80: E501 line too long (101 > 79 characters) Line 34:80: E501 line too long (100 > 79 characters) Line 40:80: E501 line too long (81 > 79 characters) Line 46:80: E501 line too long (83 > 79 characters) Line 79:80: E501 line too long (102 > 79 characters) Line 88:80: E501 line too long (93 > 79 characters) Line 103:80: E501 line too long (90 > 79 characters) Line 112:80: E501 line too long (89 > 79 characters) Line 150:80: E501 line too long (109 > 79 characters) Line 169:80: E501 line too long (98 > 79 characters) Line 175:80: E501 line too long (94 > 79 characters) Line 191:80: E501 line too long (83 > 79 characters) Line 204:80: E501 line too long (91 > 79 characters) Line 207:80: E501 line too long (82 > 79 characters) Line 210:80: E501 line too long (93 > 79 characters) Line 231:80: E501 line too long (83 > 79 characters) Line 240:80: E501 line too long (82 > 79 characters) Line 272:80: E501 line too long (84 > 79 characters)

Line 14:80: E501 line too long (196 > 79 characters) Line 21:80: E501 line too long (196 > 79 characters) Line 25:80: E501 line too long (109 > 79 characters) Line 30:31: E231 missing whitespace after ',' Line 30:42: E231 missing whitespace after ',' Line 30:53: E231 missing whitespace after ',' Line 33:80: E501 line too long (124 > 79 characters)

codecov-io commented 5 years ago

Codecov Report

Merging #17 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #17   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           5      5           
  Lines         134    137    +3     
=====================================
+ Hits          134    137    +3
Impacted Files Coverage Δ
tableprint/metadata.py 100% <100%> (ø) :arrow_up:
tableprint/printer.py 100% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 0e658c0...596ebe9. Read the comment docs.