aboutsummaryrefslogtreecommitdiff
path: root/test/lint/lint-python.sh
Commit message (Collapse)AuthorAgeFilesLines
* swapped "is" for "==" in literal comparisonTyler Chambers2020-11-091-0/+1
| | | | update lint-python.sh to include check F632
* test: Bump linter versionsDuncan Dean2020-06-221-1/+0
| | | | | | | | Updates Python linters, spellchecking, and ShellCheck versions. The PR links are updated for the dependency versions in test/README.md. ShellCheck SC2230 removed to align with with new behaviour in v0.7.1. Fixes #19346.
* test: Do not swallow flake8 exit codeHennadii Stepanov2020-06-051-3/+11
|
* This PR adds initial support for type hints checking in python scripts.Kiminuo2020-06-021-0/+3
| | | | | | | | | | | Support for type hints was introduced in Python 3.5. Type hints make it easier to read and review code in my opinion. Also an IDE may discover a potential bug sooner. Yet, as PEP 484 says: "It should also be emphasized that Python will remain a dynamically typed language, and the authors have no desire to ever make type hints mandatory, even by convention." Mypy is used in lint-python.sh to do the type checking. The package is standard so there is little chance that it will be abandoned. Mypy checks that type hints in source code are correct when they are not, it fails with an error. Useful resources: * https://docs.python.org/3.5/library/typing.html * https://www.python.org/dev/peps/pep-0484/
* scripted-diff: Bump copyright of files changed in 2019MarcoFalke2019-12-301-1/+1
| | | | | | -BEGIN VERIFY SCRIPT- ./contrib/devtools/copyright_header.py update ./ -END VERIFY SCRIPT-
* build: Remove install command samplesHennadii Stepanov2019-11-061-2/+2
| | | | test/README.md contains comprehensive install instructions.
* lint: Disable flake8 W504 warningBen Woosley2019-09-031-1/+0
| | | | | | In the words of MarcoFalke: "W504 should be disabled. This is not a critical error that should be blocking a merge" https://github.com/bitcoin/bitcoin/pull/15257#discussion_r302017280
* Limit Python linting to files in the repopracticalswift2019-05-301-1/+7
|
* lint: Enable python linters via an arrayBen Woosley2019-01-201-73/+75
| | | | This assures consistent recording of the enabled linters.
* Add E711 to flake8 checkDaniel Ingram2018-12-101-1/+2
|
* test: allow arguments to be forwarded to flake8 in lint-python.shJames O'Beirne2018-09-241-1/+1
|
* macOS fix: Check for correct version of flake8 to avoid spurious warnings. ↵practicalswift2018-08-311-1/+9
| | | | The brew installed flake8 version is Python 2 based and does not work.
* tests: Use explicit importspracticalswift2018-08-131-1/+3
|
* Add "export LC_ALL=C" to all shell scriptspracticalswift2018-06-141-0/+2
|
* test: Move linters to test/lint, add readmeMarcoFalke2018-05-241-0/+78