Commit graph

177 commits

Author SHA1 Message Date
pborunda
262b37a0f9 code cleanup
fixed line too long
2017-02-10 09:04:03 -07:00
pborunda
66f1e7884e code cleanup
corrected indentation to 4 spaces. Removed some final semicolons.
2017-02-10 08:53:28 -07:00
pborunda
fe98270715 code cleanup
removed trailing whitespace
2017-02-10 08:39:43 -07:00
pborunda
d1c347365b code cleanup
remove extra blank
2017-02-10 08:34:40 -07:00
pborunda
c9a2d26918 Shortened some help message
Shortened help message for --set-c-precision and --keep-init-precision
2017-02-10 08:29:45 -07:00
pborunda
f5ad0f4988 Improve precision options for smaller output size
Add a seperate precision option for curve control points
(--set-c-precision) . Interpret precision digits = 0 as round to nearest
integer between -1 and 1. Add option to preserves all digits left of
decimal point regardless of set precision.
2017-02-08 14:08:04 -07:00
Eduard Braun
210c5f64ab Update HISTORY.md 2016-11-27 19:10:29 +01:00
Eduard Braun
25549b35d3 Some whitespace fixes to make newer versions of flake8 happy 2016-11-27 18:52:39 +01:00
Eduard Braun
6cf8c2b7d9 call sanitizeOptions() in start() to prevent a third-party breakage 2016-11-27 18:52:39 +01:00
Eduard Braun
c45f050fe6 Update HISTORY.md (0.35 has been released) 2016-10-25 23:16:47 +02:00
Eduard Braun
d9b369864d Reimplement generateDefaultOptions() by simply calling sanitizeOptions() 2016-09-25 19:02:19 +02:00
Eduard Braun
49cb542689 Make sanitizeOptions() work with an empty parameter list 2016-09-25 18:49:05 +02:00
Eduard Braun
285d73e5a6 Fix statistics out put for "Number of comments removed" 2016-09-25 15:44:07 +02:00
Eduard Braun
2fe7152a1e Fix logic from 4a5b924d37 (which was still wrong after 4410f91dad) 2016-09-25 15:34:28 +02:00
Eduard Braun
91ee9d2112 Merge pull request #120 from Ede123/raster_images
Fix embedding of raster images
2016-09-23 23:23:21 +02:00
Eduard Braun
de1441fd58 Exclude (system specific) absolute paths from test file and add a unittest that creates/tests absolute paths on-the-fly 2016-09-23 23:16:19 +02:00
Eduard Braun
902e112a96 Add unittests for embedding rasters (and --disable-embed-rasters) 2016-09-23 23:14:56 +02:00
Eduard Braun
8cc97601c4 scourXmlFile(): Set specified 'filename' as input filename so relative references will work 2016-09-23 22:32:32 +02:00
Eduard Braun
462460a512 Fix embedRasters() function.
It was not Python 3 compatible and usually would not have worked with local files.
2016-09-23 22:30:43 +02:00
Eduard Braun
8d20805976 Add three images (for usage with a future unittest) 2016-09-18 22:41:24 +02:00
Eduard Braun
7e2b5e43df Add CONTRIBUTING.md with some (hopefully) useful pointers 2016-09-18 22:36:21 +02:00
Eduard Braun
284beae36c Merge pull request #117 from Ede123/unittests
Add some unittests
2016-09-18 18:33:14 +02:00
Eduard Braun
45a2869a17 Add unittests for --protect-ids-_ options 2016-09-18 18:29:13 +02:00
Eduard Braun
829b630d64 Add unittests which emulate calling the scour module from command line 2016-09-18 17:13:00 +02:00
Eduard Braun
47cfb9aa0e Add unittest for --strip-xml-space 2016-09-18 17:13:00 +02:00
Eduard Braun
24c8087bd4 minor whitespace fix 2016-09-18 17:12:33 +02:00
Eduard Braun
2487f4433b Fixes to globals used for tracking statistics (#118)
- Collect globals in `scourString()` and make sure they're all properly initialized to zero. Before statistics were wrong when scouring multiple files/strings because initialization was only done once when loading the module.
- harmonize names
- adjust according to PEP 8 while at it (including leading underscore to mark as non-public)
- include one missing variable in statistics output (number of comments removed)
2016-09-18 16:23:00 +02:00
Eduard Braun
4410f91dad Fix logic in previous commit 2016-09-18 03:25:19 +02:00
Eduard Braun
4a5b924d37 Do not attempt to close stdin/stdout file objects 2016-09-18 03:07:51 +02:00
Eduard Braun
8ac344daf2 Update Makefile
- add `make` target to run unittests
- add a convenience `check` target (that runs unittests and flake8 for now)
- remove `test_error_on_flowtext` target (we have unittests for that now)
2016-09-17 17:09:35 +02:00
Eduard Braun
18970e0ba1 Update README.md
- add codecov badge
- exclusively use "shields.io" for badges (one service potentially being able to track visitors is enough)
- add title texts
2016-09-17 16:28:13 +02:00
Eduard Braun
e1e3051de0 Merge pull request #115 from Ede123/coverage 2016-09-17 15:53:10 +02:00
Eduard Braun
582c2dd9b7 Add coverage to Makefile and improve clean target 2016-09-17 02:26:13 +02:00
Eduard Braun
42dc70874c Automate coverage via Travis and Codecov 2016-09-17 02:25:32 +02:00
Eduard Braun
79390dc0e4 Add flake8 to automated tests 2016-09-16 02:03:03 +02:00
Eduard Braun
fb9ffb3dbd Merge pull request #113 from Ede123/pep8
Reformat code according to PEP 8
2016-09-15 23:05:10 +02:00
Eduard Braun
f27ad1e416 add flake8 to Makefile 2016-09-15 22:15:10 +02:00
Eduard Braun
d9198d7872 Order imports as suggested by PEP 8 2016-09-15 21:56:36 +02:00
Eduard Braun
99363c9089 Fix all issues detected by pyflakes 2016-09-15 21:31:34 +02:00
Eduard Braun
82df0d2327 More PEP 8 cleanup
(solves all issues reported by `pycodestyle`)
2016-09-15 21:02:15 +02:00
Eduard Braun
fc356815a2 Some reformatting and manually break all long lines at column 119 2016-09-15 01:54:19 +02:00
Eduard Braun
0f1974c1e2 Consistent whitespace across source files according to PEP 8
(mostly automated by using autopep8, fixes #69)
2016-09-15 00:35:13 +02:00
Tobias Oberstein
943319b710 bump version 2016-09-14 12:10:57 +02:00
Eduard Braun
9b80fc55a2 Update HISTORY.md 2016-09-11 14:10:24 +02:00
Eduard Braun
9629e87f37 Throw some line breaks in there... 2016-09-11 14:03:31 +02:00
Eduard Braun
082b579410 We don't want spaces in the serialized value of style attributes.
Add a unittest that should catch this and other issues with parsing/serializing the `style` attribute
2016-09-11 14:01:04 +02:00
Eduard Braun
b065137187 Whitespace fix 2016-09-11 01:11:36 +02:00
Eduard Braun
cd8b723fed Merge pull request #111 from Ede123/property_inheritance
Fix incorrect property inheritance
2016-09-11 00:19:38 +02:00
Eduard Braun
10e687b887 Add unittests for 1cde426009 and 641d2db08a392e4a7df20c700e1accb9cd8d1341 2016-09-11 00:16:17 +02:00
Eduard Braun
0b5bb5184c Do not remove stroke:none; if a differing value would be inherited from a parent
(fixes rest of #22)
2016-09-11 00:16:04 +02:00