summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Update changelogSeth Morton2022-12-181-0/+4
|
* Remove 3.6 supportSeth Morton2022-12-186-11/+8
| | | | CI outright fails with this.
* Bump version: 8.1.0 → 8.2.08.2.0Seth Morton2022-09-015-4/+8
|
* Merge pull request #155 from SethMMorton/make-typing-less-strictSeth Morton2022-09-0110-195/+130
|\ | | | | Make typing less strict
| * Fix issues found in CISeth Morton2022-09-014-4/+2
| |
| * Update changelogSeth Morton2022-09-011-0/+6
| |
| * Add stubs for icuSeth Morton2022-09-013-8/+32
| | | | | | | | This way we don't need to use casts in-code.
| * Simplify type hints for public functionsSeth Morton2022-09-015-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/masterSeth Morton2022-08-293-11/+26
|\ | | | | Treat paths as strings in StrParser
| * Fixed locale string mypy issueGilthans2022-08-291-1/+1
| |
| * Fixed locale string mypy issueGilthans2022-08-231-6/+7
| |
| * Formatting fixGilthans2022-08-161-1/+5
| |
| * Treat paths as strings in StrParserGilthans2022-08-112-5/+15
|/
* Bump version: 8.0.2 → 8.1.08.1.0Seth Morton2022-01-305-4/+8
|
* Merge pull request #147 from ↵Seth Morton2022-01-304-67/+97
|\ | | | | | | | | SethMMorton/remove-python2-mentions-in-documentation Remove python2 mentions in documentation
| * Add howto section about locale and unicodeSeth Morton2022-01-301-0/+65
| |
| * Add a note in How-it-works about path suffix splittingSeth Morton2022-01-301-0/+7
| | | | | | | | | | Basically, I just point out that the example is more simple than the real thing.
| * Remove Python 2 related content from documentationSeth Morton2022-01-304-68/+26
|/ | | | This should have been removed with natsort 7.0.0.
* Merge pull request #146 from SethMMorton/over-zealous-extension-splittingSeth Morton2022-01-304-18/+59
|\ | | | | Over zealous extension splitting
| * Update changelogSeth Morton2022-01-291-2/+6
| |
| * Add some limiting heuristics to the PATH suffix splittingSeth Morton2022-01-291-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 bugSeth Morton2022-01-292-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 Morton2022-01-292-2/+0
| | | | This reverts commit b85dea24e0db30d2652f6ad46fb2a199e15960d2.
* Merge branch 'master' of github.com:SethMMorton/natsortSeth Morton2022-01-287-12/+12
|\
| * Merge pull request #144 from kianmeng/fix-typosmasterSeth Morton2021-12-307-12/+12
| |\ | | | | | | Fix typos
| | * Fix typosKian-Meng, Ang2021-12-307-12/+12
| |/
* | BlackSeth Morton2022-01-282-0/+2
|/
* Bump version: 8.0.1 → 8.0.28.0.2Seth Morton2021-12-145-4/+8
|
* Merge pull request #143 from ↵Seth Morton2021-12-143-1/+16
|\ | | | | | | | | SethMMorton/path-splitting-does-not-handle-dot-properly Path splitting does not handle dot properly
| * Update changelogSeth Morton2021-12-141-0/+3
| |
| * Add handling for '.' when splitting pathsSeth Morton2021-12-142-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 editSeth Morton2021-12-131-1/+0
|
* Bump version: 8.0.0 → 8.0.18.0.1Seth Morton2021-12-105-4/+8
|
* Merge pull request #141 from SethMMorton/fix-sorting-in-ce-localeSeth Morton2021-12-107-8/+59
|\ | | | | Fix sorting in ce locale
| * Add new cs_CZ locale into the CI environmentSeth Morton2021-12-102-1/+4
| |
| * BlackSeth Morton2021-12-102-2/+0
| |
| * Update changelogSeth Morton2021-12-091-0/+5
| |
| * Combine unicode normalization for LOCALESeth Morton2021-12-091-5/+26
| | | | | | | | | | For some locales, the unicode cannot be decomposed otherwise the ordering is incorrect.
| * Add tests for the cs_CZ regressionSeth Morton2021-12-092-0/+24
|/ | | | This ensures that going forward this won't not sort correctly.
* Bump version: 7.2.0 → 8.0.08.0.0Seth Morton2021-11-035-4/+8
|
* Prepare to change 7.2.0 into 8.0.0Seth Morton2021-11-032-2/+5
|
* Add note to READMESeth Morton2021-11-021-0/+5
|
* Bump version: 7.1.1 → 7.2.07.2.0Seth Morton2021-11-025-5/+8
|
* Update license yearSeth Morton2021-11-021-1/+1
|
* Add notes about using Python 3.10Seth Morton2021-11-022-0/+2
|
* Add 3.10 to testing infrastructureSeth Morton2021-11-022-2/+3
|
* Remove unsupported testing mechanisms from docsSeth Morton2021-11-021-19/+1
|
* Drop < 3.6 in documentationSeth Morton2021-11-022-4/+1
|
* Update changelogSeth Morton2021-11-021-5/+3
|
* Merge pull request #138 from SethMMorton/type-hintingSeth Morton2021-11-0236-434/+976
|\ | | | | Type hinting