Commit Graph

9 Commits

Author SHA1 Message Date
Campbell Barton 64a5f4ee5a editorconfig: add HTML entry
While there aren't many HTML files, use consistent formatting
with 2 space indentation & 99 columns.
2023-12-08 13:28:13 +11:00
Campbell Barton 30acc5f9cd pyproject: add configuration for autopep8
This adds pyproject.toml, needed to configure defaults for autopep8.

The file is auto-discovered in a similar way to .clang-format, other
tools could be configured here too. For now just configure autopep8 so
this can be enabled in IDE's without causing unexpected edits such as
wrapping lines over 80 columns in width.

Now autopep8 can be used from the root directory by running: autopep8 .

This uses multiple-jobs to run autopep8 over all Python scripts except
paths that are explicitly ignored in exclude defined by pyproject.toml.

Reviewed By: mont29, brecht, sybren

Ref D14686
2022-04-22 10:13:39 +10:00
Campbell Barton 58761eb11a GNUmakefile: move editor settings to .editorconfig
Remove inline vim/emacs editor configuration,
add makefile to editorconfig instead.
2022-02-10 09:20:34 +11:00
Campbell Barton f73255c1be editorconfig: correct indent size 2019-04-17 13:34:46 +02:00
Campbell Barton b3dabc200a editorconfig: update for new clang-format config 2019-04-17 06:12:55 +02:00
Campbell Barton f0c6f5ee77 editorconfig: correct C/C++ using space 2018-06-19 07:48:12 +02:00
Campbell Barton ab59f9e65d editorconfig: add rst 2018-06-18 18:53:49 +02:00
Campbell Barton b7b7468bef editorconfig: add line length, glsl 2018-06-18 18:21:35 +02:00
Campbell Barton ce7c87fbda Add .editorconfig file
This is a fairly well supported file-type configuration
for indentation and trailing space stripping.

See editorconfig.org for details.
2018-06-18 18:09:45 +02:00