Skip to content

Commit

Permalink
Type Hinting Fixes - Part 1 (#827)
Browse files Browse the repository at this point in the history
* better linting, by creating a proper .editorconfig & pylintrc
* major drop of linting errors, from 786 errors to 145
* using Py3.6 `__init_subclass__` allows to remove the use of `abc` and `@register_architecture`
* using `__init_subclass__` to create base class for commands
* using `__init_subclass__` to create base class for functions
  • Loading branch information
hugsy committed May 22, 2022
1 parent e50af77 commit 7f45550
Show file tree
Hide file tree
Showing 4 changed files with 1,192 additions and 364 deletions.
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties

root = true

[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.py]
indent_style = space
indent_size = 4

[Makefile]
indent_style = tab

[*.yml]
indent_style = space
indent_size = 2
Loading

0 comments on commit 7f45550

Please sign in to comment.