-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathpyproject.toml
More file actions
155 lines (143 loc) · 4.06 KB
/
Copy pathpyproject.toml
File metadata and controls
155 lines (143 loc) · 4.06 KB
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "mcp-fiscal-brasil"
version = "0.5.1"
description = "MCP fiscal brasileiro - 44 ferramentas, zero API key. CNPJ, NF-e, Reforma Tributaria IBS/CBS, ICMS, Simples Nacional, NCM/CFOP, indexadores BCB."
authors = [
{ name = "Nikolas de Hor" }
]
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.10"
keywords = [
"mcp",
"model-context-protocol",
"claude",
"fiscal",
"brazil",
"brasil",
"nfe",
"nfce",
"nfse",
"sped",
"sefaz",
"cnpj",
"esocial",
"reforma-tributaria",
"ibs",
"cbs",
"icms",
"simples-nacional",
"ncm",
"cfop",
"receita-federal",
"tax",
"finance",
"government",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Office/Business :: Financial",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
]
dependencies = [
"fastmcp>=3.2.0",
"httpx>=0.27.0",
"pydantic>=2.0",
"lxml>=6.1.0",
"python-dateutil>=2.9.0.post0",
"tenacity>=9.1.4",
"cachetools>=7.0.5",
"aiolimiter>=1.2.1",
"structlog>=25.5.0",
"pydantic-settings>=2.14.2",
"typer>=0.25.1",
"fastapi>=0.138.0",
"uvicorn>=0.42.0",
"brazilfiscalreport==1.0.2",
"signxml>=4.5.1",
"cryptography>=50.0.0",
"pillow>=12.3.0",
"mcp>=1.28.1,<3.0",
"click>=8.3.3",
]
[project.optional-dependencies]
dev = [
"pytest>=9.1.1",
"pytest-asyncio>=0.23",
"ruff>=0.15.18",
"mypy>=1.10",
"pre-commit>=3.7",
"tomli>=2.0.1; python_version < '3.11'",
]
[project.scripts]
mcp-fiscal-brasil = "mcp_fiscal_brasil.server:main"
mcp-fiscal = "mcp_fiscal_brasil.cli:main"
mcp-fiscal-api = "mcp_fiscal_brasil.api:run"
[project.urls]
Homepage = "https://github.com/DeHor-Labs/mcp-fiscal-brasil"
Repository = "https://github.com/DeHor-Labs/mcp-fiscal-brasil"
Issues = "https://github.com/DeHor-Labs/mcp-fiscal-brasil/issues"
Changelog = "https://github.com/DeHor-Labs/mcp-fiscal-brasil/blob/main/CHANGELOG.md"
Examples = "https://github.com/DeHor-Labs/mcp-fiscal-brasil/tree/main/examples"
[tool.hatch.build.targets.wheel]
packages = ["src/mcp_fiscal_brasil"]
include = ["src/mcp_fiscal_brasil/tabelas/data/*.db"]
[tool.ruff]
target-version = "py310"
line-length = 100
src = ["src", "tests"]
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP", "B", "C4", "RUF"]
ignore = ["E501"]
[tool.ruff.lint.isort]
known-first-party = ["mcp_fiscal_brasil"]
[tool.mypy]
python_version = "3.10"
strict = true
ignore_missing_imports = true
plugins = ["pydantic.mypy"]
[[tool.mypy.overrides]]
module = [
"mcp_fiscal_brasil.server",
"mcp_fiscal_brasil.bcb._tools",
"mcp_fiscal_brasil.cep._tools",
"mcp_fiscal_brasil.cnae._tools",
"mcp_fiscal_brasil.empresa._tools",
"mcp_fiscal_brasil.ibge._tools",
"mcp_fiscal_brasil.mei._tools",
"mcp_fiscal_brasil.tabelas._tools",
"mcp_fiscal_brasil.importacao._tools",
]
# Decoradores @app.tool() do FastMCP nao sao tipados; o override por modulo
# e mais cirurgico do que rebaixar o strict global.
# warn_unused_ignores = false: server.py usa hasattr guard antes de .model_dump()
# em dados_completos (tipado como object no dataclass de distribuicao); o mypy
# strict reporta o type: ignore como unused mesmo com a guarda em vigor.
disallow_untyped_decorators = false
warn_unused_ignores = false
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
[dependency-groups]
dev = [
"httpx>=0.28.1",
"mkdocs-gen-files>=0.6.1",
"mkdocs-git-revision-date-localized-plugin>=1.5.3",
"mkdocs-literate-nav>=0.6.3",
"mkdocs-material>=9.7.6",
"mkdocs-mermaid2-plugin>=1.2.3",
"mkdocstrings[python]>=1.0.4",
"pymdown-extensions>=10.21.3",
"pytest-asyncio>=0.23",
"pytest-cov>=7.1.0",
"types-cachetools>=7.0.0.20260518",
]