|
1 | 1 | [build-system]
|
2 |
| -requires = ['hatchling'] |
3 |
| -build-backend = 'hatchling.build' |
| 2 | +requires = ["hatchling"] |
| 3 | +build-backend = "hatchling.build" |
4 | 4 |
|
5 | 5 | [tool.hatch.build.targets.sdist]
|
6 | 6 | # limit which files are included in the sdist (.tar.gz) asset,
|
7 | 7 | # see https://github.com/pydantic/pydantic/pull/4542
|
8 |
| -include = ['/README.md', '/Makefile', '/pytest_examples', '/tests'] |
| 8 | +include = ["/README.md", "/Makefile", "/pytest_examples", "/tests"] |
9 | 9 |
|
10 | 10 | [project]
|
11 |
| -name = 'pytest-examples' |
12 |
| -version = '0.0.14' |
13 |
| -description = 'Pytest plugin for testing examples in docstrings and markdown files.' |
| 11 | +name = "pytest-examples" |
| 12 | +version = "0.0.14" |
| 13 | +description = "Pytest plugin for testing examples in docstrings and markdown files." |
14 | 14 | authors = [
|
15 |
| - { name = 'Samuel Colvin', email = '[email protected]'}, |
| 15 | + { name = "Samuel Colvin", email = "[email protected]"}, |
16 | 16 | ]
|
17 |
| -license = 'MIT' |
18 |
| -readme = 'README.md' |
| 17 | +license = "MIT" |
| 18 | +readme = "README.md" |
19 | 19 | classifiers = [
|
20 |
| - 'Programming Language :: Python', |
21 |
| - 'Programming Language :: Python :: 3', |
22 |
| - 'Programming Language :: Python :: 3 :: Only', |
23 |
| - 'Programming Language :: Python :: 3.8', |
24 |
| - 'Programming Language :: Python :: 3.9', |
25 |
| - 'Programming Language :: Python :: 3.10', |
26 |
| - 'Programming Language :: Python :: 3.11', |
27 |
| - 'Programming Language :: Python :: 3.12', |
28 |
| - 'Programming Language :: Python :: 3.13', |
29 |
| - 'Intended Audience :: Developers', |
30 |
| - 'License :: OSI Approved :: MIT License', |
31 |
| - 'Operating System :: Unix', |
32 |
| - 'Operating System :: POSIX :: Linux', |
33 |
| - 'Environment :: Console', |
34 |
| - 'Environment :: MacOS X', |
35 |
| - 'Framework :: Pytest', |
36 |
| - 'Topic :: Software Development :: Libraries :: Python Modules', |
| 20 | + "Programming Language :: Python", |
| 21 | + "Programming Language :: Python :: 3", |
| 22 | + "Programming Language :: Python :: 3 :: Only", |
| 23 | + "Programming Language :: Python :: 3.8", |
| 24 | + "Programming Language :: Python :: 3.9", |
| 25 | + "Programming Language :: Python :: 3.10", |
| 26 | + "Programming Language :: Python :: 3.11", |
| 27 | + "Programming Language :: Python :: 3.12", |
| 28 | + "Programming Language :: Python :: 3.13", |
| 29 | + "Intended Audience :: Developers", |
| 30 | + "License :: OSI Approved :: MIT License", |
| 31 | + "Operating System :: Unix", |
| 32 | + "Operating System :: POSIX :: Linux", |
| 33 | + "Environment :: Console", |
| 34 | + "Environment :: MacOS X", |
| 35 | + "Framework :: Pytest", |
| 36 | + "Topic :: Software Development :: Libraries :: Python Modules", |
37 | 37 | ]
|
38 |
| -requires-python = '>=3.8' |
| 38 | +requires-python = ">=3.8" |
39 | 39 | dependencies = [
|
40 |
| - 'pytest>=7', |
41 |
| - 'black>=23', |
42 |
| - 'ruff>=0.5.0', |
| 40 | + "pytest>=7", |
| 41 | + "black>=23", |
| 42 | + "ruff>=0.5.0", |
43 | 43 | ]
|
44 | 44 |
|
45 | 45 | [project.entry-points.pytest11]
|
46 |
| -examples = 'pytest_examples' |
| 46 | +examples = "pytest_examples" |
47 | 47 |
|
48 | 48 | [project.urls]
|
49 |
| -repository = 'https://github.com/pydantic/pytest-examples' |
| 49 | +repository = "https://github.com/pydantic/pytest-examples" |
50 | 50 |
|
51 | 51 | [dependency-groups]
|
52 | 52 | dev = [
|
53 |
| - 'coverage[toml]>=7.6.1', |
54 |
| - 'pytest-pretty>=1.2.0', |
| 53 | + "coverage[toml]>=7.6.1", |
| 54 | + "pytest-pretty>=1.2.0", |
55 | 55 | ]
|
56 | 56 | lint = [
|
57 |
| - 'pre-commit>=3.5.0', |
58 |
| - 'pyright>=1.1.389', |
59 |
| - 'ruff>=0.7.4', |
| 57 | + "pre-commit>=3.5.0", |
| 58 | + "pyright>=1.1.389", |
| 59 | + "ruff>=0.7.4", |
60 | 60 | ]
|
61 | 61 |
|
62 | 62 | [tool.pytest.ini_options]
|
63 |
| -testpaths = ['tests', 'example'] |
64 |
| -filterwarnings = 'error' |
| 63 | +testpaths = ["tests", "example"] |
| 64 | +filterwarnings = "error" |
65 | 65 | xfail_strict = true
|
66 | 66 |
|
67 | 67 | [tool.ruff]
|
68 | 68 | line-length = 120
|
69 |
| -target-version = 'py39' |
| 69 | +target-version = "py39" |
70 | 70 | include = [
|
71 |
| - 'pytest_examples/**/*.py', |
72 |
| - 'tests/**/*.py', |
73 |
| - 'examples/**/*.py', |
| 71 | + "pytest_examples/**/*.py", |
| 72 | + "tests/**/*.py", |
| 73 | + "examples/**/*.py", |
74 | 74 | ]
|
75 |
| -exclude = ['tests/cases_update/*.py'] |
| 75 | +exclude = ["tests/cases_update/*.py"] |
76 | 76 |
|
77 | 77 | [tool.ruff.lint]
|
78 | 78 | extend-select = [
|
79 |
| - 'Q', |
80 |
| - 'RUF100', |
81 |
| - 'C90', |
82 |
| - 'UP', |
83 |
| - 'I', |
84 |
| - 'D', |
| 79 | + "Q", |
| 80 | + "RUF100", |
| 81 | + "C90", |
| 82 | + "UP", |
| 83 | + "I", |
| 84 | + "D", |
85 | 85 | ]
|
86 |
| -flake8-quotes = { inline-quotes = 'single', multiline-quotes = 'double' } |
87 |
| -isort = { combine-as-imports = true, known-first-party = ['pytest_examples'] } |
| 86 | +flake8-quotes = { inline-quotes = "single", multiline-quotes = "double" } |
| 87 | +isort = { combine-as-imports = true, known-first-party = ["pytest_examples"] } |
88 | 88 | mccabe = { max-complexity = 15 }
|
89 | 89 | ignore = [
|
90 |
| - 'D100', # ignore missing docstring in module |
91 |
| - 'D101', # ignore missing docstring in public class |
92 |
| - 'D102', # ignore missing docstring in public method |
93 |
| - 'D103', # ignore missing docstring in public function |
94 |
| - 'D104', # ignore missing docstring in public package |
95 |
| - 'D105', # ignore missing docstring in magic methods |
96 |
| - 'D107', # ignore missing docstring in __init__ methods |
| 90 | + "D100", # ignore missing docstring in module |
| 91 | + "D101", # ignore missing docstring in public class |
| 92 | + "D102", # ignore missing docstring in public method |
| 93 | + "D103", # ignore missing docstring in public function |
| 94 | + "D104", # ignore missing docstring in public package |
| 95 | + "D105", # ignore missing docstring in magic methods |
| 96 | + "D107", # ignore missing docstring in __init__ methods |
97 | 97 | ]
|
98 | 98 |
|
99 | 99 | [tool.ruff.lint.pydocstyle]
|
100 |
| -convention = 'google' |
| 100 | +convention = "google" |
101 | 101 |
|
102 | 102 | [tool.ruff.format]
|
103 | 103 | docstring-code-format = true
|
104 |
| -quote-style = 'single' |
| 104 | +quote-style = "single" |
105 | 105 |
|
106 | 106 | [tool.coverage.run]
|
107 |
| -source = ['pytest_examples'] |
| 107 | +source = ["pytest_examples"] |
108 | 108 | branch = true
|
109 | 109 |
|
110 | 110 | [tool.coverage.report]
|
111 | 111 | precision = 2
|
112 | 112 | exclude_lines = [
|
113 |
| - 'pragma: no cover', |
114 |
| - 'raise NotImplementedError', |
115 |
| - 'if TYPE_CHECKING:', |
116 |
| - '@overload', |
| 113 | + "pragma: no cover", |
| 114 | + "raise NotImplementedError", |
| 115 | + "if TYPE_CHECKING:", |
| 116 | + "@overload", |
117 | 117 | ]
|
118 | 118 |
|
119 | 119 | [tool.pyright]
|
120 |
| -#typeCheckingMode = 'strict' |
| 120 | +#typeCheckingMode = "strict" |
121 | 121 | reportUnnecessaryTypeIgnoreComment = true
|
122 | 122 | reportMissingTypeStubs = false
|
123 |
| -include = ['pytest_examples'] |
124 |
| -venvPath = '.venv' |
| 123 | +include = ["pytest_examples"] |
| 124 | +venvPath = ".venv" |
0 commit comments