-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathpyproject.toml
More file actions
74 lines (61 loc) · 2.03 KB
/
Copy pathpyproject.toml
File metadata and controls
74 lines (61 loc) · 2.03 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
[build-system]
requires = ["setuptools==82.0.1", "wheel==0.46.3"]
build-backend = "setuptools.build_meta"
[project]
name = "rebasebot"
version = "0.0.1"
description = "A tool to sync downstream repositories with their upstream"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"github3-py==4.0.1",
"gitpython==3.1.46",
"requests==2.33.1",
]
[project.optional-dependencies]
dev = [
"pytest==9.0.3",
"pytest-cov==7.1.0",
"ruff==0.15.10",
]
[project.scripts]
rebasebot = "rebasebot.cli:main"
[tool.setuptools.packages.find]
where = ["."]
[tool.setuptools.package-data]
rebasebot = ["builtin-hooks/**"]
[tool.ruff]
line-length = 120
[tool.ruff.lint]
ignore = [
"PLR0912", # too many branches
"PLR0913", # too many arguments
"PLR0915", # too many statements
"PLR0911", # too many return statements
# Enabling these rules would require significant refactoring
]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes - undefined names, unused imports
"I", # isort - import sorting
"B", # flake8-bugbear - common bugs and design problems
"C4", # flake8-comprehensions - better list/set/dict comprehensions
"UP", # pyupgrade - upgrade syntax for newer Python versions
"PL", # pylint - static analysis rules
#"D", # pydocstyle - docstring conventions
#"N", # pep8-naming - naming conventions
#"RET", # flake8-return - return statement patterns
#"SIM", # flake8-simplify - code simplification
#"PTH", # flake8-use-pathlib - prefer pathlib over os.path
# TODO Enable the currently disabled rules
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["PLR2004", "D"] # allow magic values, disable docstring checks in tests
[tool.ruff.lint.pep8-naming]
ignore-names = ["i", "j", "k", "ex", "Run", "_"] # allow common single-letter variable names
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.ruff.lint.isort]
known-first-party = ["rebasebot"] # treat rebasebot as first-party for import sorting