Skip to content

Latest commit

 

History

History
26 lines (25 loc) · 963 Bytes

makefile_usage.md

File metadata and controls

26 lines (25 loc) · 963 Bytes

Makefile

Target

flake_find:

make flake_find

find all the python files under ./ktransformers dir and find the Error, Warning, Fatal... (their codes) into a list that are not consistent with the pep8 standard. For now we have get all this list in the .flake8 file's extend-ignore section in order to let flakes8 ignore them temporarily.(we may improve them in the future)

format:

make format

we use black to format all the python files under ./ktransformers dir. It obeys the pep8 standard but we modify the line length to 120 by add

[tool.black]
line-length = 120
preview = true
unstable = true

in the pyproject.toml file.

dev_install:

make dev_install

install the package in the development mode. It means that the package is installed in the editable mode. So if you modify the code, you don't need to reinstall the package. We recommend the developer to use this method to install the package.