-
Notifications
You must be signed in to change notification settings - Fork 48
/
pyproject.toml
101 lines (94 loc) · 2.44 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
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
100
101
[tool.towncrier]
package = "galaxy_importer"
directory = "CHANGES/"
filename = "CHANGES.rst"
title_format = "galaxy-importer {version} ({project_date})"
issue_format = "`AAH-{issue} <https://issues.redhat.com/browse/AAH-{issue}>`_"
[tool.black]
line-length = 100
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = [
# pyflakes
"F",
# pycodestyle errors
"E",
# pycodestyle warnings
"W",
# flake8-builtins
"A",
# flake8-bugbear
"B",
# flake8-comprehensions
"C4",
# flake8-commas
"COM",
# flake8-datetime
"DTZ",
# flake8-import-conventions
"ICN",
# flake8-executable
"EXE",
# flake8-no-pep420
"INP",
# flake8-logging
"LOG",
# pyupgrade
"UP",
# flake8-pie
"PIE",
# flake8-pytest-style
"PT",
# flake8-pyi
"PYI",
# ruff specific rules
"RUF",
# flake8-simplify
"SIM",
# flake8-debugger
"T10",
# flake8-todos
"TD"
]
extend-ignore = [
# B904 requires using `raise ... from ...` to explicitly tell what to do with "parent"
# exception. Would be nice to fix, but ignoring for now.
"B904",
# COM812 Trailing comma missing
# Incompatible with black
"COM812",
# UP032 Use f-string instead of `format` call.
# No need to replace all str.format usage with f-strings in entire codebase.
"UP032",
# PT004,PT005 are incorrect and deprecated
# See https://github.com/astral-sh/ruff/issues/8796
"PT004",
"PT005",
# PT009 Use a regular `assert` instead of unittest-style
# PT027 Use `pytest.raises` instead of unittest-style `assertRaises`
# Ignoring, since we have mixed pytest and legacy unittest styled tests
"PT009",
"PT027",
# RUF012 Mutable class attributes should be annotated with `typing.ClassVar`
# We don't enforce type annotations at the moment.
"RUF012",
# TD001 Invalid TODO tag
# We use TODO, FIXME and REVIEW tags
"TD001",
# TD003 Missing issue link on the line following this TODO
# We don't create issues for TODOs
"TD003",
]
[tool.ruff.lint.per-file-ignores]
# The `galaxy_importer` is the only top-level package.
"!galaxy_importer/**" = ["INP"]
[tool.ruff.lint.flake8-builtins]
# `license()` buit-in function is added by the site module.
builtins-ignorelist = ["id", "dir", "license"]
[tool.coverage.run]
relative_files = true
branch = true
[tool.coverage.report]
fail_under = 95.50
precision = 2