edwardvmills / Silk

NURBS Surface modeling tools focused on low degree and seam continuity (FreeCAD Workbench)
https://edwardvmills.github.io/Silk/
62 stars 11 forks source link

Code formatting #2

Open PrzemoF opened 7 years ago

PrzemoF commented 7 years ago

Please consider using python code auto formatting tools, like autopep8 [1]. [1] https://pypi.python.org/pypi/autopep8

edwardvmills commented 7 years ago

that looks really convenient....but time spent learning new tools is time not spent making new functionality. i have to walk a fine line. i'll definitely look into it, but no promises as far as implementation :)

PrzemoF commented 7 years ago

I call it "sharpening the tools" :-) If it looks interesting I'll prepare a demo fork and you'll be able to pull the changes easily.

PEP8 uses spaces instead of tabs - is it OK for you?

P.S. All it takes is (on linux): find . -name "*.py" | xarg -I [] autopep8 -i [] which means: find all python files in the project directory and call autopep8-in-place for every single one.

edwardvmills commented 7 years ago

is it available on windows? i use Notepad++ and i was hoping to see an option to do that. i'm concerned about relying on tools i don't have easy access to.

PrzemoF commented 7 years ago

Looks like it is, but I don't use windows for writing code (vim+syntastic+pathogen+autopep8 is my setup and it all happens in the background after a proper setup) Take a look here for notepad++ "plugin" : https://gist.github.com/kmonsoor/11374912

luzpaz commented 6 years ago

@edwardvmills i think this is a good idea. It makes reading code easier if you want others to collaborate, IMHO.
ref: https://github.com/edwardvmills/Silk/pull/6

luzpaz commented 4 years ago

PR to add LGTM badges #15