About 50 results
Open links in new tab
  1. Common coding style for Python? - Stack Overflow

    May 12, 2010 · I'm pretty new to Python, and I want to develop my first serious open source project. I want to ask what is the common coding style for python projects. I'll put also what I'm doing right …

  2. How do you display code snippets in MS Word preserving format and ...

    Dec 23, 2008 · It has Online Addin called "Code Format" . Install that Office Addin and in your word doc you can just select all code (even multiple pages) and click convert it button from the Code Format …

  3. coding style - What are the most common Python docstring formats ...

    The Google style guide contains an excellent Python style guide. It includes conventions for readable docstring syntax that offers better guidance than PEP-257. For example:

  4. What is the naming convention in Python for variables and functions ...

    As the Style Guide for Python Code admits, The naming conventions of Python's library are a bit of a mess, so we'll never get this completely consistent Note that this refers just to Python's standard …

  5. How do I autoformat some Python code to be correctly formatted?

    I have some existing code which isn't formatted consistently -- sometimes two spaces are used for indent, sometimes four, and so on. The code itself is correct and well-tested, but the formatting is …

  6. Correct style for line breaks when chaining methods in Python

    Oct 30, 2011 · In Python code, it is permissible to break before or after a binary operator, as long as the convention is consistent locally. For new code Knuth's style is suggested.

  7. python - Global variables and coding style recommendations - Stack …

    Mar 20, 2013 · Your code doesn't really do anything, so I guess it's fine! With regards to styling your code, refer to PEP 8 whenever you're in doubt. Global Variables Constants With no more information …

  8. How to make pylint, flake8 or pycodestyle to automatically correct ...

    Feb 23, 2019 · AFAIK, none of those linting tools will fix the style issues they identify. However, there are several code formatting tools that will automatically fix many of the style errors that were flagged. …

  9. python - pycodestyle (ex pep8) vs pylint strictness - Stack Overflow

    Jul 29, 2019 · Pycodestyle (Formerly PEP8) is the official linter tool to check the python code against the style conventions of PEP8 python. Pylint is a python linter which checks the source code and also …

  10. python - How to get PyCharm to check PEP8 code style? - Stack Overflow

    Jun 17, 2013 · I'm using PyCharm (v 2.7.2) to develop a Django app, but I can't get it to check PEP8 style violations. I have enabled "PEP8 coding style violation" in the "Inspctions" section of the …