-
Notifications
You must be signed in to change notification settings - Fork 9
/
pyproject.toml
177 lines (151 loc) · 4.43 KB
/
pyproject.toml
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
[build-system]
requires = ["setuptools >= 65"]
build-backend = "setuptools.build_meta"
[project]
name = "comma"
description = "Linux Commit Analyzer"
classifiers = [
"Programming Language :: Python :: 3",
"Development Status :: 5 - Production/Stable",
"Topic :: Software Development",
]
dependencies = [
"approxidate",
"gitpython ~= 3.1.31",
"fuzzywuzzy[speedup] ~= 0.18.0",
"sqlalchemy[mssql] ~= 1.4.48",
"openpyxl ~= 3.1.2",
"pydantic ~= 1.10.9",
"ruamel.yaml ~= 0.17.32",
"azure-identity ~= 1.17.1",
]
dynamic = ["version"]
license = {text = "MIT"}
readme = "README.md"
requires-python = ">=3.8"
authors = [
{name = "Ryan Feldman", email = "[email protected]"},
{name = "Abhishek Marathe", email = "[email protected]"},
{name = "Andrew Schwartzmeyer", email = "[email protected]"},
]
[project.scripts]
comma = "comma.cli:main"
[project.optional-dependencies]
flake8 = [
"flake8 ~= 6.0.0",
"flake8-black ~= 0.3.6",
"flake8-bugbear ~= 23.3.23",
"flake8-isort ~= 6.0.0",
"Flake8-pyproject",
]
black = [
"black ~= 23.3.0",
]
isort = [
"isort ~= 5.12.0",
]
pylint = [
"pylint[spelling]",
"pylint-pydantic",
]
[project.urls]
homepage = "https://github.com/microsoft/Linux-CommA"
[tool.black]
line-length = 100
[tool.flake8]
max-line-length = 140 # Enfoced by black and pylint, only for extremely long lines
extend-exclude = [
"build",
"Repos",
".venv",
]
[tool.isort]
force_grid_wrap = 0
include_trailing_comma = true
line_length = 100
lines_after_imports = 2
multi_line_output = 3
py_version=38
skip_gitignore = true
use_parentheses = true
[tool.pylint.basic]
# Good variable names which should always be accepted, separated by a comma.
good-names = ["e", "_"]
[tool.pylint.format]
# Regexp for a line that is allowed to be longer than the limit.
# URLs and pure strings, or since argument assignments to pure strings
ignore-long-lines = "^\\s*(# )?<?https?://\\S+>?$|^\\s*([^=]+=)?[f|r]?b?[\\\"\\'\\`].+[\\\"\\'\\`],?$"
[tool.pylint.design]
# Minimum number of public methods for a class (see R0903).
min-public-methods = 1
[tool.pylint."messages control"]
enable = [
"bad-inline-option",
"c-extension-no-member",
"deprecated-pragma",
"file-ignored",
"use-symbolic-message-instead",
"useless-suppression",
]
[tool.pylint.main]
# List of plugins (as comma separated values of python module names) to load,
# usually to register additional checkers.
load-plugins = [
"pylint.extensions.bad_builtin",
"pylint.extensions.check_elif",
"pylint.extensions.comparetozero",
"pylint.extensions.comparison_placement",
"pylint.extensions.consider_refactoring_into_while_condition",
"pylint.extensions.dict_init_mutate",
"pylint.extensions.dunder",
"pylint.extensions.empty_comment",
"pylint.extensions.emptystring",
"pylint.extensions.for_any_all",
"pylint.extensions.no_self_use",
"pylint.extensions.overlapping_exceptions",
"pylint.extensions.private_import",
"pylint.extensions.redefined_loop_name",
"pylint.extensions.redefined_variable_type",
"pylint.extensions.set_membership",
"pylint_pydantic",
]
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code.
extension-pkg-allow-list= ["pydantic"]
# Minimum Python version to use for version dependent checks. Will default to the
# version used to run pylint.
py-version = "3.8"
[tool.pylint.miscellaneous]
# List of note tags to take in consideration, separated by a comma
# See https://github.com/pylint-dev/pylint/issues/8734
notes=["SomethingThatWillNotBeFound"]
# Regular expression of note tags to take in consideration.
notes-rgx="TODO(?! \\(Issue \\d+\\))"
[tool.pylint.reports]
output-format = "colorized"
[tool.pylint.spelling]
# Spelling dictionary name
spelling-dict = "en_US"
# List of comma separated words that should not be checked.
spelling-ignore-words = [
"CLI", "commit's", "ctags",
"distro", "distros",
"HyperV",
"iterable", "isort",
"monitoringSubject",
"namespace", "Nox",
"ORM", "openpyxl",
"parsers", "PatchData", "preprocessing",
"repo", "repos",
"setuptools", "SHA", "subclassed", "subcommand", "subcommands", "subparsers",
"unshallow", "untracked",
"virtualenv",
]
[tool.setuptools.packages.find]
include = ["comma*"]
namespaces = false
[tool.setuptools.dynamic]
version = {attr = "comma.__version__"}