Commit Graph

31 Commits

Author SHA1 Message Date
Kristóf Tóth 122a59cbb6 Fix directories not normalised when trailing slash is present 2018-09-09 00:55:21 +02:00
Kristóf Tóth ad55d4011b Reorder methods 2018-09-09 00:49:03 +02:00
Kristóf Tóth 8d78f38d99 Implement test for dirname normalised bug 2018-09-09 00:45:09 +02:00
Kristóf Tóth 716e198b4b Fix --dryrun output 2018-09-09 00:34:56 +02:00
Kristóf Tóth 1c438931ff Start writing unit tests 2018-09-05 00:19:11 +02:00
Kristóf Tóth ab24097866 Make operation optional, return results from __call__ 2018-09-04 22:45:42 +02:00
Kristóf Tóth baa444f25e Support normalising str and Iterable[str] as well 2018-09-04 21:08:48 +02:00
Kristóf Tóth 0d696114b2 Implement --check option 2018-09-02 17:01:05 +02:00
Kristóf Tóth cac52effa8 Optimise algorithm by reducing number of invocations 2018-09-02 16:47:52 +02:00
Kristóf Tóth a47777ce23 Enforce separator always being in whitelist 2018-09-02 16:15:24 +02:00
Kristóf Tóth fee4bcb24d Remove whitelisted space as it is no longer necessary 2018-09-02 16:10:41 +02:00
Kristóf Tóth e090626b28 Refactor Normalisename to separate file, improve coding style 2018-09-02 16:08:16 +02:00
Kjistóf 7bd02f37db Improve whitespace elimination with re.sub() 2018-09-02 15:59:06 +02:00
Kjistóf 24cd974129 Make --funky print what it should. Normalise() is now __call__() 2018-09-02 15:58:50 +02:00
Kjistóf 57d0ab4650 Add --dryrun and --funky modes. closes #4, closes #5 2018-09-02 15:58:35 +02:00
Kjistóf 347affa0c5 Add support for different operations, called only when needed 2018-09-02 15:58:26 +02:00
Kjistóf d5efc7db1c Refactor and buxfix (paths with funky characters would raise) 2018-09-02 15:58:10 +02:00
Kjistóf 2ad95914e0 Add option to disallow special characters. closes #2 2018-09-02 15:58:02 +02:00
Kjistóf e20f442016 Add option to append special characters to whitelist 2018-09-02 15:57:31 +02:00
Kjistóf 0da93de25a Implement custom separators via argparse 2018-09-02 15:57:26 +02:00
Kjistóf 605a7cc5bf Add shebang line for easy symlinking purposes 2018-09-02 15:57:20 +02:00
Kjistóf 286e666091 Make whitelist a set as it is more logical & idiomatic 2018-09-02 15:57:10 +02:00
Kjistóf 734f4c1a04 Remove totally unnecessary .gitignore file 2018-09-02 15:57:04 +02:00
Kjistóf fcf06ef580 Fix a bug where script would crash due to paths being normalised 2018-09-02 15:56:53 +02:00
Kjistóf 00b39bb305 Fix a bug where the normalised file would be moved. closes #1 2018-09-02 15:56:39 +02:00
Kjistóf f58497969c Refactor characters which should not be bothered into a whitelist 2018-09-02 15:56:30 +02:00
Kjistóf 52dd5a2c22 Add os specific stuff to .gitignore 2018-09-02 15:56:21 +02:00
Kjistóf 4c566747c2 Add explanations to some lines 2018-09-02 15:56:09 +02:00
Kjistóf ad1d8b4628 Leave underscores in place (previously they were omitted) 2018-09-02 15:55:57 +02:00
Kjistóf 71f41a62fd Leave dashes in place 2018-09-02 15:55:43 +02:00
Kjistóf fe1c4b27ba Initial commit 2018-09-02 15:55:36 +02:00