Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
|/ | |||||
* | 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 | ||||
| * | Install fastnumbers for mypy | Seth Morton | 2021-11-02 | 2 | -1/+2 |
| | | | | | | | | Otherwise it complains that it cannot find the types, understandably. | ||||
| * | Need to disable zip_safe with py.typedtype-hinting | Seth Morton | 2021-11-01 | 1 | -0/+1 |
| | | |||||
| * | Remove fastnumbers type ignore statement | Seth Morton | 2021-11-01 | 3 | -5/+3 |
| | | |||||
| * | Actually do overloads correctly | Seth Morton | 2021-10-30 | 1 | -126/+68 |
| | | | | | | | | | | | | Originally I did not realize that it was possible to put the keyword arguments in an overload, so I ended up doing way more overload definitions than needed. | ||||
| * | Eliminate unneeded cast in __main__.py | Seth Morton | 2021-10-30 | 1 | -3/+3 |
| | | |||||
| * | Add py.typed | Seth Morton | 2021-10-30 | 2 | -0/+1 |
| | | | | | | | | This will expose Natsort's types to libraries using it. | ||||
| * | Run mypy in CI | Seth Morton | 2021-10-29 | 1 | -0/+18 |
| | | |||||
| * | Static analysis now happens on Python 3.6 | Seth Morton | 2021-10-29 | 1 | -2/+2 |
| | | | | | | | | This was missed when 3.5 support was removed. | ||||
| * | Fix other bugs introduced in the shuffle | Seth Morton | 2021-10-29 | 13 | -25/+44 |
| | | |||||
| * | Simplify types | Seth Morton | 2021-10-29 | 4 | -37/+33 |
| | | | | | | | | Some over-specified types have been made a bit more general. | ||||
| * | Expose the NSType in the public API | Seth Morton | 2021-10-28 | 2 | -1/+4 |
| | | |||||
| * | Rename some types | Seth Morton | 2021-10-28 | 15 | -98/+105 |
| | | |||||
| * | Add type annotations to tests | Seth Morton | 2021-10-28 | 20 | -211/+328 |
| | | | | | | | | | | | | | | | | That was... a lot. There are still errors in the os_sorted tests, but that requires me to rethink some typing decisions in the main code so that will be for a future commit. | ||||
| * | natsort now passes mypy with --strict | Seth Morton | 2021-10-27 | 8 | -66/+97 |
| | | |||||
| * | Remove type annotations from documentation | Seth Morton | 2021-10-27 | 1 | -0/+1 |
| | | | | | | | | | | The annotations were so complex that it made the documentation hard to follow. | ||||
| * | Expose some internal types to the user | Seth Morton | 2021-10-27 | 2 | -1/+32 |
| | | |||||
| * | Fully type hint natsort.py | Seth Morton | 2021-10-27 | 1 | -24/+233 |
| | | |||||
| * | Fully typehint utils.py | Seth Morton | 2021-10-27 | 1 | -59/+188 |
| | | | | | | | | | | | | OK - this *might* have gone a bit overboard, but I have always thought it was hard to keep track of what most of the utility functions are returning and this really helps. | ||||
| * | Add type hints to "minor" files | Seth Morton | 2021-10-26 | 6 | -41/+79 |
| | | | | | | | | | | | | The compat and __main__ files have had type hints added. The unicode_* files all do not need type hints (because all variables are deducable), same with the ns_enum file. | ||||
| * | Satisfy mypy for library as-is | Seth Morton | 2021-10-24 | 4 | -6/+18 |
| | | | | | | | | Without adding any annotations, make sure mypy is happy. | ||||
| * | The ns enum actually now is a python enum | Seth Morton | 2021-10-24 | 4 | -75/+46 |
| | | | | | | | | | | | | | | | | | | I have been wanting to do this for quite some time, but needed the functionality of the IntEnum for backwards-compatibility. Now that Python 3.5 is no longer supported, the IntEnum can be used and the definition of ns is far simpler than it used to be. This plays nice with mypy also, which is the driving change. | ||||
| * | Remove support for Python 3.5 and 3.4 | Seth Morton | 2021-10-24 | 4 | -3/+7 |
| | | |||||
| * | Add a mypy env to tox | Seth Morton | 2021-10-24 | 1 | -1/+9 |
| | | | | | | | | This will enable typechecking during testing. | ||||
| * | Merge pull request #135 from thethiny/master | Seth Morton | 2021-10-23 | 1 | -1/+6 |
| |\ |/ / | | | Support Type Hinting | ||||
| * | Support Type Hinting | thethiny | 2021-08-31 | 1 | -1/+6 |
|/ | | | | Added support for type hinting for consistency with `sorted` from builtints. This allows Iterables of Custom Objects to be typed. |