forked from mozilla/treeherder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
56 lines (46 loc) · 1.2 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
[project]
name = "treeherder"
version = "1.0.0"
description = "Defaut package, used for development or readthedocs"
[project.optional-dependencies]
docs = [
"mkdocs==1.6.1",
"mkdocs-material==9.5.44",
"mdx_truly_sane_lists==1.3",
]
[tool.setuptools]
packages = ["treeherder"]
[build-system]
requires = ["setuptools", "wheel"]
# A list of all of the optional dependencies, some of which are included in the
# below `extras`. They can be opted into by apps.
mkdocs = { version = "==1.6.0", optional = true }
mkdocs-material = { version = "==9.5.24", optional = true }
mdx_truly_sane_lists = { version = "1.3", optional = true }
[tool.ruff]
# Same as Black.
line-length = 100
# Assume Python 3.10
target-version = "py310"
# In addition to the standard set of exclusions, omit all tests, plus a specific file.
extend-exclude = ["*/.*/",".*/","__pycache__","node_modules"]
select = [
# pycodestyle
"E",
"W",
# pyflakes
"F",
# pyupgrade
"UP",
# pep8-naming
"N"
]
ignore = [
# E501: line too long
"E501",
]
# Also lint/format pyi files
extend-include = ["*.pyi"]
[tool.ruff.per-file-ignores]
# Ignore `module-import-not-at-top-of-file` rule of `pycodestyle`
"treeherder/model/models.py" = ["E402"]