-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.cfg
117 lines (94 loc) · 2.83 KB
/
setup.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# This file is part of the Provider API Example.
#
# Copyright (C) 2023 Serghei Iakovlev <[email protected]>
#
# For the full copyright and license information, please view
# the LICENSE file that was distributed with this source code.
# Project-wide configuration file, can be used for package metadata and other
# tool configurations.
[metadata]
license_files = LICENSE
description_file = README.rst
long_description_content_type = text/x-rst
[tool:pytest]
addopts =
--verbose
--doctest-modules
--durations=25
-m "not contracts"
--color=no
markers =
contracts: marks tests as contracts (deselect with '-m "not contracts"')
serial
[pylint.BASIC]
# Good variable names which should always be accepted, separated by a comma.
good-names = i,j,k,n,ex,rv,p,Run,_
[pylint.MAIN]
# Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
# number of processors available to use.
jobs = 0
[pylint.LOGGING]
# The type of string formatting that logging methods do.
# 'old' means using % formatting, 'new' is for '{}' formatting.
logging-format-style = new
[pylint.'MESSAGES CONTROL']
# Disable the message, report, category or checker with the given id(s).
disable =
not-callable,
wrong-import-position,
import-outside-toplevel,
too-few-public-methods,
missing-class-docstring,
missing-function-docstring,
[flake8]
# Set the maximum allowed length for a line of code
max-line-length = 79
# Set the maximum allowed cyclomatic complexity for a function or method
max-complexity = 10
# When set to True, this option instructs Flake8 to display a summary of
# warnings and errors grouped by type at the end of its output.
statistics = True
# When set to True, this option causes Flake8 to display the offending line
# of code for each warning or error, providing better context for understanding
# and fixing the issues.
show-source = True
# List of files and directories to exclude from linting
exclude =
.eggs,
.git,
.pytest_cache,
.venv,
__pycache__,
build,
dist
# List of modules to be considered as local
application-import-names =
provider,
tests
# Set the import order style to follow Smarkets' style
import-order-style = smarkets
[coverage:report]
# Set the number of decimal places in coverage percentage
precision = 2
# Show lines that were not executed
show_missing = True
[coverage:html]
# Directory for the HTML format report
directory = htmlcov
[coverage:xml]
# Filename for the XML format report
output = coverage.xml
[coverage:run]
# Enable branch coverage (default: False)
branch = True
# Run tests in parallel (useful when using CI/CD)
parallel = True
# Filename for storing coverage data
data_file = coverage.db
# Omit specified files or directories from the report
omit =
*/.venv/*
*/__pycache__/*
*/migrations/*
*/site-packages/*
*/tests/*