summaryrefslogtreecommitdiffstats
path: root/pyproject.toml
blob: 9c03929b8baec27400a3df5681b44600f03baceb (plain)
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
[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"]