Daniel Eades
6697ed62ed
address some unused loop control variables (B007)
2022-01-12 20:19:18 +00:00
Eisuke Kawashima
652ebf1bf5
Fix typo
2021-07-08 08:16:22 +09:00
Takeshi KOMIYA
56aea3b714
doclinter: Allow anonymous hyperlink target having long URL
2021-07-06 00:52:11 +09:00
Takeshi KOMIYA
e0500f7354
doc: Fix docslint misunderstanding scope of code-blocks
2021-06-06 13:24:06 +09:00
Takeshi KOMIYA
08c65d4de2
i18n: Pull translations via GitHub Actions automatically
2021-05-09 18:20:41 +09:00
Takeshi KOMIYA
effedafabe
i18n: Push translations via GitHub Actions automatically
2021-05-09 17:15:36 +09:00
Takeshi KOMIYA
a8f7e4f563
doc: Update branch name in release-checklist
2021-01-08 01:25:24 +09:00
Takeshi KOMIYA
b3f8bd1e3c
doc: Quote URLs in release checklist
...
To improve the install process, the commands on the checklist is updated
to allow to copy & paste it to console.
2021-01-04 21:12:27 +09:00
Takeshi KOMIYA
68cc0f7e94
Merge pull request #8408 from francoisfreitag/isort
...
Sort imports with isort
2020-11-12 02:05:13 +09:00
François Freitag
0949735210
Sort imports with isort
...
Keep imports alphabetically sorted and their order homogeneous across
Python source files.
The isort project has more feature and is more active than the
flake8-import-order plugin.
Most issues caught were simply import ordering from the same module.
Where imports were purposefully placed out of order, tag with
isort:skip.
2020-11-11 13:19:05 +01:00
Takeshi KOMIYA
658f737970
Check GitHub Actions before packaging
2020-11-05 02:17:54 +09:00
Takeshi KOMIYA
6cf1301c9e
Remove pylint task
...
At present, pylint has no longer been used in this project. This
removes the tasks and files for pylint from repository.
2020-08-10 13:20:06 +09:00
Takeshi KOMIYA
0c4edbdb38
doclinter: Allow a very long literal string
2020-07-24 23:09:56 +09:00
Tetsuo Koyama
ae7c4cc3b8
fix typo
2020-07-19 00:43:11 +00:00
Takeshi KOMIYA
7167b689b9
Do "twine check" on CI process
2020-06-14 16:06:25 +09:00
Takeshi KOMIYA
c84f7bfd57
Merge branch '2.x' into 3.x
2020-03-01 02:13:36 +09:00
Takeshi KOMIYA
2a3dec8866
Add a procedure to update docker image
2020-02-24 12:21:38 +09:00
Takeshi KOMIYA
ffd980a1b7
Merge branch 'clean_dists_on_make_clean' into 2.4.x
2020-02-23 18:59:00 +09:00
Takeshi KOMIYA
2bac500eaa
Merge branch 'update_release_checklist' into 2.4.x
2020-02-23 18:58:27 +09:00
Takeshi KOMIYA
27dc911650
Merge pull request #7204 from tk0miya/clean_dists_on_make_clean
...
Makefile: clean dists directory on "make clean"
2020-02-23 16:51:35 +09:00
Takeshi KOMIYA
4f0e83306e
Merge pull request #7203 from tk0miya/update_release_checklist
...
release-checklist: An update of doc-translations is no longer needed
2020-02-23 16:51:27 +09:00
Takeshi KOMIYA
5572eb7b9e
Makefile: clean dists directory on "make clean"
2020-02-23 16:36:38 +09:00
Takeshi KOMIYA
2ecf5f4651
release-checklist: An update of doc-translations is no longer needed
2020-02-23 16:33:31 +09:00
Takeshi KOMIYA
d98b2f05a3
utils/bump_version: Remove empty sections from CHANGES automatically
2020-02-23 15:57:51 +09:00
Jon Dufresne
de21c2bf10
Correct str/bytes mixup in utils/jssplitter_generator.py
...
The file is opened in text mode, so it .wraite() takes str not bytes.
2019-08-17 09:42:16 -07:00
Takeshi KOMIYA
d6063ff35b
doc: Fold lines by 80 columns
2019-05-30 01:07:05 +09:00
Takeshi KOMIYA
9b2423c5bb
doclinter: restrict by 90 columns
2019-05-26 10:53:53 +09:00
Takeshi KOMIYA
439f329466
doclinter: Fix files are ignored.
2019-05-26 10:53:52 +09:00
Takeshi KOMIYA
c4b20a82ea
doclinter: Ignore large code-block and long interpreted text
2019-05-26 10:53:52 +09:00
Takeshi KOMIYA
5d2c8e6eb7
Add utils/doclinter.py; a documenter linter for Sphinx
2019-05-12 17:57:25 +09:00
Jon Dufresne
22afc77c48
Python-3-only clean ups discovered by pyupgrade
...
https://github.com/asottile/pyupgrade
> A tool to automatically upgrade syntax for newer versions of the
> language.
- Drop u str prefix
- Drop base object inheritance
- Drop args to super()
- Use set literals
- Use dict comprehension
- Use set comprehension
2019-03-19 01:09:48 +09:00
Takeshi KOMIYA
6d02bdda13
Do "twine check" before uploading package
2019-03-10 18:58:02 +09:00
Takeshi KOMIYA
76e9f57c2e
Merge branch '1.8'
2019-01-02 16:16:25 +09:00
Takeshi KOMIYA
1b1ebd2c75
A happy new year!
2019-01-02 16:00:30 +09:00
Takeshi KOMIYA
8ea3f7fad9
Merge pull request #5509 from stephenfin/remove-future-imports
...
Remove future imports
2018-12-17 20:32:39 +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
bade33c7e4
Remove unnecessary encoding cookie from Python source files
...
In Python 3, the default encoding of source files is utf-8. The encoding
cookie is now unnecessary and redundant so remove it. For more details,
see the docs:
https://docs.python.org/3/howto/unicode.html#the-string-type
> The default encoding for Python source code is UTF-8, so you can
> simply include a Unicode character in a string literal ...
Includes a fix for the flake8 header checks to stop expecting an
encoding cookie.
2018-12-16 12:22:12 -08:00
Takeshi KOMIYA
ea1d2d06f8
Merge pull request #5803 from jdufresne/encoding-utf8
...
Avoid respecifying default encoding for .encode()/.decode() calls
2018-12-16 20:01:43 +09:00
Jon Dufresne
5bf25eb445
Avoid respecifying default encoding for .encode()/.decode() calls
...
In Python 3, both .encode() and .decode() default the encoding to
'utf-8'. See the docs:
https://docs.python.org/3/library/stdtypes.html#str.encode
https://docs.python.org/3/library/stdtypes.html#bytes.decode
Simplify and shorten the code by using the default instead of
respecifying it.
2018-12-15 17:19:56 -08:00
Jon Dufresne
1f4fcd656b
Remove use of six.unichr()
...
Use Python 3 chr() instead.
2018-12-15 08:15:56 -08: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
bc19cf72c9
Merge branch '1.7'
2018-05-14 01:04:45 +09:00
Takeshi KOMIYA
c9890cb653
Update release-checklist
2018-05-11 22:28:04 +09:00
shimizukawa
ab101744f2
Use twine instead of 'setup.py upload'. There are security reason ( https://packaging.python.org/tutorials/distributing-packages/#uploading-your-project-to-pypi ) and metadata reason (refs #4936 ).
2018-05-09 11:31:41 +09:00
Jon Dufresne
365c93f227
Update all pypi.python.org URLs to pypi.org
...
For details on the new PyPI, see the blog post:
https://pythoninsider.blogspot.ca/2018/04/new-pypi-launched-legacy-pypi-shutting.html
2018-04-18 19:51:48 -07:00
Takeshi KOMIYA
8bc3691966
Merge pull request #4638 from tk0miya/fix_markup
...
doc: Fix markup
2018-02-18 16:10:08 +09:00
Takeshi KOMIYA
e9003ac07e
doc: Fix markup
2018-02-18 12:40:46 +09:00
Takeshi KOMIYA
f8bb40ab30
Merge branch '1.7'
2018-02-18 12:39:07 +09:00
Takeshi KOMIYA
a721b32d51
docs: Use literal for commands
2018-02-16 21:40:07 +09:00