This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
forked from pycontribs/jira
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
82 lines (66 loc) · 1.94 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
[build-system]
requires = ["setuptools >= 60.0.0", "setuptools_scm[toml] >= 7.0.0"]
build-backend = "setuptools.build_meta"
# Setuptools config
# Equivalent to use_scm_version=True
[tool.setuptools_scm]
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests"]
python_files = ["test_*.py", "tests.py"]
addopts = '''-p no:xdist --durations=10 --tb=long -rxX -v --color=yes
--junitxml=build/results.xml
--cov-report=xml --cov jira'''
# these are important for distributed testing, to speedup their execution we minimize what we sync
rsyncdirs = ". jira demo docs"
rsyncignore = ".git"
# pytest-timeout, delete_project on jira cloud takes >70s
timeout = 80
# avoid useless warnings related to coverage skips
filterwarnings = ["ignore::pytest.PytestWarning"]
markers = ["allow_on_cloud: opt in for the test to run on Jira Cloud"]
[tool.mypy]
python_version = 3.8
warn_unused_configs = true
namespace_packages = true
# check_untyped_defs = true
[tool.ruff]
select = [
"E", # pydocstyle
"W", # pydocstyle
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"D", # docstrings
]
ignore = [
"E501", # We have way too many "line too long" errors at the moment
# TODO: Address these with time
"D100",
"D101",
"D102",
"D103",
"D105",
"D107",
"D401",
"D402",
"D417",
]
# Same as Black.
line-length = 88
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Assume Python 3.8. (minimum supported)
target-version = "py38"
# The source code paths to consider, e.g., when resolving first- vs. third-party imports
src = ["jira", "tests"]
[tool.ruff.isort]
known-first-party = ["jira", "tests"]
required-imports = ["from __future__ import annotations"]
[tool.ruff.per-file-ignores]
"jira/__init__.py" = [
"E402", # ignore import order in this file
]
[tool.ruff.pydocstyle]
# Use Google-style docstrings.
convention = "google"