-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
47 lines (41 loc) · 1.69 KB
/
Copy pathpyproject.toml
File metadata and controls
47 lines (41 loc) · 1.69 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
[tool.pytest.ini_options]
pythonpath = "lib"
testpaths = "tests"
python_files = "*.py"
# required to catch exception in main()
log_level = "DEBUG"
addopts = "-v --cov=rift --cov-report=term-missing"
[tool.pylint.main]
# Specify a score threshold under which the program will exit with error.
fail-under = 9.70
# Minimum Python version to use for version dependent checks. Will default to the
# version used to run pylint.
py-version = "3.6"
[tool.pylint."messages control"]
# Disable the message, report, category or checker with the given id(s). You can
# either give multiple identifiers separated by comma (,) or put this option
# multiple times (only on the command line, not in the configuration file where
# it should appear only once). You can also use "--disable=all" to disable
# everything first and then re-enable specific checks. For example, if you want
# to run only the similarities checker, you can use "--disable=all
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use "--disable=all --enable=classes
# --disable=W".
#
# Currently disabled checkers are:
# E1101: Used when a variable is accessed for a nonexistent member.
# W0511: Used when a warning note as FIXME or XXX is detected.
disable = ["E1101", "W0511"]
[tool.ruff]
target-version = "py37" # ruff >=0.16 dropped py36; pylint still targets 3.6
src = ["lib", "tests"]
extend-exclude = ["vendor"]
# E: pycodestyle errors
# F: Pyflakes
# I: isort — sort and organize imports
[tool.ruff.lint]
select = ["E", "F", "I"]
# Explicitely declare RPM binding as third-party to avoid ruff being confused
# with first-party rift.rpm.
[tool.ruff.lint.isort]
known-third-party = ["rpm"]