Spaces:
Runtime error
Runtime error
neoai-kterasawa
commited on
Commit
•
8b568df
1
Parent(s):
c3a2338
dependencies
Browse files- kculculate.code-workspace +2 -2
- poetry.lock +49 -1
- pyproject.toml +48 -1
kculculate.code-workspace
CHANGED
@@ -47,8 +47,8 @@
|
|
47 |
],
|
48 |
"isort.args": ["--settings-path=pyproject.toml"],
|
49 |
"black-formatter.args": ["--config=pyproject.toml"],
|
50 |
-
"mypy-type-checker.args": ["--config-file=pyproject.toml"]
|
51 |
-
"python.analysis.extraPaths": ["./backend"]
|
52 |
},
|
53 |
"extensions": {
|
54 |
"recommendations": [
|
|
|
47 |
],
|
48 |
"isort.args": ["--settings-path=pyproject.toml"],
|
49 |
"black-formatter.args": ["--config=pyproject.toml"],
|
50 |
+
"mypy-type-checker.args": ["--config-file=pyproject.toml"]
|
51 |
+
// "python.analysis.extraPaths": ["./backend"]
|
52 |
},
|
53 |
"extensions": {
|
54 |
"recommendations": [
|
poetry.lock
CHANGED
@@ -766,6 +766,17 @@ files = [
|
|
766 |
docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (<7.2.5)", "sphinx (>=3.5)", "sphinx-lint"]
|
767 |
testing = ["jaraco.test (>=5.4)", "pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy", "pytest-ruff (>=0.2.1)", "zipp (>=3.17)"]
|
768 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
769 |
[[package]]
|
770 |
name = "isort"
|
771 |
version = "5.13.2"
|
@@ -1457,6 +1468,21 @@ docs = ["furo (>=2023.9.10)", "proselint (>=0.13)", "sphinx (>=7.2.6)", "sphinx-
|
|
1457 |
test = ["appdirs (==1.4.4)", "covdefaults (>=2.3)", "pytest (>=7.4.3)", "pytest-cov (>=4.1)", "pytest-mock (>=3.12)"]
|
1458 |
type = ["mypy (>=1.8)"]
|
1459 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1460 |
[[package]]
|
1461 |
name = "pycodestyle"
|
1462 |
version = "2.11.1"
|
@@ -1656,6 +1682,28 @@ files = [
|
|
1656 |
flake8 = "7.0.0"
|
1657 |
tomli = {version = "*", markers = "python_version < \"3.11\""}
|
1658 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1659 |
[[package]]
|
1660 |
name = "python-dateutil"
|
1661 |
version = "2.9.0.post0"
|
@@ -2236,4 +2284,4 @@ files = [
|
|
2236 |
[metadata]
|
2237 |
lock-version = "2.0"
|
2238 |
python-versions = "^3.10"
|
2239 |
-
content-hash = "
|
|
|
766 |
docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (<7.2.5)", "sphinx (>=3.5)", "sphinx-lint"]
|
767 |
testing = ["jaraco.test (>=5.4)", "pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy", "pytest-ruff (>=0.2.1)", "zipp (>=3.17)"]
|
768 |
|
769 |
+
[[package]]
|
770 |
+
name = "iniconfig"
|
771 |
+
version = "2.0.0"
|
772 |
+
description = "brain-dead simple config-ini parsing"
|
773 |
+
optional = false
|
774 |
+
python-versions = ">=3.7"
|
775 |
+
files = [
|
776 |
+
{file = "iniconfig-2.0.0-py3-none-any.whl", hash = "sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374"},
|
777 |
+
{file = "iniconfig-2.0.0.tar.gz", hash = "sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3"},
|
778 |
+
]
|
779 |
+
|
780 |
[[package]]
|
781 |
name = "isort"
|
782 |
version = "5.13.2"
|
|
|
1468 |
test = ["appdirs (==1.4.4)", "covdefaults (>=2.3)", "pytest (>=7.4.3)", "pytest-cov (>=4.1)", "pytest-mock (>=3.12)"]
|
1469 |
type = ["mypy (>=1.8)"]
|
1470 |
|
1471 |
+
[[package]]
|
1472 |
+
name = "pluggy"
|
1473 |
+
version = "1.5.0"
|
1474 |
+
description = "plugin and hook calling mechanisms for python"
|
1475 |
+
optional = false
|
1476 |
+
python-versions = ">=3.8"
|
1477 |
+
files = [
|
1478 |
+
{file = "pluggy-1.5.0-py3-none-any.whl", hash = "sha256:44e1ad92c8ca002de6377e165f3e0f1be63266ab4d554740532335b9d75ea669"},
|
1479 |
+
{file = "pluggy-1.5.0.tar.gz", hash = "sha256:2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1"},
|
1480 |
+
]
|
1481 |
+
|
1482 |
+
[package.extras]
|
1483 |
+
dev = ["pre-commit", "tox"]
|
1484 |
+
testing = ["pytest", "pytest-benchmark"]
|
1485 |
+
|
1486 |
[[package]]
|
1487 |
name = "pycodestyle"
|
1488 |
version = "2.11.1"
|
|
|
1682 |
flake8 = "7.0.0"
|
1683 |
tomli = {version = "*", markers = "python_version < \"3.11\""}
|
1684 |
|
1685 |
+
[[package]]
|
1686 |
+
name = "pytest"
|
1687 |
+
version = "8.3.2"
|
1688 |
+
description = "pytest: simple powerful testing with Python"
|
1689 |
+
optional = false
|
1690 |
+
python-versions = ">=3.8"
|
1691 |
+
files = [
|
1692 |
+
{file = "pytest-8.3.2-py3-none-any.whl", hash = "sha256:4ba08f9ae7dcf84ded419494d229b48d0903ea6407b030eaec46df5e6a73bba5"},
|
1693 |
+
{file = "pytest-8.3.2.tar.gz", hash = "sha256:c132345d12ce551242c87269de812483f5bcc87cdbb4722e48487ba194f9fdce"},
|
1694 |
+
]
|
1695 |
+
|
1696 |
+
[package.dependencies]
|
1697 |
+
colorama = {version = "*", markers = "sys_platform == \"win32\""}
|
1698 |
+
exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""}
|
1699 |
+
iniconfig = "*"
|
1700 |
+
packaging = "*"
|
1701 |
+
pluggy = ">=1.5,<2"
|
1702 |
+
tomli = {version = ">=1", markers = "python_version < \"3.11\""}
|
1703 |
+
|
1704 |
+
[package.extras]
|
1705 |
+
dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"]
|
1706 |
+
|
1707 |
[[package]]
|
1708 |
name = "python-dateutil"
|
1709 |
version = "2.9.0.post0"
|
|
|
2284 |
[metadata]
|
2285 |
lock-version = "2.0"
|
2286 |
python-versions = "^3.10"
|
2287 |
+
content-hash = "da65db62d0f0a3a42ffcf1398b216da513c739178f606ad7df7a5c893afbd5ea"
|
pyproject.toml
CHANGED
@@ -3,7 +3,7 @@ name = "kculculate"
|
|
3 |
version = "0.1.0"
|
4 |
description = ""
|
5 |
authors = ["neoai-kterasawa <[email protected]>"]
|
6 |
-
packages = [{ include = "
|
7 |
readme = "README.md"
|
8 |
|
9 |
[tool.poetry.dependencies]
|
@@ -16,6 +16,7 @@ isort = "^5.13.2"
|
|
16 |
black = "^24.4.2"
|
17 |
mypy = "^1.11.0"
|
18 |
pyproject-flake8 = "^7.0.0"
|
|
|
19 |
|
20 |
|
21 |
[build-system]
|
@@ -23,8 +24,54 @@ requires = ["poetry-core"]
|
|
23 |
build-backend = "poetry.core.masonry.api"
|
24 |
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
[tool.flake8]
|
27 |
max-line-length = 119
|
28 |
extend-ignore = ["E203", "W503", "E501", "E704"]
|
29 |
exclude = [".venv", ".git", "__pycache__", ".mypy_cache", ".hg"]
|
30 |
max-complexity = 10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
version = "0.1.0"
|
4 |
description = ""
|
5 |
authors = ["neoai-kterasawa <[email protected]>"]
|
6 |
+
packages = [{ include = "src" }]
|
7 |
readme = "README.md"
|
8 |
|
9 |
[tool.poetry.dependencies]
|
|
|
16 |
black = "^24.4.2"
|
17 |
mypy = "^1.11.0"
|
18 |
pyproject-flake8 = "^7.0.0"
|
19 |
+
pytest = "^8.3.2"
|
20 |
|
21 |
|
22 |
[build-system]
|
|
|
24 |
build-backend = "poetry.core.masonry.api"
|
25 |
|
26 |
|
27 |
+
[tool.black]
|
28 |
+
line-length = 119
|
29 |
+
exclude = '''
|
30 |
+
/(
|
31 |
+
\venv
|
32 |
+
| \.git
|
33 |
+
| \.hg
|
34 |
+
| __pycache__
|
35 |
+
| \.mypy_cache
|
36 |
+
)/
|
37 |
+
'''
|
38 |
+
|
39 |
+
[tool.isort]
|
40 |
+
profile = "black"
|
41 |
+
multi_line_output = 3
|
42 |
+
|
43 |
[tool.flake8]
|
44 |
max-line-length = 119
|
45 |
extend-ignore = ["E203", "W503", "E501", "E704"]
|
46 |
exclude = [".venv", ".git", "__pycache__", ".mypy_cache", ".hg"]
|
47 |
max-complexity = 10
|
48 |
+
|
49 |
+
[tool.mypy]
|
50 |
+
ignore_missing_imports = true
|
51 |
+
# follow_imports = normal
|
52 |
+
disallow_any_unimported = false
|
53 |
+
disallow_any_expr = false # 式でのAny禁止
|
54 |
+
disallow_any_decorated = false
|
55 |
+
disallow_any_explicit = false # 変数でAny禁止
|
56 |
+
disallow_any_generics = true # ジェネリックで書かないの禁止
|
57 |
+
disallow_subclassing_any = false # Anyのサブクラス禁止
|
58 |
+
|
59 |
+
disallow_untyped_calls = true # 型なし関数呼び出し禁止 `a: int = f()`
|
60 |
+
disallow_untyped_defs = true # 型なし関数定義禁止 `def f(a: int) -> int`
|
61 |
+
disallow_incomplete_defs = true # 一部の型定義を禁止 `def f(a: int, b)`
|
62 |
+
check_untyped_defs = true
|
63 |
+
disallow_untyped_decorators = true
|
64 |
+
no_implicit_optional = true
|
65 |
+
|
66 |
+
warn_redundant_casts = true
|
67 |
+
warn_unused_ignores = true
|
68 |
+
warn_return_any = true
|
69 |
+
warn_unreachable = true # 辿りつかないコードの検出
|
70 |
+
allow_redefinition = false # 変数の再定義を禁止
|
71 |
+
|
72 |
+
show_error_context = true
|
73 |
+
show_column_numbers = true
|
74 |
+
|
75 |
+
|
76 |
+
[tool.mypy-src]
|
77 |
+
ignore_missing_imports = false
|