summaryrefslogtreecommitdiffstats
path: root/pyproject.toml
diff options
context:
space:
mode:
authorMurilo Ijanc <[email protected]>2026-07-26 11:44:58 -0300
committerMurilo Ijanc <[email protected]>2026-07-26 11:44:58 -0300
commita82459630e957a8d94c375394dae66734f3c90c1 (patch)
treed9d1b9e1249ccd8cd1d989f532c6368a70dc9cc2 /pyproject.toml
downloadpython-a82459630e957a8d94c375394dae66734f3c90c1.tar.gz
Initial importv0.1.0
Diffstat (limited to 'pyproject.toml')
-rw-r--r--pyproject.toml53
1 files changed, 53 insertions, 0 deletions
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 0000000..9c03929
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,53 @@
+[build-system]
+requires = ["hatchling"]
+build-backend = "hatchling.build"
+
+[project]
+name = "cepis"
+dynamic = ["version"]
+description = "Python client for the public CEP API at cep.is"
+readme = "README.md"
+license = "ISC"
+license-files = ["LICENSE"]
+requires-python = ">=3.9"
+authors = [{ name = "Murilo Ijanc", email = "[email protected]" }]
+keywords = ["cep", "correios", "dne", "endereco", "brasil", "viacep"]
+classifiers = [
+ "Development Status :: 4 - Beta",
+ "Intended Audience :: Developers",
+ "Natural Language :: Portuguese (Brazilian)",
+ "Programming Language :: Python :: 3",
+ "Programming Language :: Python :: 3 :: Only",
+ "Topic :: Software Development :: Libraries",
+ "Typing :: Typed",
+]
+dependencies = []
+
+[project.urls]
+Homepage = "https://cep.is"
+Source = "https://git.cep.is/python.git"
+
+[tool.hatch.version]
+path = "src/cepis/__init__.py"
+
+[tool.hatch.build.targets.wheel]
+packages = ["src/cepis"]
+
+[tool.ruff]
+line-length = 100
+target-version = "py39"
+src = ["src", "tests"]
+
+[tool.ruff.lint]
+select = ["E", "F", "W", "I", "N", "UP", "B", "SIM", "RUF"]
+# N818 exige que exceções terminem em "Error" — convenção do inglês. A API
+# pública desta biblioteca é em português de propósito (veja o README), então
+# a regra brigaria com `CEPNaoEncontrado` sem apontar defeito nenhum.
+ignore = ["N818"]
+# O travessão é pontuação legítima em português e aparece na prosa das
+# docstrings. Sem isto, RUF002 pede para trocá-lo por hífen e estraga o texto.
+allowed-confusables = ["–", "—"]
+
+[tool.ruff.lint.per-file-ignores]
+# Os testes exercitam propositalmente caminhos de erro e casos-limite.
+"tests/*" = ["B017"]