-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
79 lines (63 loc) · 1.75 KB
/
pyproject.toml
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
[project]
name = "peru-dnie"
version = "0.0.2"
authors = [
{ name="Emiliano Deustua", email="[email protected]" },
]
description = "A simple tool to use the Peruvian DNIe v2"
readme = "README.md"
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
'attrs ~= 23.2.0',
'pyscard ~= 2.0.7',
'rich ~= 13.7.0',
]
[project.scripts]
peru_dnie = "peru_dnie.cli:main"
[project.urls]
Homepage = "https://github.com/edeustua/peru-dnie"
Issues = "https://github.com/edeustua/peru-dnie/issues"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.pyright]
include = ["src", "tests"]
exclude = [
"**/node_modules",
"**/__pycache__",
]
ignore = []
defineConstant = { DEBUG = true }
venv = ".venv"
reportMissingImports = true
reportMissingTypeStubs = false
pythonVersion = "3.12"
[tool.isort]
profile = "black"
multi_line_output = 3
order_by_type = true
# line_length = 1
# add a section for company internal libraries
known_firstparty=["local_test_utils"]
# add the comment headers for each section
import_heading_stdlib="Standard Library"
import_heading_thirdparty="Third Party Library"
import_heading_firstparty="First Party Library"
import_heading_localfolder="Local Modules"
sections=["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
[tool.ruff]
line-length = 88
# removes warning for some of the rule sets
preview = true
select = ["E", "F", "B", "S"]
ignore = ["E203", "E501", "E266"]
[tool.ruff.lint.per-file-ignores]
"noxfile.py" = ["E402"]
# ignore "pythonic" comparisons to booleans, for clarity in writing tests
"tests/*" = ["S101", "S603", "B011", "E712"]
"tool_lib/local_nox/*" = ["S101"]