Loading .editorconfig +1 −0 Original line number Diff line number Diff line Loading @@ -8,3 +8,4 @@ indent_style = tab [*.{yml,yaml}] indent_style = space indent_size = 2 .gitlint 0 → 100644 +7 −0 Original line number Diff line number Diff line [general] ignore=body-trailing-whitespace,body-is-missing [author-valid-email] regex=.*@[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9](\.[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9])+ # vim:ft=cfg .pre-commit-config.yaml +37 −8 Original line number Diff line number Diff line default_stages: [commit] repos: - repo: meta Loading @@ -5,34 +6,64 @@ repos: - id: check-hooks-apply - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.3.0 rev: v3.4.0 hooks: - id: check-added-large-files - id: check-byte-order-marker - id: check-case-conflict - id: check-docstring-first - id: check-merge-conflict - id: check-toml - id: check-yaml - id: debug-statements - id: destroyed-symlinks - id: end-of-file-fixer - id: fix-byte-order-marker - id: fix-encoding-pragma args: [--remove] - id: mixed-line-ending args: [--fix=lf] - id: trailing-whitespace exclude_types: [markdown, plain-text] - repo: https://github.com/jorisroovers/gitlint rev: v0.15.0 hooks: - id: gitlint - repo: https://code.kodo.org.uk/dom/pre-commit-hooks rev: v0.6 hooks: - id: check-executable-modes - id: check-for-squash - id: copyright-notice args: [--min-size=1] exclude: setup\.py - id: protect-first-parent - repo: https://github.com/pre-commit/pygrep-hooks rev: v1.5.1 rev: v1.8.0 hooks: - id: python-no-eval - id: python-no-log-warn - id: python-use-type-annotations - repo: https://github.com/hakancelik96/unimport rev: v0.2.7 rev: 0.8.4 hooks: - id: unimport args: [--remove, --exclude=__init__.py] args: [--remove, --exclude=types.py|__init__.py] - repo: https://github.com/timothycrosley/isort rev: 4.3.21-2 rev: 5.7.0 hooks: - id: isort types: [python] - repo: https://github.com/asottile/add-trailing-comma rev: v2.1.0 hooks: - id: add-trailing-comma args: [--py36-plus] - repo: https://gitlab.com/pycqa/flake8 rev: 3.8.3 Loading @@ -40,8 +71,6 @@ repos: - id: flake8 args: ["--config=setup.cfg"] additional_dependencies: - flake8-commas - flake8-copyright - flake8-bugbear - flake8-docstrings - flake8-print Loading pyproject.toml 0 → 100644 +9 −0 Original line number Diff line number Diff line [build-system] requires = ["setuptools>=40.8.0", "wheel"] build-backend = "setuptools.build_meta:__legacy__" [tool.isort] force_single_line = true [tool.unimport] ignore-init = true setup.cfg +3 −11 Original line number Diff line number Diff line Loading @@ -42,12 +42,9 @@ test = coverage <5 mocket[speedups] nose2[coverage_plugin] dev = %(test)s pre-commit [unittest] start-dir = tests start-dir = tests/unit verbose = True plugins = nose2.plugins.junitxml Loading Loading @@ -93,19 +90,14 @@ force_single_line = true [flake8] max-line-length = 92 max-doc-length = 92 copyright-check = true copyright-min-file-size = 200 use-flake8-tabs = true blank-lines-indent = never indent-tabs-def = 1 format = pylint select = C,D,E,ET,F,SFS,T,W,WT ; Speedup by pruning potentially large trees that will have nothing of interest ; in them. exclude = __pycache__ .* extend-exclude = setup.py per-file-ignores = setup.py: D100, E702 Loading Loading
.editorconfig +1 −0 Original line number Diff line number Diff line Loading @@ -8,3 +8,4 @@ indent_style = tab [*.{yml,yaml}] indent_style = space indent_size = 2
.gitlint 0 → 100644 +7 −0 Original line number Diff line number Diff line [general] ignore=body-trailing-whitespace,body-is-missing [author-valid-email] regex=.*@[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9](\.[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9])+ # vim:ft=cfg
.pre-commit-config.yaml +37 −8 Original line number Diff line number Diff line default_stages: [commit] repos: - repo: meta Loading @@ -5,34 +6,64 @@ repos: - id: check-hooks-apply - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.3.0 rev: v3.4.0 hooks: - id: check-added-large-files - id: check-byte-order-marker - id: check-case-conflict - id: check-docstring-first - id: check-merge-conflict - id: check-toml - id: check-yaml - id: debug-statements - id: destroyed-symlinks - id: end-of-file-fixer - id: fix-byte-order-marker - id: fix-encoding-pragma args: [--remove] - id: mixed-line-ending args: [--fix=lf] - id: trailing-whitespace exclude_types: [markdown, plain-text] - repo: https://github.com/jorisroovers/gitlint rev: v0.15.0 hooks: - id: gitlint - repo: https://code.kodo.org.uk/dom/pre-commit-hooks rev: v0.6 hooks: - id: check-executable-modes - id: check-for-squash - id: copyright-notice args: [--min-size=1] exclude: setup\.py - id: protect-first-parent - repo: https://github.com/pre-commit/pygrep-hooks rev: v1.5.1 rev: v1.8.0 hooks: - id: python-no-eval - id: python-no-log-warn - id: python-use-type-annotations - repo: https://github.com/hakancelik96/unimport rev: v0.2.7 rev: 0.8.4 hooks: - id: unimport args: [--remove, --exclude=__init__.py] args: [--remove, --exclude=types.py|__init__.py] - repo: https://github.com/timothycrosley/isort rev: 4.3.21-2 rev: 5.7.0 hooks: - id: isort types: [python] - repo: https://github.com/asottile/add-trailing-comma rev: v2.1.0 hooks: - id: add-trailing-comma args: [--py36-plus] - repo: https://gitlab.com/pycqa/flake8 rev: 3.8.3 Loading @@ -40,8 +71,6 @@ repos: - id: flake8 args: ["--config=setup.cfg"] additional_dependencies: - flake8-commas - flake8-copyright - flake8-bugbear - flake8-docstrings - flake8-print Loading
pyproject.toml 0 → 100644 +9 −0 Original line number Diff line number Diff line [build-system] requires = ["setuptools>=40.8.0", "wheel"] build-backend = "setuptools.build_meta:__legacy__" [tool.isort] force_single_line = true [tool.unimport] ignore-init = true
setup.cfg +3 −11 Original line number Diff line number Diff line Loading @@ -42,12 +42,9 @@ test = coverage <5 mocket[speedups] nose2[coverage_plugin] dev = %(test)s pre-commit [unittest] start-dir = tests start-dir = tests/unit verbose = True plugins = nose2.plugins.junitxml Loading Loading @@ -93,19 +90,14 @@ force_single_line = true [flake8] max-line-length = 92 max-doc-length = 92 copyright-check = true copyright-min-file-size = 200 use-flake8-tabs = true blank-lines-indent = never indent-tabs-def = 1 format = pylint select = C,D,E,ET,F,SFS,T,W,WT ; Speedup by pruning potentially large trees that will have nothing of interest ; in them. exclude = __pycache__ .* extend-exclude = setup.py per-file-ignores = setup.py: D100, E702 Loading