-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
61 lines (54 loc) · 1.49 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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "ignorem"
version = "0.1.0"
description = "Generate .gitignore files"
authors = [{ name = "Izzat Z.", email = "[email protected]" }]
readme = "README.md"
license = { file = "COPYING" }
requires-python = "==3.11.7"
dependencies = ["pygobject==3.46.0", "requests==2.31.0"]
[project.optional-dependencies]
dev = ["pre-commit==3.5.0"]
dev-types = ["types-requests==2.31.0.*", "pygobject-stubs==2.10.0"]
dev-lint = ["ruff==0.1.9", "black==23.12.1", "mypy==1.8.0"]
[tool.setuptools]
packages = ["ignorem"]
[tool.ruff]
src = ["ignorem"]
fix = true
unsafe-fixes = true
show-fixes = true
extend-select = [
"RUF", # Ruff
"PL", # PyLint
"N", # pep8-naming
"E", # pycodestyle error
"W", # pycodestyle warning
"I", # isort
"UP", # pyupgrade
"S", # flake8-bandit
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"FA", # flake8-future-annotations
"RET", # flake8-return
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
]
extend-ignore = [
"PLR2004", # Magic value
"PLR0913", # Too many args
]
[tool.ruff.isort]
case-sensitive = true
known-first-party = ["ignorem"]
[tool.mypy]
strict = true
show_error_codes = true
explicit_package_bases = true
[[tool.mypy.overrides]]
module = ["ignorem.gui.pages.*", "ignorem.gui.window"]
disable_error_code = ["assignment", "method-assign", "truthy-function"]