Skip to content

Commit

Permalink
precommit: add default hooks & fix codecov config
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Feb 2, 2024
1 parent eea7a24 commit da534ea
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 22 deletions.
14 changes: 7 additions & 7 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
- "cachier/scripts"
27 changes: 13 additions & 14 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ pymongo-inmemory
pandas
# to be able to run `python setup.py checkdocs`
collective.checkdocs
pygments
pygments

0 comments on commit da534ea

Please sign in to comment.