Delete .pre-commit-config.yaml (#12578)
* Delete .pre-commit-config.yaml Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> * Delete setup.cfg Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> --------- Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
1 parent
dfa884f9db
commit
c42aba5b2f
2 files changed
-129
No files matched your search
@@ -1,73 +0,0 @@
|
|||||||
# Ultralytics YOLO 🚀, AGPL-3.0 license
|
|
||||||
# Pre-commit hooks. For more information see https://github.com/pre-commit/pre-commit-hooks/blob/main/README.md
|
|
||||||
|
|
||||||
exclude: 'docs/'
|
|
||||||
# Define bot property if installed via https://github.com/marketplace/pre-commit-ci
|
|
||||||
ci:
|
|
||||||
autofix_prs: true
|
|
||||||
autoupdate_commit_msg: '[pre-commit.ci] pre-commit suggestions'
|
|
||||||
autoupdate_schedule: monthly
|
|
||||||
# submodules: true
|
|
||||||
|
|
||||||
repos:
|
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
||||||
rev: v4.5.0
|
|
||||||
hooks:
|
|
||||||
- id: end-of-file-fixer
|
|
||||||
- id: trailing-whitespace
|
|
||||||
- id: check-case-conflict
|
|
||||||
# - id: check-yaml
|
|
||||||
- id: check-docstring-first
|
|
||||||
- id: double-quote-string-fixer
|
|
||||||
- id: detect-private-key
|
|
||||||
|
|
||||||
- repo: https://github.com/asottile/pyupgrade
|
|
||||||
rev: v3.15.0
|
|
||||||
hooks:
|
|
||||||
- id: pyupgrade
|
|
||||||
name: Upgrade code
|
|
||||||
|
|
||||||
- repo: https://github.com/PyCQA/isort
|
|
||||||
rev: 5.12.0
|
|
||||||
hooks:
|
|
||||||
- id: isort
|
|
||||||
name: Sort imports
|
|
||||||
|
|
||||||
- repo: https://github.com/google/yapf
|
|
||||||
rev: v0.40.2
|
|
||||||
hooks:
|
|
||||||
- id: yapf
|
|
||||||
name: YAPF formatting
|
|
||||||
|
|
||||||
- repo: https://github.com/executablebooks/mdformat
|
|
||||||
rev: 0.7.17
|
|
||||||
hooks:
|
|
||||||
- id: mdformat
|
|
||||||
name: MD formatting
|
|
||||||
additional_dependencies:
|
|
||||||
- mdformat-gfm
|
|
||||||
- mdformat-black
|
|
||||||
# exclude: "README.md|README.zh-CN.md|CONTRIBUTING.md"
|
|
||||||
|
|
||||||
- repo: https://github.com/PyCQA/flake8
|
|
||||||
rev: 6.1.0
|
|
||||||
hooks:
|
|
||||||
- id: flake8
|
|
||||||
name: PEP8
|
|
||||||
|
|
||||||
- repo: https://github.com/codespell-project/codespell
|
|
||||||
rev: v2.2.6
|
|
||||||
hooks:
|
|
||||||
- id: codespell
|
|
||||||
args:
|
|
||||||
- --ignore-words-list=crate,nd,strack,dota
|
|
||||||
|
|
||||||
# - repo: https://github.com/asottile/yesqa
|
|
||||||
# rev: v1.4.0
|
|
||||||
# hooks:
|
|
||||||
# - id: yesqa
|
|
||||||
|
|
||||||
# - repo: https://github.com/asottile/dead
|
|
||||||
# rev: v1.5.0
|
|
||||||
# hooks:
|
|
||||||
# - id: dead
|
|
||||||
@@ -1,56 +0,0 @@
|
|||||||
# Project-wide configuration file, can be used for package metadata and other toll configurations
|
|
||||||
# Example usage: global configuration for PEP8 (via flake8) setting or default pytest arguments
|
|
||||||
# Local usage: pip install pre-commit, pre-commit run --all-files
|
|
||||||
|
|
||||||
[metadata]
|
|
||||||
license_files = LICENSE
|
|
||||||
description_file = README.md
|
|
||||||
|
|
||||||
[tool:pytest]
|
|
||||||
norecursedirs =
|
|
||||||
.git
|
|
||||||
dist
|
|
||||||
build
|
|
||||||
addopts =
|
|
||||||
--doctest-modules
|
|
||||||
--durations=25
|
|
||||||
--color=yes
|
|
||||||
|
|
||||||
[flake8]
|
|
||||||
max-line-length = 120
|
|
||||||
exclude = .tox,*.egg,build,temp
|
|
||||||
select = E,W,F
|
|
||||||
doctests = True
|
|
||||||
verbose = 2
|
|
||||||
# https://pep8.readthedocs.io/en/latest/intro.html#error-codes
|
|
||||||
format = pylint
|
|
||||||
# see: https://www.flake8rules.com/
|
|
||||||
ignore = E731,F405,E402,W504,E501
|
|
||||||
# E731: Do not assign a lambda expression, use a def
|
|
||||||
# F405: name may be undefined, or defined from star imports: module
|
|
||||||
# E402: module level import not at top of file
|
|
||||||
# W504: line break after binary operator
|
|
||||||
# E501: line too long
|
|
||||||
# removed:
|
|
||||||
# F401: module imported but unused
|
|
||||||
# E231: missing whitespace after ‘,’, ‘;’, or ‘:’
|
|
||||||
# E127: continuation line over-indented for visual indent
|
|
||||||
# F403: ‘from module import *’ used; unable to detect undefined names
|
|
||||||
|
|
||||||
|
|
||||||
[isort]
|
|
||||||
# https://pycqa.github.io/isort/docs/configuration/options.html
|
|
||||||
line_length = 120
|
|
||||||
# see: https://pycqa.github.io/isort/docs/configuration/multi_line_output_modes.html
|
|
||||||
multi_line_output = 0
|
|
||||||
|
|
||||||
[yapf]
|
|
||||||
based_on_style = pep8
|
|
||||||
spaces_before_comment = 2
|
|
||||||
COLUMN_LIMIT = 120
|
|
||||||
COALESCE_BRACKETS = True
|
|
||||||
SPACES_AROUND_POWER_OPERATOR = True
|
|
||||||
SPACE_BETWEEN_ENDING_COMMA_AND_CLOSING_BRACKET = True
|
|
||||||
SPLIT_BEFORE_CLOSING_BRACKET = False
|
|
||||||
SPLIT_BEFORE_FIRST_ARGUMENT = False
|
|
||||||
# EACH_DICT_ENTRY_ON_SEPARATE_LINE = False
|
|
||||||
Reference in new issue
Block a user