Re: Please format python code

2017-06-19 Thread Jason Kenny
In the case of Visual Studio Code, it will just work. No setup needed as the setup.cfg has the rules to use. I believe Emac or Vim ( however you start a format command) should work as well as all that is needed is to run autopep8 under the directory with the setup.cfg in it. Jason  On Monday, J

Re: Please format python code

2017-06-19 Thread Derek Dagit
http://editorconfig.org/ Visual Studio and IntelliJ support this directly, and other editors including VS Code, Vim, and Emacs support it with plugins. Maybe we could standardize on editorconfig and let the plugins do the work? -- Derek On Friday, June 16, 2017, 9:18:34 AM CDT, Jason Kenny

Re: Please format python code

2017-06-16 Thread Jason Kenny
If you are using Visual Studio Code. It should just find the setup.cfg file that controls the formatting. Jason On Thursday, June 15, 2017, 6:21:07 PM CDT, Masaori Koshiba wrote: Hi trafficserver-dev, Now, all python code of ATS are formatted by autopep8 after some discussions on some PRs (#2

Please format python code

2017-06-15 Thread Masaori Koshiba
Hi trafficserver-dev, Now, all python code of ATS are formatted by autopep8 after some discussions on some PRs (#2097 and #2121). So, please run autopep8 before sending PRs include python code. Especially when you're adding tests using autest. Steps are below. 1. Install autopep8 In most cases,