-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
97 lines (85 loc) · 2.31 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
[tool.poetry]
name = "checkpasswords"
version = "2023"
license = "GPL-3.0-or-later"
description = "CheckPasswords uses pass_import to read a password manager source file to check for duplicate passwords; check for weak passwords; identify http sites; list available 2fa options; list emails"
authors = ["FredHappyface"]
classifiers = [
"Environment :: Console",
"Environment :: MacOS X",
"Environment :: Win32 (MS Windows)",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Security",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities"
]
homepage = "https://github.com/FHPythonUtils/CheckPasswords"
repository = "https://github.com/FHPythonUtils/CheckPasswords"
documentation = "https://github.com/FHPythonUtils/CheckPasswords/blob/master/README.md"
readme = "README.md"
[tool.poetry.scripts]
CheckPasswords = 'checkpasswords:cli'
[tool.poetry.dependencies]
python = "^3.8"
rich = "<14,>=13.7.1"
zxcvbn-python = "<5,>=4.4.24"
pass-import = "<4,>=3.5"
[tool.poetry.group.dev.dependencies]
gitpython = "^3.1.42"
tox = "^4.14.1"
pytest = "^8.1.1"
handsdown = "^2.1.0"
coverage = "^7.4.4"
ruff = "^0.3.3"
pyright = "^1.1.354"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 100
indent-width = 4
target-version = "py38"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN101", # type annotation for self in method
"COM812", # enforce trailing comma
"D2", # pydocstyle formatting
"ISC001",
"N", # pep8 naming
"PLR09", # pylint refactor too many
"TCH", # type check blocks
"W191" # ignore this to allow tabs
]
fixable = ["ALL"]
[tool.ruff.lint.per-file-ignores]
"**/{tests,docs,tools}/*" = ["D", "S101", "E402"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all" # Disallow all relative imports.
[tool.ruff.format]
indent-style = "tab"
docstring-code-format = true
line-ending = "lf"
[tool.pyright]
venvPath = "."
venv = ".venv"
[tool.tox]
legacy_tox_ini = """
[tox]
isolated_build = True
env_list =
py311
py310
py39
py38
[testenv]
allowlist_externals = poetry
commands =
poetry install -v
poetry run pytest
"""