-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (84 loc) · 2.25 KB
/
pyproject.toml
File metadata and controls
90 lines (84 loc) · 2.25 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
[build-system]
requires = ["hatchling>=1.5.0"]
build-backend = "hatchling.build"
[project]
name = "git-hg-sync"
readme = "README.md"
requires-python = ">=3.10"
version = "0.1"
dependencies = [
"flask",
"GitPython",
"gunicorn",
"kombu",
"mozillapulse",
"mozlog",
"pydantic",
"sentry_sdk",
"devtools",
]
[project.optional-dependencies]
dev = [
# Pin due to https://github.com/jazzband/pip-tools/issues/2319,
# otherwise pip-compile doesn't work in the container.
"pip<26.0",
"pip-tools",
"pytest>=8.3.4",
"pytest-cov",
"pytest-mock",
"pytest-ruff",
]
[project.scripts]
git-hg-sync = "git_hg_sync.__main__:main"
git-hg-cli = "git_hg_sync.cli:main"
[tool.pytest.ini_options]
addopts = "--ruff --cov --cov-report html"
[tool.ruff]
lint.select = [
"A", # flake8-builtins
"ANN", # flake8-annotations
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"E", # pycodestyle-error
"ERA", # eradicate
"EXE", # flake8-executable
"F", # Pyflakes
"FIX", # flake8-fixme
"G", # flake8-logging-format
"I", # isort
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"PERF", # perflint
"PIE", # flake8-pie
"PL", # Pylint
"PTH", # flake8-use-pathlib
"RET", # flake8-return
"RUF", # Ruff-specific rules
"TCH", # flake8-type-checking
"SIM", # flake8-simplify
"SLF", # flake8-self
"UP", # pyupgrade
"W", # pycodestyle-warning
"YTT", # flake8-2020
]
lint.ignore = [
"A003", # builtin-attribute-shadowing
"ANN401", # any-type
"B009", # get-attr-with-constant
"B904", # raise-without-from-inside-except
"E501", # line-too-long
"ERA001", # commented-out-code
"G004", # logging-f-string
"G201", # logging-exc-info (mozlog doesn't support .exception)
"ISC001", # single-line-implicit-string-concatenation (formatter will fix)
"PERF203", # try-except-in-loop
"PERF401", # manual-list-comprehension
"PLR", # pylint-refactor
"PLW2901", # redefined-loop-name
"RUF005", # collection-literal-concatenation
"RUF012", # mutable-class-default
"SIM105", # use-contextlib-suppress
"W191", # tab-indentation (formatter will fix)
]