diff options
author | Wyatt Hepler <hepler@google.com> | 2020-12-03 10:57:20 -0800 |
---|---|---|
committer | Wyatt Hepler <hepler@google.com> | 2020-12-04 17:59:45 +0000 |
commit | 8ce9013bfdd76d6c1a5d2e77f2be807718b83d22 (patch) | |
tree | cd07b445328b0fa184ddb688a3d9e667bba5a9b5 /pw_allocator/py | |
parent | 38cad0c6a9bf2903e7236d0100911f49c3fbac95 (diff) | |
download | pigweed-8ce9013bfdd76d6c1a5d2e77f2be807718b83d22.tar.gz |
pw_build: Support specifying mypy/pylint config
- Add pylintrc and mypy_ini options to the pw_python_package template.
These can be used to specify configuration files to use for Pylint and
Mypy.
- Run pylint and mypy from the setup directory. This allows tools to
find per-package configuration files (if they aren't specified by the
pylintrc or mypy_ini arguments).
- Fix some incorrect import ordering that Pylint detects now that it
runs from package directories. PEP8 states imports should be grouped
by standard library, third party, and local package imports.
Change-Id: I8017341178ac5920d623ebbed4535432d69527c3
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/26700
Reviewed-by: Keir Mierle <keir@google.com>
Reviewed-by: Alexei Frolov <frolv@google.com>
Diffstat (limited to 'pw_allocator/py')
-rw-r--r-- | pw_allocator/py/BUILD.gn | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pw_allocator/py/BUILD.gn b/pw_allocator/py/BUILD.gn index 2baa9eb58..0322cb3fa 100644 --- a/pw_allocator/py/BUILD.gn +++ b/pw_allocator/py/BUILD.gn @@ -23,4 +23,5 @@ pw_python_package("py") { "pw_allocator/heap_viewer.py", ] python_deps = [ "$dir_pw_cli/py" ] + pylintrc = "$dir_pigweed/.pylintrc" } |