Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Update changelog | Seth Morton | 2022-12-18 | 1 | -0/+4 | |
| | ||||||
* | Remove 3.6 support | Seth Morton | 2022-12-18 | 6 | -11/+8 | |
| | | | | CI outright fails with this. | |||||
* | Bump version: 8.1.0 → 8.2.08.2.0 | Seth Morton | 2022-09-01 | 5 | -4/+8 | |
| | ||||||
* | Merge pull request #155 from SethMMorton/make-typing-less-strict | Seth Morton | 2022-09-01 | 10 | -195/+130 | |
|\ | | | | | Make typing less strict | |||||
| * | Fix issues found in CI | Seth Morton | 2022-09-01 | 4 | -4/+2 | |
| | | ||||||
| * | Update changelog | Seth Morton | 2022-09-01 | 1 | -0/+6 | |
| | | ||||||
| * | Add stubs for icu | Seth Morton | 2022-09-01 | 3 | -8/+32 | |
| | | | | | | | | This way we don't need to use casts in-code. | |||||
| * | Simplify type hints for public functions | Seth Morton | 2022-09-01 | 5 | -187/+94 | |
|/ | | | | | | | | | ...and to some degree private as well. Previously, the declared hints for natsort were too restrictive. Generics and protocols are now utilized to make the type hints more "open" which is more realistic, since more than just basic types can be sorted. | |||||
* | Merge pull request #153 from Gilthans/master | Seth Morton | 2022-08-29 | 3 | -11/+26 | |
|\ | | | | | Treat paths as strings in StrParser | |||||
| * | Fixed locale string mypy issue | Gilthans | 2022-08-29 | 1 | -1/+1 | |
| | | ||||||
| * | Fixed locale string mypy issue | Gilthans | 2022-08-23 | 1 | -6/+7 | |
| | | ||||||
| * | Formatting fix | Gilthans | 2022-08-16 | 1 | -1/+5 | |
| | | ||||||
| * | Treat paths as strings in StrParser | Gilthans | 2022-08-11 | 2 | -5/+15 | |
|/ | ||||||
* | Bump version: 8.0.2 → 8.1.08.1.0 | Seth Morton | 2022-01-30 | 5 | -4/+8 | |
| | ||||||
* | Merge pull request #147 from ↵ | Seth Morton | 2022-01-30 | 4 | -67/+97 | |
|\ | | | | | | | | | SethMMorton/remove-python2-mentions-in-documentation Remove python2 mentions in documentation | |||||
| * | Add howto section about locale and unicode | Seth Morton | 2022-01-30 | 1 | -0/+65 | |
| | | ||||||
| * | Add a note in How-it-works about path suffix splitting | Seth Morton | 2022-01-30 | 1 | -0/+7 | |
| | | | | | | | | | | Basically, I just point out that the example is more simple than the real thing. | |||||
| * | Remove Python 2 related content from documentation | Seth Morton | 2022-01-30 | 4 | -68/+26 | |
|/ | | | | This should have been removed with natsort 7.0.0. | |||||
* | Merge pull request #146 from SethMMorton/over-zealous-extension-splitting | Seth Morton | 2022-01-30 | 4 | -18/+59 | |
|\ | | | | | Over zealous extension splitting | |||||
| * | Update changelog | Seth Morton | 2022-01-29 | 1 | -2/+6 | |
| | | ||||||
| * | Add some limiting heuristics to the PATH suffix splitting | Seth Morton | 2022-01-29 | 1 | -12/+17 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The prior algorithm went as follows: Obtain ALL suffixes from the base component of the filename. Then, starting from the back, keep the suffixes split until a suffix is encountered that begins with the regular expression /.\d/. It was assumed that this was intended to be a floating point number, and not an extension, and thus the splitting would stop at that point. Some input has been seen where the filenames are composed nearly entirely of Word.then.dot.and.then.dot. One entry amongst them contained Word.then.dot.5.then.dot. This caused this one entry to be treated differently from the rest of the entries due to the ".5", and the sorting order was not as expected. The new algorithm is as follows: Obtain a maxium of two suffixes. Keep these suffixes until one of them has a length greater than 4 or starts with the regular expression /.\d/. This heuristic of course is not bullet-proof, but it will do a better job on most real-world filenames than the previous algorithm. | |||||
| * | Add tests to demonstrate the PATH ext bug | Seth Morton | 2022-01-29 | 2 | -4/+36 | |
|/ | | | | | | | I'm not sure sure it is *actually* a bug, but the PATH algorithm's way of splitting extensions was over-zealous and in practice will split off more extensions that is probably desired. To fix this, we will need to add a heuristic, but this commit adds tests to demonstrate the problem. | |||||
* | Revert "Black" | Seth Morton | 2022-01-29 | 2 | -2/+0 | |
| | | | | This reverts commit b85dea24e0db30d2652f6ad46fb2a199e15960d2. | |||||
* | Merge branch 'master' of github.com:SethMMorton/natsort | Seth Morton | 2022-01-28 | 7 | -12/+12 | |
|\ | ||||||
| * | Merge pull request #144 from kianmeng/fix-typosmaster | Seth Morton | 2021-12-30 | 7 | -12/+12 | |
| |\ | | | | | | | Fix typos | |||||
| | * | Fix typos | Kian-Meng, Ang | 2021-12-30 | 7 | -12/+12 | |
| |/ | ||||||
* | | Black | Seth Morton | 2022-01-28 | 2 | -0/+2 | |
|/ | ||||||
* | Bump version: 8.0.1 → 8.0.28.0.2 | Seth Morton | 2021-12-14 | 5 | -4/+8 | |
| | ||||||
* | Merge pull request #143 from ↵ | Seth Morton | 2021-12-14 | 3 | -1/+16 | |
|\ | | | | | | | | | SethMMorton/path-splitting-does-not-handle-dot-properly Path splitting does not handle dot properly | |||||
| * | Update changelog | Seth Morton | 2021-12-14 | 1 | -0/+3 | |
| | | ||||||
| * | Add handling for '.' when splitting paths | Seth Morton | 2021-12-14 | 2 | -1/+13 | |
|/ | | | | | | | pathlib.Path(".").parts returns an empty tuple. This is unexpected, and caused a tuple unpacking statement to fail. The solution is to catch the ValueError from tuple unpacking and manually construct the return values. | |||||
* | Minor changelog edit | Seth Morton | 2021-12-13 | 1 | -1/+0 | |
| | ||||||
* | Bump version: 8.0.0 → 8.0.18.0.1 | Seth Morton | 2021-12-10 | 5 | -4/+8 | |
| | ||||||
* | Merge pull request #141 from SethMMorton/fix-sorting-in-ce-locale | Seth Morton | 2021-12-10 | 7 | -8/+59 | |
|\ | | | | | Fix sorting in ce locale | |||||
| * | Add new cs_CZ locale into the CI environment | Seth Morton | 2021-12-10 | 2 | -1/+4 | |
| | | ||||||
| * | Black | Seth Morton | 2021-12-10 | 2 | -2/+0 | |
| | | ||||||
| * | Update changelog | Seth Morton | 2021-12-09 | 1 | -0/+5 | |
| | | ||||||
| * | Combine unicode normalization for LOCALE | Seth Morton | 2021-12-09 | 1 | -5/+26 | |
| | | | | | | | | | | For some locales, the unicode cannot be decomposed otherwise the ordering is incorrect. | |||||
| * | Add tests for the cs_CZ regression | Seth Morton | 2021-12-09 | 2 | -0/+24 | |
|/ | | | | This ensures that going forward this won't not sort correctly. | |||||
* | Bump version: 7.2.0 → 8.0.08.0.0 | Seth Morton | 2021-11-03 | 5 | -4/+8 | |
| | ||||||
* | Prepare to change 7.2.0 into 8.0.0 | Seth Morton | 2021-11-03 | 2 | -2/+5 | |
| | ||||||
* | Add note to README | Seth Morton | 2021-11-02 | 1 | -0/+5 | |
| | ||||||
* | Bump version: 7.1.1 → 7.2.07.2.0 | Seth Morton | 2021-11-02 | 5 | -5/+8 | |
| | ||||||
* | Update license year | Seth Morton | 2021-11-02 | 1 | -1/+1 | |
| | ||||||
* | Add notes about using Python 3.10 | Seth Morton | 2021-11-02 | 2 | -0/+2 | |
| | ||||||
* | Add 3.10 to testing infrastructure | Seth Morton | 2021-11-02 | 2 | -2/+3 | |
| | ||||||
* | Remove unsupported testing mechanisms from docs | Seth Morton | 2021-11-02 | 1 | -19/+1 | |
| | ||||||
* | Drop < 3.6 in documentation | Seth Morton | 2021-11-02 | 2 | -4/+1 | |
| | ||||||
* | Update changelog | Seth Morton | 2021-11-02 | 1 | -5/+3 | |
| | ||||||
* | Merge pull request #138 from SethMMorton/type-hinting | Seth Morton | 2021-11-02 | 36 | -434/+976 | |
|\ | | | | | Type hinting |