Skip to content

Commit

Permalink
Add detected secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
barseghyanartur committed Aug 27, 2023
1 parent 1cec3f5 commit af24649
Show file tree
Hide file tree
Showing 5 changed files with 581 additions and 0 deletions.
69 changes: 69 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
exclude: "^docs/|/migrations/"
default_stages: [ commit, push ]
default_language_version:
python: python3

repos:

- repo: local
hooks:
- id: detect-secrets
name: Detect secrets
language: python
entry: detect-secrets-hook
args: ['--baseline', '.secrets.baseline']

- id: doc8
name: Doc8 linter
language: python
entry: doc8
args: []

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
exclude: "data/"

- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-added-large-files
- id: debug-statements
- id: check-merge-conflict

- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
name: black
files: .
args: [ "--config", "pyproject.toml" ]

- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort
files: .
args: [ "--settings-path", "pyproject.toml", "--profile=black" ]

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.252
hooks:
- id: ruff
name: lint
files: .
args: [ "--config", "pyproject.toml" ]

# - repo: https://github.com/asottile/pyupgrade
# rev: v3.2.0
# hooks:
# - id: pyupgrade
# args: [ --py310-plus ]
#
# - repo: https://github.com/adamchainz/django-upgrade
# rev: 1.11.0
# hooks:
# - id: django-upgrade
# args: [ --target-version, "3.2" ]
15 changes: 15 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
- id: detect-secrets
name: Detect secrets
description: Detects high entropy strings that are likely to be passwords.
entry: detect-secrets-hook
language: python
# for backward compatibility
files: .*

- id: doc8
name: doc8
description: This hook runs doc8 for linting docs
entry: doc8
language: python
files: \.rst$
require_serial: true

0 comments on commit af24649

Please sign in to comment.