Skip to content

Commit

Permalink
Tweak pre-commit config and pyproject.toml file + Add flake8 as linte…
Browse files Browse the repository at this point in the history
…r in precommit config
  • Loading branch information
TheophileDiot committed Oct 3, 2023
1 parent 75e8c83 commit 508c728
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,28 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-case-conflict
- id: detect-private-key
- id: end-of-file-fixer
- id: requirements-txt-fixer
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
exclude: ^(mkdocs.yml|examples/bigbluebutton/docker-compose.yml)$
args: ["--allow-multiple-documents"]
- id: check-case-conflict

- repo: https://github.com/ambv/black
rev: 23.9.1
hooks:
- id: black
name: Black Python Formatter
language_version: python3.9

- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8
name: Flake8 Python Linter
args: ["--max-line-length=250", "--ignore=E266,E402,E722,W503"]

- repo: https://github.com/gitleaks/gitleaks
rev: v8.18.0
hooks:
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ authors = [

[tool.black]
py39 = true
line-length = 250
include = '\.pyi?$'
exclude = '''
/(
| \.git
Expand Down

0 comments on commit 508c728

Please sign in to comment.