-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
108 lines (99 loc) · 2.75 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
# SPDX-FileCopyrightText: Copyright © 2023 Jamie Nguyen <[email protected]>
# SPDX-License-Identifier: MIT
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "pyright-polite"
description = "An intelligent cross-platform wrapper for pyright that makes it less noisy."
readme = "README.md"
requires-python = ">=3.7"
license = "MIT"
keywords = ["pyright", "quiet"]
authors = [
{ name = "Jamie Nguyen", email = "[email protected]" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Intended Audience :: Developers",
"Environment :: Console",
]
dependencies = [
"colorama ~= 0.4.6",
]
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/jamielinux/pyright-polite"
Issues = "https://github.com/jamielinux/pyright-polite/issues"
Source = "https://github.com/jamielinux/pyright-polite"
[project.scripts]
pyright-polite = "pyright_polite.main:main"
# pytest & coverage
[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
"--strict-markers",
"--strict-config",
"-ra",
]
markers = [
"asyncio",
"disable_autouse",
]
asyncio_mode = "auto"
[tool.coverage.run]
branch = true
command_line = "-m pytest"
omit = [
"tests/*"
]
source = ["."]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.coverage.paths]
source = [
".",
"/Users/runner/work/pyright-polite/pyright-polite",
'D:\a\pyright-polite\pyright-polite',
]
# scriv
[tool.scriv]
fragment_directory = ".changelog.d"
format = "md"
version = "literal: src/pyright-polite/__about__.py: __version__"
# checkers, formatters & linters
[tool.ruff]
target-version = "py37"
line-length = 100
pydocstyle.convention = "google"
select = [
"A", "ARG", "B", "BLE", "C", "C4", "C90", "COM", "D", "DTZ", "E", "EXE", "F", "FBT",
"G", "I", "INP", "ISC", "N", "PIE", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "S",
"SIM", "SLF", "T10", "T20", "TCH", "TRY", "W", "YTT"
]
ignore = [ "COM812", "TRY003" ]
exclude = [ "tests/test_integration/" ]
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]
"tests/conftest.py" = ["PT004"]
"tests/*" = ["D", "E501", "FBT", "INP001", "RUF001", "RUF002", "RUF003", "S", "SIM117"]
[tool.ruff.mccabe]
max-complexity = 10
[tool.black]
line-length = 100
target_version = ["py37", "py38", "py39", "py310", "py311"]
[tool.pyright]
include = ["."]