-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
110 lines (99 loc) · 2.64 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
102
103
104
105
106
107
108
109
110
[build-system]
build-backend = "hatchling.build"
requires = [
"hatchling >=1.12.2",
"hatch-vcs >=0.2.0",
]
[project]
classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"conda >=24.11",
]
description = "A conda plugin for Anaconda Telemetry"
dynamic = [
"version",
]
license = {file = "LICENSE"}
name = "conda-anaconda-telemetry"
readme = "README.md"
requires-python = ">=3.9"
[project.entry-points.conda]
conda-anaconda-telemetry = "conda_anaconda_telemetry.hooks"
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:", # ignore type checking imports
]
omit = [
"tests/*",
]
show_missing = true
skip_covered = true
sort = "Miss"
[tool.coverage.run]
# store relative paths in coverage information
relative_files = true
[tool.hatch.build.hooks.vcs]
version-file = "conda_anaconda_telemetry/_version.py"
[tool.hatch.version]
source = "vcs"
[tool.hatch.version.raw-options]
local_scheme = "dirty-tag"
[tool.pytest.ini_options]
addopts = [
"--color=yes",
# "--cov=conda_anaconda_telemetry", # passed in test runner scripts instead (avoid debugger)
"--cov-report=term", # print summary table to screen
"--cov-report=xml", # for codecov/codecov-action upload
"--tb=native",
"-vv",
]
testpaths = ["tests"]
[tool.ruff]
target-version = "py39"
[tool.ruff.lint]
extend-per-file-ignores = {"tests/*" = ["D", "S101"]}
ignore = ["D203", "D213", "ISC001"]
# see https://docs.astral.sh/ruff/rules/
select = [
"A", # flake8-builtins
"ANN", # flake8-annotations
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"C", # flake8-commas
"C4", # flake8-comprehensions
"C90", # mccabe
"D", # pydocstyle
"DTZ", # flake8-datetimez
"E", # pycodestyle errors
"ERA", # eradicate
"F", # pyflakes
"FA", # flake8-future-annotations
"G", # flake8-logging-format
"I", # isort
"ISC", # flake8-implicit-str-concat
"LOG", # flake8-logging
"N", # pep8-naming
"PIE", # flake8-pie
"PTH", # flake8-use-pathlib
"RUF", # Ruff-specific rules
"S", # flake8-bandit
"SIM", # flake8-simplify
"T10", # flake8-debugger
"TCH", # flake8-type-checking
"UP", # pyupgrade
"W", # pycodestyle warnings
"YTT", # flake8-2020
]
[tool.setuptools]
packages = ["conda_anaconda_telemetry"]