-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
146 lines (131 loc) · 5.03 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
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core"]
[tool.commitizen]
version = "0.4.0"
version_files = ["pyproject.toml:^version", "recipes/__init__.py:^__version"]
[tool.mypy]
check_untyped_defs = true
disallow_any_generics = true
enable_error_code = ["ignore-without-code", "possibly-undefined", "redundant-expr", "truthy-bool"]
extra_checks = true
files = ["recipes", "tests"]
no_implicit_reexport = true
plugins = [
]
python_version = "3.12"
show_column_numbers = true
show_error_codes = true
strict_equality = true
warn_no_return = true
warn_redundant_casts = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
[tool.poetry]
authors = ["Kyle King <dev.act.kyle@gmail.com>"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.12",
] # https://pypi.org/classifiers/
description = "Kyle and Alex's Personal Recipes"
documentation = "https://recipes.kyleking.me"
keywords = ["calcipy_template"]
license = "MIT"
maintainers = []
name = "recipes"
readme = "docs-code/README.md"
repository = "https://github.com/kyleking/recipes"
version = "0.4.0"
[tool.poetry.dependencies]
python = "^3.12.0"
calcipy = {extras = ["doc", "lint", "nox", "tags", "test", "types"], version = ">=5.0.0"}
corallium = ">=2.0.1"
mkdocs-git-revision-date-localized-plugin = ">=1.3.0"
mkdocs-live-edit-plugin = ">=0.2.0"
optimize-images = ">=1.5.1"
[tool.poetry.scripts]
recipes = "recipes.scripts:start"
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/kyleking/recipes/issues"
"Changelog" = "https://github.com/kyleking/recipes/blob/main/docs-code/docs/CHANGELOG.md"
[tool.pyright]
include = ["recipes", "tests"]
pythonVersion = "3.12"
[tool.ruff]
# Docs: https://github.com/charliermarsh/ruff
# Tip: poetry run python -m ruff rule RUF100
line-length = 120
target-version = 'py312'
[tool.ruff.lint]
ignore = [
'ANN002', # Missing type annotation for `*args`
'ANN003', # Missing type annotation for `**kwargs`
'ANN401', # Dynamically typed expressions (typing.Any) are disallowed in `pop_key`
'BLE001', # Do not catch blind exception: `Exception`
'CPY001', # Missing copyright notice at top of file
'D203', # "1 blank line required before class docstring" (Conflicts with D211)
'D213', # "Multi-line docstring summary should start at the second line" (Conflicts with D212)
'EM101', # Exception must not use a string literal, assign to variable first
'FIX001', # Line contains FIXME
'FIX002', # Line contains TODO
'FIX004', # Line contains HACK
'PLR0913', # Too many arguments in function definition (6 > 5)
'TC001', # Move application import `tail_jsonl.config.Config` into a type-checking block (Conflicts with Beartype)
'TC002', # Move third-party import `rich.console.Console` into a type-checking block (Conflicts with Beartype)
'TC003', # Move standard library import `argparse` into a type-checking block (Conflicts with Beartype)
'TD001', # Invalid TODO tag: `FIXME`
'TD002', # Missing author in TODO; try: `# TODO(<author_name>): ...`
'TD003', # Missing issue link on the line following this TODO
'TRY003', # Avoid specifying long messages outside the exception class
]
preview = true
select = ['ALL']
unfixable = [
'ERA001', # Commented out code
]
[tool.ruff.lint.flake8-quotes]
inline-quotes = 'single'
[tool.ruff.lint.flake8-tidy-imports.banned-api]
'invoke.collection.Collection'.msg = 'Use calcipy.collection.Collection instead.'
'invoke.tasks.task'.msg = 'Use calcipy.cli.task instead.'
'typing.Callable'.msg = 'Use "from collections.abc" instead.'
'typing.Dict'.msg = 'Use "from __future__ import annotations"'
'typing.List'.msg = 'Use "from __future__ import annotations"'
'typing.Optional'.msg = 'Use "from __future__ import annotations"'
'typing.Protocol'.msg = 'Use "from beartype.typing" instead.'
[tool.ruff.lint.isort]
known-first-party = ['recipes']
[tool.ruff.lint.per-file-ignores]
'./recipes/../*.py' = [
'INP001', # File `/<>.py` is part of an implicit namespace package. Add an `__init__.py`.
]
'__init__.py' = [
'D104', # Missing docstring in public package
]
'scripts/*.py' = [
'INP001', # File `scripts/*.py` is part of an implicit namespace package. Add an `__init__.py`.
]
'scripts/check_imports.py' = [
'F401', # imported but unused; consider adding to __all__ or using a redundant alias
]
'tests/*.py' = [
'ANN001', # Missing type annotation for function argument
'ANN201', # Missing return type annotation for public function
'ANN202', # Missing return type annotation for private function `test_make_diffable`
'ARG001', # Unused function argument: `line`
'D100', # Missing docstring in public module
'D103', # Missing docstring in public function
'PLC2701', # Private name import `_<>` from external module
'PT004', # flake8-pytest-style: fixture does not return
'S101', # Use of `assert` detected
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.tomlsort]
all = true
in_place = true
sort_first = ["python"]
trailing_comma_inline_array = true