JeffYang52415 commited on
Commit
6691caf
·
unverified ·
1 Parent(s): f06dec4

chore: update pre-commit config

Browse files
Files changed (1) hide show
  1. .pre-commit-config.yaml +32 -7
.pre-commit-config.yaml CHANGED
@@ -5,7 +5,6 @@ repos:
5
  rev: 23.9.1
6
  hooks:
7
  - id: black
8
- args: ["--target-version=py311"]
9
  additional_dependencies: ["typing-extensions>=4.8.0"]
10
  - repo: https://github.com/PyCQA/flake8
11
  rev: 6.1.0
@@ -23,12 +22,7 @@ repos:
23
  hooks:
24
  - id: mypy
25
  args:
26
- [
27
- "--python-version=3.11",
28
- "--install-types",
29
- "--non-interactive",
30
- "--ignore-missing-imports",
31
- ]
32
  additional_dependencies:
33
  - "typing-extensions>=4.8.0"
34
  - repo: https://github.com/pre-commit/pre-commit-hooks
@@ -83,3 +77,34 @@ repos:
83
  rev: 0.5.0 # use the latest version
84
  hooks:
85
  - id: nbstripout
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  rev: 23.9.1
6
  hooks:
7
  - id: black
 
8
  additional_dependencies: ["typing-extensions>=4.8.0"]
9
  - repo: https://github.com/PyCQA/flake8
10
  rev: 6.1.0
 
22
  hooks:
23
  - id: mypy
24
  args:
25
+ ["--install-types", "--non-interactive", "--ignore-missing-imports"]
 
 
 
 
 
26
  additional_dependencies:
27
  - "typing-extensions>=4.8.0"
28
  - repo: https://github.com/pre-commit/pre-commit-hooks
 
77
  rev: 0.5.0 # use the latest version
78
  hooks:
79
  - id: nbstripout
80
+ - repo: https://github.com/nbQA-dev/nbQA
81
+ rev: 1.7.1
82
+ hooks:
83
+ - id: nbqa-black
84
+ additional_dependencies: [black]
85
+ - id: nbqa-isort
86
+ additional_dependencies: [isort]
87
+ - id: nbqa-flake8
88
+ additional_dependencies: [flake8]
89
+ - repo: https://github.com/asottile/pyupgrade
90
+ rev: v3.15.0
91
+ hooks:
92
+ - id: pyupgrade
93
+ - repo: https://github.com/executablebooks/mdformat
94
+ rev: 0.7.17
95
+ hooks:
96
+ - id: mdformat
97
+ additional_dependencies:
98
+ - mdformat-gfm # GitHub-flavored Markdown
99
+ - mdformat-frontmatter # YAML frontmatter
100
+ - mdformat-footnote
101
+ - repo: https://github.com/shellcheck-py/shellcheck-py
102
+ rev: v0.9.0.6
103
+ hooks:
104
+ - id: shellcheck
105
+ - repo: https://github.com/pycqa/bandit
106
+ rev: 1.7.7
107
+ hooks:
108
+ - id: bandit
109
+ args: ["-c", "pyproject.toml"]
110
+ additional_dependencies: ["bandit[toml]"]