From 24cc8b9f2fb869333ded9a511c6ad48635c02067 Mon Sep 17 00:00:00 2001 From: Alex Manning Date: Tue, 18 Oct 2022 12:00:52 +0100 Subject: [PATCH] Updates to config files. --- home/.config/flake8 | 7 ++++--- home/.config/mypy/config | 2 +- home/.config/pylintrc | 2 +- home/.gitconfig | 3 +++ home/.vimrc.d/dev-environ.vim | 1 - private | 2 +- 6 files changed, 10 insertions(+), 7 deletions(-) diff --git a/home/.config/flake8 b/home/.config/flake8 index aa37975..c1754a7 100644 --- a/home/.config/flake8 +++ b/home/.config/flake8 @@ -1,7 +1,8 @@ [flake8] -ignore = E203, E266, E501, W503, B950 +ignore = E203, E266, E501, W503, B950, D105, D106, D107 # line length is intentionally set to 80 here because black uses Bugbear # See https://github.com/psf/black/blob/master/README.md#line-length for more details -max-line-length = 80 +max-line-length = 100 max-complexity = 18 -select = B,C,E,F,W,T4,B9 +select = B,C,E,F,W,T4,B9,D +docstring-convention = pep257 diff --git a/home/.config/mypy/config b/home/.config/mypy/config index 98ef8d6..ac01c4f 100644 --- a/home/.config/mypy/config +++ b/home/.config/mypy/config @@ -1,3 +1,3 @@ [mypy] -strict = True ignore_missing_imports = True +install_types = True diff --git a/home/.config/pylintrc b/home/.config/pylintrc index 0b7a185..db4d3e6 100644 --- a/home/.config/pylintrc +++ b/home/.config/pylintrc @@ -140,7 +140,7 @@ confidence= # exception-escape, # comprehension-escape -disable=bad-continuation,unused-variable,line-too-long,missing-class-docstring +disable=bad-continuation,unused-variable,line-too-long,missing-class-docstring,missing-function-docstring # Enable the message, report, category or checker with the given id(s). You can # either give multiple identifier separated by comma (,) or put this option diff --git a/home/.gitconfig b/home/.gitconfig index ece139f..52e4b23 100644 --- a/home/.gitconfig +++ b/home/.gitconfig @@ -19,3 +19,6 @@ required = true clean = git-lfs clean -- %f smudge = git-lfs smudge -- %f + +[core] + hooksPath = ~/.alex-environ/private/home/git_hooks diff --git a/home/.vimrc.d/dev-environ.vim b/home/.vimrc.d/dev-environ.vim index 331ebdf..23ef2c5 100644 --- a/home/.vimrc.d/dev-environ.vim +++ b/home/.vimrc.d/dev-environ.vim @@ -8,7 +8,6 @@ let g:ale_linters = { \ 'python': [ \ 'pylint', \ 'flake8', - \ 'pydocstyle', \ 'mypy', \ 'bandit', \ ], diff --git a/private b/private index ab124dd..0e34233 160000 --- a/private +++ b/private @@ -1 +1 @@ -Subproject commit ab124dd38b5878f771e5e8deaeb663a363268a40 +Subproject commit 0e34233ad56224b2096022a2c8b0f4b4bd87d2d0