From da534eaed0e0b9108502f5d037c17eb7bcd8d113 Mon Sep 17 00:00:00 2001 From: Jirka Date: Fri, 2 Feb 2024 12:51:23 +0100 Subject: [PATCH] precommit: add default hooks & fix codecov config --- .codecov.yml | 14 +++++++------- .pre-commit-config.yaml | 27 +++++++++++++-------------- tests/requirements.txt | 2 +- 3 files changed, 21 insertions(+), 22 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index f7421fb8..9921a976 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -14,16 +14,16 @@ coverage: project: false comment: - layout: header, changes, diff - behavior: default - require_changes: false - branches: null - flags: null - paths: null + layout: "header, changes, diff" + behavior: default + require_changes: false + branches: null + flags: null + paths: null ignore: - "versioneer.py" - "tests" - "**/_version.py" - "**/__init__.py" - - "cachier/scripts" \ No newline at end of file + - "cachier/scripts" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 46245d5a..06d5f9b3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,20 +8,19 @@ ci: # submodules: true repos: -# todo: let's enable also al these but as separate PR -# - repo: https://github.com/pre-commit/pre-commit-hooks -# rev: v4.5.0 -# hooks: -# - id: end-of-file-fixer -# - id: trailing-whitespace -# - id: check-json -# - id: check-yaml -# - id: check-toml -# - id: check-docstring-first -# - id: check-executables-have-shebangs -# - id: check-case-conflict -# - id: check-added-large-files -# - id: detect-private-key + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.5.0 + hooks: + - id: end-of-file-fixer + - id: trailing-whitespace + - id: check-json + - id: check-yaml + - id: check-toml + - id: check-docstring-first + - id: check-executables-have-shebangs + - id: check-case-conflict + - id: check-added-large-files + - id: detect-private-key # todo: another great hook # - repo: https://github.com/crate-ci/typos diff --git a/tests/requirements.txt b/tests/requirements.txt index 2af89ee7..195b393e 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -12,4 +12,4 @@ pymongo-inmemory pandas # to be able to run `python setup.py checkdocs` collective.checkdocs -pygments \ No newline at end of file +pygments