-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
81 lines (70 loc) · 1.97 KB
/
pyproject.toml
File metadata and controls
81 lines (70 loc) · 1.97 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
[build-system]
requires = ["setuptools>=45", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "shecan"
version = "0.4.3"
description = "The Shecan CLI is used to configure your DNS configuration based on Shecan website from the command line."
readme = "README.md"
authors = [
{name = "Bahram Aghaei", email = "aghaee.bahram@gmail.com"},
]
license = {text = "Academic Free License, version 3"}
requires-python = ">=3.9"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
]
dependencies = [
"bs4",
"lxml",
"tabulate",
]
[project.urls]
Homepage = "https://github.com/GreatBahram/Shecan-cli/"
"Source Code" = "https://github.com/GreatBahram/shecan-cli"
"Change Log" = "https://github.com/GreatBahram/shecan-cli/blob/master/CHANGES.md"
[project.scripts]
shecan = "shecan.cli:shecan_cli"
[project.optional-dependencies]
dev = [
"pre-commit>=4.1.0",
"pytest>=8.3.5",
"ruff>=0.9.9",
]
[tool.setuptools.packages.find]
where = ["src"]
[tool.pytest.ini_options]
testpaths = ["src/tests"]
[tool.ruff]
line-length = 88
exclude = [".git", ".mypy_cache", ".ruff_cache", ".venv"]
# Assume Python 3.09
target-version = "py39"
[tool.ruff.lint]
select = [
"ANN", # flake8-annotations
"C4", # flake8-comprehensions
"E", # pycodestyle error
"F", # Pyflakes
"I", # isort
"INP", # flake8-no-pep420
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PLC", # Pylint convention
"PLE", # Pylint error
"PLR", # Pylint refactor
"PLW", # Pylint warning
"PYI", # flake8-pyi
"SIM", # flake8-simplify
"UP", # pyupgrade
"W", # pycodestyle warning
]
[tool.ruff.lint.extend-per-file-ignores]
"**/tests/**/*.py" = [
"ANN", # Ignores all type hints
"PLR0904", # Ignores "Too many public methods"
"PLR0913", # Ignores "Too many arguments to function call"
"PLR0917", # Ignores "Too many positional arguments"
]