-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
99 lines (88 loc) · 2.62 KB
/
pyproject.toml
File metadata and controls
99 lines (88 loc) · 2.62 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[project]
name = "pybrowsers-profiles"
dynamic = ["version"]
description = "Simple script for manage browser's profiles."
readme = { file = "README.md", content-type = "text/markdown" }
keywords = ["dmenu", "firefox", "librewolf", "profiles", "rofi"]
license = { file = "LICENSE.txt" }
authors = [{ name = "haaag", email = "git.haaag@gmail.com" }]
requires-python = ">=3.9"
classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = ["pyselector>=0.0.25"]
[project.urls]
"Homepage" = "https://github.com/haaag/PyBrowsers-Profiles"
"Bug Tracker" = "https://github.com/haaag/PyBrowsers-Profiles/issues"
[project.scripts]
pybrowsers = "pybrowsers:__main__.main"
[tool.hatch.build.targets.sdist]
exclude = ["assets", "dist"]
[tool.hatch.build.targets.wheel]
packages = ["pybrowsers/"]
[tool.hatch.version]
path = "pybrowsers/__main__.py"
[tool.mypy]
show_error_codes = true
show_error_context = true
show_column_numbers = true
ignore_missing_imports = true
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
warn_redundant_casts = true
warn_unused_ignores = true
[tool.ruff]
fix = false
line-length = 99
output-format = "grouped"
show-fixes = true
target-version = "py38"
exclude = [".venv", ".mypy_cache", ".pytest_cache"]
[tool.ruff.format]
quote-style = "single"
line-ending = "auto"
skip-magic-trailing-comma = false
docstring-code-format = true
[tool.ruff.lint]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
task-tags = ["HACK", "FIX", "BUG", "WIP", "TODO"]
extend-select = [
"B", # (flake8-bugbear)
"BLE", # (flake8-blind-except)
"C4", # (flake8-comprehensions)
# "ERA", # (eradicate)
"I", # (isort)
"ICN", # (flake8-import-conventions)
"INP", # (flake8-no-pep420)
"ISC", # (flake8-implicit-str-concat)
"N", # (pep8-naming)
"NPY", # (numpy-specific-rules)
"PGH", # (pygrep-hooks)
"PIE", # (flake8-pie)
"PTH", # (flake8-use-pathlib)
"Q", # (flake8-quotes)
"RET", # (flake8-return)
"RSE", # (flake8-raise)
"RUF", # (ruff-specific-rules)
"S", # (flake8-bandit)
"SIM", # (flake8-simplify)
# "T20", # (flake8-print)
"TCH", # (flake8-type-checking)
"TID", # (flake8-tidy-imports)
"YTT", # (flake8-2020)
]
[tool.ruff.lint.isort]
force-single-line = true
order-by-type = true
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.per-file-ignores]
# Single-quote preferred
"**/*" = ["Q000", "S603"]