summaryrefslogtreecommitdiff
path: root/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* doclinter: restrict by 90 columnsTakeshi KOMIYA2019-05-261-1/+1
|
* doclinter: Fix files are ignored.Takeshi KOMIYA2019-05-261-6/+9
|
* doclinter: Ignore large code-block and long interpreted textTakeshi KOMIYA2019-05-261-1/+19
|
* Add utils/doclinter.py; a documenter linter for SphinxTakeshi KOMIYA2019-05-121-0/+59
|
* Python-3-only clean ups discovered by pyupgradeJon Dufresne2019-03-191-1/+1
| | | | | | | | | | | | | | 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
* Do "twine check" before uploading packageTakeshi KOMIYA2019-03-101-4/+8
|
* Merge branch '1.8'Takeshi KOMIYA2019-01-022-2/+2
|\
| * A happy new year!Takeshi KOMIYA2019-01-022-2/+2
| |
* | Merge pull request #5509 from stephenfin/remove-future-importsTakeshi KOMIYA2018-12-172-4/+2
|\ \ | | | | | | Remove future imports
| * | Specifically request Python 3Stephen Finucane2018-12-172-2/+2
| | | | | | | | | | | | | | | | | | | | | If Sphinx is Python 3-only, Sphinx's tooling should be Python 3-only too. Signed-off-by: Stephen Finucane <stephen@that.guru>
| * | py3: Remove (most) __future__ importsStephen Finucane2018-12-171-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Remove unnecessary encoding cookie from Python source filesJon Dufresne2018-12-162-11/+6
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge pull request #5803 from jdufresne/encoding-utf8Takeshi KOMIYA2018-12-161-1/+1
|\ \ | | | | | | Avoid respecifying default encoding for .encode()/.decode() calls
| * | Avoid respecifying default encoding for .encode()/.decode() callsJon Dufresne2018-12-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Remove use of six.unichr()Jon Dufresne2018-12-151-3/+1
|/ / | | | | | | Use Python 3 chr() instead.
* | Remove unnecessary object from class definitionsJon Dufresne2018-09-111-1/+1
|/ | | | | In Python 3, all classes are new-style classes. The object in the definition is redundant and unnecessary.
* Merge branch '1.7'Takeshi KOMIYA2018-05-141-4/+8
|\
| * Update release-checklistTakeshi KOMIYA2018-05-111-3/+6
| |
| * Use twine instead of 'setup.py upload'. There are security reason ( ↵shimizukawa2018-05-091-1/+2
| | | | | | | | https://packaging.python.org/tutorials/distributing-packages/#uploading-your-project-to-pypi ) and metadata reason (refs #4936 ).
* | Update all pypi.python.org URLs to pypi.orgJon Dufresne2018-04-181-4/+4
| | | | | | | | | | | | For details on the new PyPI, see the blog post: https://pythoninsider.blogspot.ca/2018/04/new-pypi-launched-legacy-pypi-shutting.html
* | Merge pull request #4638 from tk0miya/fix_markupTakeshi KOMIYA2018-02-181-3/+3
|\ \ | |/ | | doc: Fix markup
| * doc: Fix markupTakeshi KOMIYA2018-02-181-3/+3
| |
* | Merge branch '1.7'Takeshi KOMIYA2018-02-181-69/+69
|\ \ | |/
| * docs: Use literal for commandsTakeshi KOMIYA2018-02-161-69/+69
| |
* | docs: protect and unprotect the stable branch on releasingTakeshi KOMIYA2018-02-121-0/+2
|/
* Call git fetch before checking statusTakeshi KOMIYA2018-02-071-4/+4
|
* Add procedures for beta and final releasesTakeshi KOMIYA2018-02-061-14/+89
|
* Update release checklist (again)Takeshi KOMIYA2018-02-031-2/+2
|
* Merge pull request #4513 from tk0miya/update_release_checklistTakeshi KOMIYA2018-02-031-12/+11
|\ | | | | Update release checklist
| * Update release checklistTakeshi KOMIYA2018-01-291-12/+11
| |
* | Use flake8-import-orderTakeshi KOMIYA2018-01-283-3/+5
|/
* package: update bump_version.pyTakeshi KOMIYA2018-01-151-5/+1
|
* A happy new year!Takeshi KOMIYA2018-01-011-1/+1
|
* Merge branch 'happy_new_year' into masterTakeshi KOMIYA2018-01-011-1/+1
|\
| * A happy new year!Takeshi KOMIYA2018-01-012-2/+2
| |
* | Merge branch 'stable'Takeshi KOMIYA2017-10-231-1/+1
|\ \ | |/
| * Fix flake8 and style-check violationsTakeshi KOMIYA2017-10-231-1/+1
| |
* | Merge pull request #4121 from stephenfin/remove-check-indentTakeshi KOMIYA2017-10-211-320/+0
|\ \ | | | | | | utils: Remove the 'reindent' tool
| * | utils: Remove the 'reindent' toolStephen Finucane2017-10-051-320/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Nobody seems to be using this, probably because of the 'flake8' target, and it hasn't been touched, some Python/flake8 updates aside in years. Just remove it. The Make target is not removed to both give us time to warn users that the target is gone and, more importantly, to prevent merge conflicts with other patches being submitted at the same time. Signed-off-by: Stephen Finucane <stephen@that.guru>
* | | utils: Remove 'check_sources'Stephen Finucane2017-10-051-191/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are still a couple of checks here but all of them can be removed now: - Check if using valid Python syntax - Check if line length too long - Check if using 'x == None/True/False' - Check if using old HTML 3 tags The first three are already handled by default by the 'flake8' tool. The last one isn't replaced by anything, but it really isn't worth worrying about now because the tags it checks for have been dead for a really long time and would not be used by anyone writing HTML in the last 10 years. Combined, it means we can remove the entire file. The 'style-check' target is updated to simply alias 'flake8'. It can be removed in a future release. This allows us to stop using this target in the Travis jobs, seeing as we already run flake8. Signed-off-by: Stephen Finucane <stephen@that.guru>
* | | utils: Move "header check" to a flake8 pluginStephen Finucane2017-10-053-67/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we want to check style, we run 'tox -e flake8': it shouldn't be necessary to run some obscure 'make' command too. Make this possible by moving the sole useful test from the target of this make command to a flake8 plugin. This includes a fix for a header that was previously excluded from checks, but is now included. Signed-off-by: Stephen Finucane <stephen@that.guru>
* | | utils: Use better variable names in check_fileheaderStephen Finucane2017-10-051-24/+23
|/ / | | | | | | | | | | | | We're going to be doing some surgery on this function, so first clean it up before we do anything else. Signed-off-by: Stephen Finucane <stephen@that.guru>
* | Fix DeprecationWarning for r'…(?u)'Daniel Hahler2017-08-181-2/+2
| | | | | | | | | | | | Fixes > DeprecationWarning: Flags not at the start of the expression …
* | pycode: Replace pgen2 by own parserTakeshi KOMIYA2017-07-261-1/+0
| |
* | Merge branch 'stable'Takeshi KOMIYA2017-05-261-0/+3
|\ \ | |/
| * Add dependencies category to CHANGES templateTakeshi KOMIYA2017-05-261-0/+3
| |
* | Merge branch 'stable'Takeshi KOMIYA2017-05-161-1/+3
|\ \ | |/
| * Update message catalogsTakeshi KOMIYA2017-05-161-1/+3
| |
* | Merge pull request #3668 from adamjstewart/fixes/apidoc-main-argvTakeshi KOMIYA2017-05-141-3/+3
|\ \ | |/ |/| Don't ignore first argument passed to sphinx.apidoc.main
| * Fix failing unit testsAdam J. Stewart2017-05-111-2/+2
| |