2023-07-10 16:28:38 +03:00
|
|
|
[project]
|
|
|
|
name = "treeherder"
|
|
|
|
version = "1.0.0"
|
|
|
|
description = "Defaut package, used for development or readthedocs"
|
|
|
|
|
|
|
|
[project.optional-dependencies]
|
|
|
|
docs = [
|
2023-09-25 04:53:10 +03:00
|
|
|
"mkdocs==1.5.3",
|
2024-03-11 03:11:02 +03:00
|
|
|
"mkdocs-material==9.5.13",
|
2023-07-10 16:28:38 +03:00
|
|
|
"mdx_truly_sane_lists==1.3",
|
|
|
|
]
|
|
|
|
|
|
|
|
[tool.setuptools]
|
|
|
|
packages = ["treeherder"]
|
|
|
|
|
2020-05-15 22:12:35 +03:00
|
|
|
[build-system]
|
2023-02-11 02:28:29 +03:00
|
|
|
requires = ["setuptools", "wheel"]
|
2020-05-15 22:12:35 +03:00
|
|
|
# A list of all of the optional dependencies, some of which are included in the
|
|
|
|
# below `extras`. They can be opted into by apps.
|
2022-11-08 20:23:33 +03:00
|
|
|
mkdocs = { version = "==1.4.2", optional = true }
|
2022-12-05 19:15:49 +03:00
|
|
|
mkdocs-material = { version = "==8.5.11", optional = true }
|
2022-08-15 17:29:04 +03:00
|
|
|
mdx_truly_sane_lists = { version = "1.3", optional = true }
|
2020-05-15 22:12:35 +03:00
|
|
|
|
2024-01-23 18:42:10 +03:00
|
|
|
[tool.ruff]
|
|
|
|
# Same as Black.
|
|
|
|
line-length = 100
|
|
|
|
|
|
|
|
# Assume Python 3.9
|
|
|
|
target-version = "py39"
|
|
|
|
|
|
|
|
# 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",
|
2024-02-02 23:02:10 +03:00
|
|
|
# pyupgrade
|
|
|
|
"UP",
|
2024-02-27 21:43:01 +03:00
|
|
|
# pep8-naming
|
|
|
|
"N"
|
2024-01-23 18:42:10 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
ignore = [
|
|
|
|
# E501: line too long
|
2024-01-25 13:33:57 +03:00
|
|
|
"E501",
|
2024-01-23 18:42:10 +03:00
|
|
|
]
|
|
|
|
|
2024-01-25 13:33:57 +03:00
|
|
|
# Also lint/format pyi files
|
|
|
|
extend-include = ["*.pyi"]
|
|
|
|
|
2024-01-23 18:42:10 +03:00
|
|
|
[tool.ruff.per-file-ignores]
|
|
|
|
# Ignore `module-import-not-at-top-of-file` rule of `pycodestyle`
|
|
|
|
"treeherder/model/models.py" = ["E402"]
|