1
1
[build-system ]
2
2
build-backend = " poetry.core.masonry.api"
3
- requires = [" poetry-core>=2" ]
3
+ requires = [ " poetry-core>=2" ]
4
4
5
5
[tool .poetry ]
6
6
name = " returns"
7
7
version = " 0.25.0"
8
8
description = " Make your functions return something meaningful, typed, and safe!"
9
9
license = " BSD-3-Clause"
10
10
11
- authors = [
" sobolevn <[email protected] >" ]
11
+ authors = [
" sobolevn <[email protected] >" ]
12
12
13
13
readme = " README.md"
14
14
@@ -85,8 +85,8 @@ myst-parser = "^4.0"
85
85
tomli = " ^2.0"
86
86
87
87
[tool .poetry .extras ]
88
- compatible-mypy = [" mypy" ]
89
- check-laws = [" pytest" , " hypothesis" ]
88
+ compatible-mypy = [ " mypy" ]
89
+ check-laws = [ " pytest" , " hypothesis" ]
90
90
91
91
[tool .ruff ]
92
92
# Ruff config: https://docs.astral.sh/ruff/settings
@@ -157,16 +157,16 @@ lint.ignore = [
157
157
" PLR6301" , # do not require classmethod / staticmethod when self not used
158
158
" TRY003" , # long exception messages from `tryceratops`
159
159
]
160
- lint.per-file-ignores."*.pyi" = [" D103" ]
161
- lint.per-file-ignores."returns/context/__init__.py" = [" F401" , " PLC0414" ]
162
- lint.per-file-ignores."returns/contrib/mypy/*.py" = [" S101" ]
163
- lint.per-file-ignores."returns/contrib/mypy/_typeops/visitor.py" = [" S101" ]
164
- lint.per-file-ignores."returns/contrib/pytest/__init__.py" = [" F401" , " PLC0414" ]
165
- lint.per-file-ignores."returns/interfaces/*.py" = [" S101" ]
166
- lint.per-file-ignores."returns/methods/__init__.py" = [" F401" , " PLC0414" ]
167
- lint.per-file-ignores."returns/pipeline.py" = [" F401" , " PLC0414" ]
168
- lint.per-file-ignores."returns/pointfree/__init__.py" = [" F401" , " PLC0414" ]
169
- lint.per-file-ignores."returns/primitives/asserts.py" = [" S101" ]
160
+ lint.per-file-ignores."*.pyi" = [ " D103" ]
161
+ lint.per-file-ignores."returns/context/__init__.py" = [ " F401" , " PLC0414" ]
162
+ lint.per-file-ignores."returns/contrib/mypy/*.py" = [ " S101" ]
163
+ lint.per-file-ignores."returns/contrib/mypy/_typeops/visitor.py" = [ " S101" ]
164
+ lint.per-file-ignores."returns/contrib/pytest/__init__.py" = [ " F401" , " PLC0414" ]
165
+ lint.per-file-ignores."returns/interfaces/*.py" = [ " S101" ]
166
+ lint.per-file-ignores."returns/methods/__init__.py" = [ " F401" , " PLC0414" ]
167
+ lint.per-file-ignores."returns/pipeline.py" = [ " F401" , " PLC0414" ]
168
+ lint.per-file-ignores."returns/pointfree/__init__.py" = [ " F401" , " PLC0414" ]
169
+ lint.per-file-ignores."returns/primitives/asserts.py" = [ " S101" ]
170
170
lint.per-file-ignores."tests/*.py" = [
171
171
" RUF029" , # allow async functions to not use `await`
172
172
" S101" , # asserts
@@ -175,7 +175,7 @@ lint.per-file-ignores."tests/*.py" = [
175
175
" S603" , # do not require `shell=True`
176
176
" S607" , # partial executable paths
177
177
]
178
- lint.per-file-ignores."tests/test_examples/*" = [" D102" ]
178
+ lint.per-file-ignores."tests/test_examples/*" = [ " D102" ]
179
179
lint.per-file-ignores."tests/test_examples/test_maybe/test_maybe_pattern_matching.py" = [
180
180
" D101" ,
181
181
" D103" ,
@@ -184,11 +184,11 @@ lint.per-file-ignores."tests/test_examples/test_maybe/test_maybe_pattern_matchin
184
184
lint.per-file-ignores."tests/test_examples/test_result/test_result_pattern_matching.py" = [
185
185
" D103" ,
186
186
]
187
- lint.per-file-ignores."tests/test_pattern_matching.py" = [" S101" ]
188
- lint.external = [" WPS" ]
187
+ lint.per-file-ignores."tests/test_pattern_matching.py" = [ " S101" ]
188
+ lint.external = [ " WPS" ]
189
189
lint.flake8-quotes.inline-quotes = " single"
190
190
lint.mccabe.max-complexity = 6
191
- lint.pep8-naming.staticmethod-decorators = [" law_definition" , " staticmethod" ]
191
+ lint.pep8-naming.staticmethod-decorators = [ " law_definition" , " staticmethod" ]
192
192
lint.pydocstyle.convention = " google"
193
193
194
194
[tool .slotscheck ]
0 commit comments