-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
180 lines (167 loc) · 6.06 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
178
179
180
[build-system]
build-backend = "maturin"
requires = ["maturin>=1.4,<2.0"]
[project]
# Complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Operating System :: MacOS",
"Operating System :: Unix",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Rust",
"Topic :: Documentation",
"Topic :: Office/Business",
"Topic :: Scientific/Engineering",
"Topic :: Text Processing :: Markup :: Markdown",
]
dependencies = [
'maya',
'mistletoe',
'requests',
'typer[all]',
]
description = "Logseq Doctor: heal your Markdown files"
dynamic = ["version"]
keywords = [
"knowledge-base",
"knowledge-graph",
"logseq",
"logseq-plugin",
"markdown",
]
license = "MIT"
name = "logseq-doctor"
readme = "README.rst"
repository = "https://github.com/andreoliwa/logseq-doctor"
requires-python = ">=3.9"
version = "0.3.0"
[[project.authors]]
email = "[email protected]"
name = "W. Augusto Andreoli"
[project.scripts]
lsd = "logseq_doctor.cli:app"
[project.urls]
"Changelog" = "https://logseq-doctor.readthedocs.io/en/latest/changelog.html"
"Documentation" = "https://logseq-doctor.readthedocs.io/"
"Issue Tracker" = "https://github.com/andreoliwa/logseq-doctor/issues"
"Source Code" = "https://github.com/andreoliwa/logseq-doctor"
[tool.black]
line-length = 120
target-version = ['py39']
# https://www.maturin.rs/config
[tool.maturin]
features = ["pyo3/extension-module"]
manifest-path = "rust/logseq-doctor/Cargo.toml"
module-name = "logseq_doctor.rust_ext"
python-source = "python"
[tool.nitpick]
ignore_styles = [
"py://nitpick/resources/any/commitlint",
"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/39",
"py://nitpick/resources/python/autoflake",
"py://nitpick/resources/python/bandit",
"py://nitpick/resources/python/black",
"py://nitpick/resources/python/flake8",
"py://nitpick/resources/python/github-workflow",
"py://nitpick/resources/python/ipython",
"py://nitpick/resources/python/isort",
"py://nitpick/resources/python/mypy", # TODO:
"py://nitpick/resources/python/poetry",
"py://nitpick/resources/python/poetry-editable",
"py://nitpick/resources/python/poetry-venv",
"py://nitpick/resources/python/pylint",
"py://nitpick/resources/python/tox",
]
# nitpick-start (auto-generated by "nitpick init --suggest" 0.35.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/git-legal",
"py://nitpick/resources/any/pre-commit-hooks",
"py://nitpick/resources/any/prettier",
"py://nitpick/resources/markdown/markdownlint",
"py://nitpick/resources/python/absent",
"py://nitpick/resources/python/pre-commit-hooks",
"py://nitpick/resources/python/radon",
"py://nitpick/resources/python/readthedocs",
"py://nitpick/resources/python/sonar-python",
"py://nitpick/resources/shell/bashate",
"py://nitpick/resources/shell/shellcheck",
"py://nitpick/resources/shell/shfmt",
"py://nitpick/resources/toml/toml-sort",
]
[tool.ruff]
# https://docs.astral.sh/ruff/settings/#fix
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 = ["python/src"]
[tool.ruff.lint]
# https://docs.astral.sh/ruff/settings/#ignore
ignore = [
"ANN101", # Missing type annotation for `self` in method
"ANN102", # Missing type annotation for `cls` in classmethod
"D107", # Missing docstring in `__init__`
"D202", # No blank lines allowed after function docstring
"D203", # 1 blank line required before class docstring
"D213", # Multi-line docstring summary should start at the second line
"D401", # First line of docstring should be in imperative mood
"E402", # Module level import not at top of file
"E501", # Line too long
"ERA", # https://docs.astral.sh/ruff/rules/#eradicate-era
"FBT", # https://docs.astral.sh/ruff/rules/#flake8-boolean-trap-fbt
"FIX002", # Line contains TO DO, consider resolving the issue
"TD002", # Missing author in TO DO; try: ? or ?
"TD003", # Missing issue link on the line following this TO DO
]
# 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/rules/#mccabe-c90
[tool.ruff.lint.mccabe]
# https://docs.astral.sh/ruff/settings/#max-complexity
max-complexity = 10
# https://docs.astral.sh/ruff/settings/#per-file-ignores
[tool.ruff.lint.per-file-ignores]
# A001 Variable is shadowing a python builtin
# ANN https://docs.astral.sh/ruff/rules/#flake8-annotations-ann
# B008 Do not perform function call in argument defaults
# D100 Missing docstring in public module
# D103 Missing docstring in public function
# F401 imported but unused
# INP001 File `xxx.py` is part of an implicit namespace package. Add an `__init__.py`.
# PLR0913 Too many arguments to function call
# S101 use of assert detected
# S105 Possible hardcoded password
# T201 `print` found
# T203 `pprint` found
# TCH003 Move standard library import into a type-checking block
"ci/bootstrap.py" = ["ALL"]
"docs/**" = ["ANN", "INP001", "T201", "T203"]
"docs/conf.py" = ["A001"]
"python/logseq_doctor/cli.py" = ["B008", "PLR0913", "UP006"]
"tests/**" = ["D100", "D103", "INP001", "PLR0913", "S101", "S105", "T201", "T203", "TCH003"]
"tests/data/**" = ["INP001"]
[tool.tomlsort]
all = true
ignore_case = true
in_place = true
trailing_comma_inline_array = true