summaryrefslogtreecommitdiffstats
path: root/python/doc
Commit message (Collapse)AuthorAgeFilesLines
* python: fix flake8 warnings F401Thomas Haller2023-07-251-2/+0
| | | | | | | | | ./doc/doxygen-link.py:4:1: F401 'fileinput' imported but unused ./doc/resolve-asciidoc-refs.py:5:1: F401 'fileinput' imported but unused ./python/doc/conf.py:14:1: F401 'sys' imported but unused ./python/doc/conf.py:14:1: F401 'os' imported but unused ./python/netlink/util.py:13:1: F401 '.core as netlink' imported but unused ./python/netlink/util.py:16:1: F401 'types' imported but unused
* python: reformat all Python files with python-blackThomas Haller2023-07-251-55/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Automated code formatting is great. Use python-black for that ([1]). Black us not configurable much (uncompromising) and follows PEP8. It thus generates quite a standard, pleasing format. But the point isn't whether the formatting is always the most subjectively pleasing. The point is that the style is generated and enforceable by an automated tool. It takes away places for nit picking, while resulting in a more consistent code base. As this reformats the entire code base, it introduces a large diff and interferes with tools like git-blame. That will be somewhat alleviated by adding a "blame.ignoreRevsFile" for git in the next commit. The change is done automatically, by running python-black version black-22.8.0-2.fc38.noarch: $ black . The result is the same as $ ( git grep -l '#!.*\(PYTHON\|python\)' ; git ls-files '*.py' '*.py.in' ) \ | sort -u \ | xargs -d '\n' black Note that the exact result depends on the version of black. Currently that version is black==22.12.0 from pip. Yes, this means when we bump the version in the future, some reformatting will happen. [1] https://github.com/psf/black
* build: merge python/Makefile.am into top-level makefileThomas Haller2017-02-271-8/+0
|
* python: Include all files in distributionThomas Graf2013-11-061-0/+8
| | | | Signed-off-by: Thomas Graf <tgraf@suug.ch>
* python interface to netlink protocolsThomas Graf2011-05-105-0/+505
currently includes experimental support for links, addresses and some traffic control