Dimitri Papadopoulos Orfanos
5bec029bfd
Import `Sequence
from
collections.abc
` ( #12252 )
2024-04-11 19:03:04 +01:00
Chris Sewell
392358d4de
🔧 Ruff format python files within utils
folder ( #12142 )
...
Remove from `exclude` list
2024-03-19 19:32:28 +01:00
danieleades
768cf5e7ac
[lint] run mypy on the utils/ directory ( #12090 )
...
Co-authored-by: daniel.eades <daniel.eades@seebyte.com>
2024-03-15 10:31:32 +01:00
Adam Turner
38ac67bd6c
Use long `re
` flags
2024-01-19 02:28:06 +00:00
Adam Turner
17c1aa76c6
Add type hints to untyped definitions
2024-01-13 21:23:48 +00:00
Adam Turner
655bd15749
Adorn top-level files with a '.rst' suffix
2023-09-14 11:08:17 +01:00
Adam Turner
d80eab689d
Fix EM10{1,2} (exception must not use a string)
2023-08-13 22:11:15 +01:00
Adam Turner
79d196358f
Use `time.strftime()
` to calculate today's date
2023-08-13 22:11:15 +01:00
Adam Turner
4032070e81
Run pyupgrade ( #11070 )
2023-01-02 00:01:14 +00:00
Adam Turner
920828fe35
Run the `pyupgrade
` tool
2022-10-17 22:39:09 +01:00
Adam Turner
b347657809
Use declarative metadata
...
- Move to pyproject.toml metadata
- Update references to `setup.py`
- Use pypa/build
- Update workflows and tooling
2022-09-13 10:31:27 +01:00
Adam Turner
55669f6cfc
Specify encoding
2022-04-22 04:21:12 +01:00
Eisuke Kawashima
652ebf1bf5
Fix typo
2021-07-08 08:16:22 +09:00
Takeshi KOMIYA
d98b2f05a3
utils/bump_version: Remove empty sections from CHANGES automatically
2020-02-23 15:57:51 +09:00
Stephen Finucane
5a9033e5aa
Specifically request Python 3
...
If Sphinx is Python 3-only, Sphinx's tooling should be Python 3-only
too.
Signed-off-by: Stephen Finucane <stephen@that.guru>
2018-12-17 09:46:18 +00:00
Stephen Finucane
d345d0f8c1
py3: Remove (most) __future__ imports
...
There were two used:
- print_function
- absolute_import
Both of these are mandatory in Python 3.0 onwards [1] and can therefore
be removed...mostly. Unfortunately, mypy is still running in Python 2.7
mode, meaning we need the 'print_function' future wherever we're calling
'print' with the 'file' argument. There's also a single
'absolute_import' future that must be retained as its removal breaks a
test for as-yet unknown reasons. TODOs are added to resolve both issues
in the future.
[1] https://docs.python.org/3/library/__future__.html
Signed-off-by: Stephen Finucane <stephen@that.guru>
2018-12-17 09:46:15 +00:00
Jon Dufresne
490e4aed41
Remove unnecessary object from class definitions
...
In Python 3, all classes are new-style classes. The object in the
definition is redundant and unnecessary.
2018-09-11 07:07:01 -07:00
Takeshi KOMIYA
9f5c676322
Use flake8-import-order
2018-01-28 01:52:16 +09:00
Takeshi KOMIYA
bcb1bd914d
package: update bump_version.py
2018-01-15 22:24:52 +09:00
Takeshi KOMIYA
47c869c89a
Fix flake8 and style-check violations
2017-10-23 23:01:18 +09:00
Takeshi KOMIYA
4de4fd060a
bump_version.py: Fix generate non-beta version number on beta release
2017-04-30 00:40:33 +09:00
Takeshi KOMIYA
e1da72b59c
Reduce DeprecationWarnings for regexp
2017-02-17 02:01:04 +09:00
Takeshi KOMIYA
a7b4379c41
Rename bump_version.py
2017-01-21 20:16:59 +09:00