8 Star 26 Fork 9

Gitee 极速下载/opencti

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/OpenCTI-Platform/opencti
克隆/下载
.pre-commit-config.yaml 2.41 KB
一键复制 编辑 原始数据 按行查看 历史
---
repos:
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
args:
- "--profile"
- "black"
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
# - repo: https://github.com/adrienverge/yamllint
# rev: v1.31.0
# hooks:
# - id: yamllint
- repo: https://github.com/pre-commit/mirrors-eslint
rev: 'ec8e518' # Use the sha / tag you want to point at ec8e518 == 8.41.0
hooks:
- id: eslint
additional_dependencies:
- eslint@8.41.0
- eslint-plugin-jsx-a11y@6.7.1
- eslint-plugin-react@7.32.2
- eslint-plugin-react-hooks@4.6.0
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
types: [file]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-ast
- id: check-json
- id: check-toml
- id: check-xml
- id: check-yaml
# Excludes added so you can run against all files versus only changed files in your commit and not impact
# files which you do not control or are not essential to be linted:
# pre-commit run --all-files
- id: end-of-file-fixer
exclude: |
(?x)^(
.circleci/(.*)|
.devcontainer/(.*)|
.github/(.*)|
yarn.lock|
LICENSE|
(.*)/requirements.txt|
opencti-platform/.dockerignore|
opencti-platform/opencti-graphql/static/(.*)|
opencti-platform/opencti-front/src/static/(.*)|
opencti-platform/opencti-front/packages/(.*)
)$
- id: requirements-txt-fixer
# Excludes added so you can run against all files versus only changed files in your commit and not impact
# files which you do not control or are not essential to be linted:
# pre-commit run --all-files
- id: trailing-whitespace
exclude: |
(?x)^(
.circleci/config.yml|
.devcontainer/(.*)|
.github/(.*)|
yarn.lock|
LICENSE|
(.*)/requirements.txt|
opencti-platform/.dockerignore|
opencti-platform/opencti-graphql/static/(.*)|
opencti-platform/opencti-front/src/static/(.*)|
opencti-platform/opencti-front/packages/(.*)
)$
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/mirrors/opencti.git
git@gitee.com:mirrors/opencti.git
mirrors
opencti
opencti
master

搜索帮助