src/Mod/Fem/coding_conventions.md
These coding rules apply to FEM module code only. Other modules or the base system may use different coding rules especially in naming policy of Python.
Be mindful of spelling. Spell checks are quite often neglected.
Utilize codespell to discover and quickly correct spelling errors.
# Find typos
codespell -q 2 -S *.ts -S *.dyn -S *.svg -L childs,dof,dum,freez,methode,nd,normaly,programm,som,uint,vertexes,inout src/Mod/Fem/
# Interactively fix said typos
codespell -i 3 -w -S *.ts -S *.dyn -S *.svg -L childs,dof,dum,freez,methode,nd,normaly,programm,som,uint,vertexes,inout src/Mod/Fem/
Notes:
pip install --upgrade
See the codespell docs for more info.?w=1 in link address to suppress line ending changes on githubfind src/Mod/Fem/ -name "*\.py" | xargs -I [] flake8 --ignore=E266,W503 --max-line-length=100 []
FreeCAD.Console.PrintMessage() or Log or Error should be usedprint() should be used for debugging onlyPython style is preferred over Doxygen style
- see ccx tools module in fem tools package
- see forum topic