Upload setup.cfg
Browse files
setup.cfg
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Project-wide configuration file, can be used for package metadata and other toll configurations
|
2 |
+
# Example usage: global configuration for PEP8 (via flake8) setting or default pytest arguments
|
3 |
+
# Local usage: pip install pre-commit, pre-commit run --all-files
|
4 |
+
|
5 |
+
[metadata]
|
6 |
+
license_files = LICENSE
|
7 |
+
description_file = README.md
|
8 |
+
|
9 |
+
[tool:pytest]
|
10 |
+
norecursedirs =
|
11 |
+
.git
|
12 |
+
dist
|
13 |
+
build
|
14 |
+
addopts =
|
15 |
+
--doctest-modules
|
16 |
+
--durations=30
|
17 |
+
--color=yes
|
18 |
+
|
19 |
+
[coverage:run]
|
20 |
+
source = ultralytics/
|
21 |
+
data_file = tests/.coverage
|
22 |
+
omit =
|
23 |
+
ultralytics/utils/callbacks/*
|
24 |
+
|
25 |
+
[flake8]
|
26 |
+
max-line-length = 120
|
27 |
+
exclude = .tox,*.egg,build,temp
|
28 |
+
select = E,W,F
|
29 |
+
doctests = True
|
30 |
+
verbose = 2
|
31 |
+
# https://pep8.readthedocs.io/en/latest/intro.html#error-codes
|
32 |
+
format = pylint
|
33 |
+
# see: https://www.flake8rules.com/
|
34 |
+
ignore = E731,F405,E402,W504,E501
|
35 |
+
# E731: Do not assign a lambda expression, use a def
|
36 |
+
# F405: name may be undefined, or defined from star imports: module
|
37 |
+
# E402: module level import not at top of file
|
38 |
+
# W504: line break after binary operator
|
39 |
+
# E501: line too long
|
40 |
+
# removed:
|
41 |
+
# F401: module imported but unused
|
42 |
+
# E231: missing whitespace after ‘,’, ‘;’, or ‘:’
|
43 |
+
# E127: continuation line over-indented for visual indent
|
44 |
+
# F403: ‘from module import *’ used; unable to detect undefined names
|
45 |
+
|
46 |
+
|
47 |
+
[isort]
|
48 |
+
# https://pycqa.github.io/isort/docs/configuration/options.html
|
49 |
+
line_length = 120
|
50 |
+
# see: https://pycqa.github.io/isort/docs/configuration/multi_line_output_modes.html
|
51 |
+
multi_line_output = 0
|
52 |
+
|
53 |
+
[yapf]
|
54 |
+
based_on_style = pep8
|
55 |
+
spaces_before_comment = 2
|
56 |
+
COLUMN_LIMIT = 120
|
57 |
+
COALESCE_BRACKETS = True
|
58 |
+
SPACES_AROUND_POWER_OPERATOR = True
|
59 |
+
SPACE_BETWEEN_ENDING_COMMA_AND_CLOSING_BRACKET = True
|
60 |
+
SPLIT_BEFORE_CLOSING_BRACKET = False
|
61 |
+
SPLIT_BEFORE_FIRST_ARGUMENT = False
|
62 |
+
# EACH_DICT_ENTRY_ON_SEPARATE_LINE = False
|
63 |
+
|
64 |
+
[docformatter]
|
65 |
+
wrap-summaries = 120
|
66 |
+
wrap-descriptions = 120
|
67 |
+
in-place = true
|
68 |
+
make-summary-multi-line = false
|
69 |
+
pre-summary-newline = true
|
70 |
+
force-wrap = false
|
71 |
+
close-quotes-on-newline = true
|