-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
175 lines (159 loc) · 5.47 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
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.8", "poetry-core>=1.0.8", "poetry-core>=1.1.0"]
[tool.black]
line-length = 120
[tool.commitizen]
# https://commitizen-tools.github.io/commitizen/changelog/#configuration
changelog_file = "docs/CHANGELOG.md"
changelog_incremental = true
major_version_zero = true
name = "cz_conventional_commits"
tag_format = "v$version"
update_changelog_on_bump = true
version = "0.7.0"
# https://commitizen-tools.github.io/commitizen/bump/#configuration
version_files = [
"pyproject.toml:^version",
]
[tool.nitpick]
ignore_styles = [
"py://nitpick/resources/any/commitlint",
"py://nitpick/resources/any/git-legal",
"py://nitpick/resources/javascript/package-json",
"py://nitpick/resources/python/310",
"py://nitpick/resources/python/311",
"py://nitpick/resources/python/312",
"py://nitpick/resources/python/38",
"py://nitpick/resources/python/autoflake",
"py://nitpick/resources/python/bandit",
"py://nitpick/resources/python/flake8",
"py://nitpick/resources/python/github-workflow",
"py://nitpick/resources/python/isort",
"py://nitpick/resources/python/pylint",
"py://nitpick/resources/python/radon",
"py://nitpick/resources/python/sonar-python",
"py://nitpick/resources/python/tox",
]
# nitpick-start (auto-generated by "nitpick init --suggest" 0.34.0)
# Styles added to the Nitpick Style Library will be appended to the end of the 'style' key.
# If you don't want a style, move it to the 'ignore_styles' key.
# nitpick-end
style = [
"py://nitpick/resources/any/codeclimate",
"py://nitpick/resources/any/commitizen",
"py://nitpick/resources/any/editorconfig",
"py://nitpick/resources/any/pre-commit-hooks",
"py://nitpick/resources/any/prettier",
"py://nitpick/resources/markdown/markdownlint",
"py://nitpick/resources/python/39",
"py://nitpick/resources/python/absent",
"py://nitpick/resources/python/black",
"py://nitpick/resources/python/ipython",
"py://nitpick/resources/python/mypy",
"py://nitpick/resources/python/poetry",
"py://nitpick/resources/python/poetry-editable",
"py://nitpick/resources/python/poetry-venv",
"py://nitpick/resources/python/pre-commit-hooks",
"py://nitpick/resources/python/readthedocs",
"py://nitpick/resources/shell/bashate",
"py://nitpick/resources/shell/shellcheck",
"py://nitpick/resources/shell/shfmt",
"py://nitpick/resources/toml/toml-sort",
]
[tool.poetry]
authors = ["W. Augusto Andreoli <[email protected]>"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Topic :: Software Development",
]
description = "🐍🤖 Reusable global Invoke tasks that can be merged with local project tasks"
documentation = "https://andreoliwa.github.io/conjuring/"
keywords = ["automation", "cli", "invoke", "python", "tasks"]
license = "MIT"
name = "conjuring"
readme = "docs/README.md"
repository = "https://github.com/andreoliwa/conjuring"
version = "0.7.0"
[tool.poetry.dependencies]
humanize = "*"
invoke = "*"
iterfzf = "*"
more-itertools = "*"
packaging = "*"
python = "^3.9"
requests = "*"
ruamel-yaml = "*"
tomlkit = "*"
tqdm = "*"
typer = "*"
[tool.poetry.dependencies.pylint]
optional = true
version = "*"
[tool.poetry.dev-dependencies]
ipdb = "*"
ipython = "*"
[tool.poetry.extras]
lint = ["pylint"]
[tool.poetry.group.dev.dependencies]
pytest = "*"
pytest-cov = "*"
pytest-datadir = "*"
pytest-mock = "*"
[tool.poetry.scripts]
conjuring = "conjuring.cli:app"
[tool.ruff]
fix = true
# https://docs.astral.sh/ruff/settings/#line-length
line-length = 120
# https://docs.astral.sh/ruff/settings/#show-fixes
show-fixes = true
# https://docs.astral.sh/ruff/settings/#src
src = ["src"]
# https://docs.astral.sh/ruff/settings/#target-version
target-version = "py39"
[tool.ruff.lint]
# https://docs.astral.sh/ruff/settings/#ignore
ignore = [
"ANN101", # Missing type annotation for ? in method
"D105", # Missing docstring in magic method
"D107", # Missing docstring in ?
"D203", # 1 blank line required before class docstring
"D213", # Multi-line docstring summary should start at the second line
"ERA", # https://docs.astral.sh/ruff/rules/#eradicate-era
"FBT001", # Boolean positional arg in function definition
"FBT002", # Boolean default value in function definition
"FBT003", # Boolean positional value in function call
"FIX002", # Line contains TO DO, consider resolving the issue
"TD001", # Invalid TO DO tag
"TD002", # Missing author https://docs.astral.sh/ruff/rules/#flake8-todos-td
"TD003", # Missing issue link on the line following this
]
# https://docs.astral.sh/ruff/settings/#select
select = ["ALL"]
# https://docs.astral.sh/ruff/rules/#flake8-quotes-q
[tool.ruff.lint.flake8-quotes]
inline-quotes = "double"
# https://docs.astral.sh/ruff/settings/#per-file-ignores
[tool.ruff.lint.per-file-ignores]
# B008 Do not perform function call ? in argument defaults
# D100 Missing docstring in public module
# D103 Missing docstring in public function
# D104 Missing docstring in public package
# S101 Use of ? detected https://docs.astral.sh/ruff/rules/#flake8-bandit-s
"src/conjuring/cli.py" = ["B008"]
"tests/**" = ["D100", "D103", "D104", "S101"]
# https://docs.astral.sh/ruff/rules/#mccabe-c90
[tool.ruff.mccabe]
# https://docs.astral.sh/ruff/settings/#max-complexity
max-complexity = 10
[tool.tomlsort]
all = true
ignore_case = true
in_place = true
trailing_comma_inline_array = true