commit 78f1b6def095cde6a59e32bc9cde6114a5a57c58 Author: Alberto Bertogli Date: Mon May 25 02:11:51 2020 +0100 Update README This patch updates README, converting it to markdown, adding more links and references, and explicitly mention the Python 3 dependency. commit 4cb2f59dd4fae1cde2d1d8ff1d94c47633d9832e Author: Alberto Bertogli Date: Mon May 25 02:15:21 2020 +0100 Remove TODO The TODO includes many obsolete entries and is generally not kept up to date; remove it to avoid confusion. commit e2155f6b3327c35670a7c71fbac36b071f7f28c0 Author: Alberto Bertogli Date: Mon May 25 02:04:55 2020 +0100 Remove unused/unnecessary code This patch removes some code that is unused and/or unnecessary. Most of it is left over from previous situations, but is no longer needed. commit aee18d0edd88b9db07c3cfb5c13d9889ffac94c1 Author: Alberto Bertogli Date: Sun May 24 15:52:11 2020 +0100 Simplify smstr With the Python 2 to 3 migration and the type checking, we can be fairly confident that smstr are always constructed from strings, not bytes. This allows the code to be simplified, as we no longer need to carry the dual raw/unicode representation. commit 20b99ee568fd15ca2897f995e9775861ef293544 Author: Alberto Bertogli Date: Sun May 24 14:20:56 2020 +0100 Introduce type annotations This patch introduces type annotations, which can be checked with mypy. The coverage is not very comprehensive for now, but it is a starting point and will be expanded in later patches. commit ad950208bf19d49e8f825007ba267ca3c43b8390 Author: Alberto Bertogli Date: Sun May 24 15:01:04 2020 +0100 Auto-format the code with black This patch applies auto-formatting of the source code using black (https://github.com/psf/black). This makes the code style more uniform and simplifies editing. Note I also tried yapf, and IMO produced nicer output and handled some corner cases much better, but unfortunately it doesn't yet support type annotations, which will be introduced in later commits. So in the future we might switch to yapf instead. commit 1183d6f817046a9f2b82a8d61b56046f046afb3f Author: Alberto Bertogli Date: Sun May 24 02:36:43 2020 +0100 Move to Python 3 Python 3 was released more than 10 years ago, and support for Python 2 is going away, with many Linux distributions starting to phase it out. This patch migrates git-arr to Python 3. The generated output is almost exactly the same, there are some minor differences such as HTML characters being quoted more aggresively, and handling of paths with non-utf8 values.