-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from pytest-dev/rework-types
rework types, migrate parsing and add encoding
- Loading branch information
Showing
14 changed files
with
436 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ build/ | |
dist/ | ||
__pycache__ | ||
.tox/ | ||
src/iniconfig/_version.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,24 @@ | ||
repos: | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.2.0 | ||
rev: v3.3.1 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py37-plus] | ||
- repo: https://github.com/asottile/setup-cfg-fmt | ||
rev: v2.2.0 | ||
hooks: | ||
- id: setup-cfg-fmt | ||
args: [--include-version-classifiers] | ||
- repo: https://github.com/tox-dev/pyproject-fmt | ||
rev: "0.4.1" | ||
hooks: | ||
- id: pyproject-fmt | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 22.10.0 | ||
rev: 22.12.0 | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: 'v0.991' | ||
hooks: | ||
- id: mypy | ||
args: [] | ||
additional_dependencies: | ||
- "pytest==7.2.0" | ||
- "tomli" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,3 @@ include LICENSE | |
include example.ini | ||
include tox.ini | ||
include src/iniconfig/py.typed | ||
recursive-include src *.pyi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,70 @@ | ||
[build-system] | ||
requires = ["setuptools>=41.2.0", "wheel", "setuptools_scm>3"] | ||
build-backend = "hatchling.build" | ||
requires = [ | ||
"hatch-vcs", | ||
"hatchling", | ||
] | ||
|
||
build-backend = "setuptools.build_meta" | ||
[project] | ||
name = "iniconfig" | ||
description = "brain-dead simple config-ini parsing" | ||
readme = "README.rst" | ||
license = "MIT" | ||
authors = [ | ||
{ name = "Ronny Pfannschmidt", email = "[email protected]" }, | ||
{ name = "Holger Krekel", email = "[email protected]" }, | ||
] | ||
requires-python = ">=3.7" | ||
dynamic = [ | ||
"version", | ||
] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: MacOS :: MacOS X", | ||
"Operating System :: Microsoft :: Windows", | ||
"Operating System :: POSIX", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"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", | ||
"Topic :: Software Development :: Libraries", | ||
"Topic :: Utilities", | ||
] | ||
[project.urls] | ||
Homepage = "https://github.com/pytest-dev/iniconfig" | ||
|
||
[tool.setuptools_scm] | ||
|
||
[tool.hatch.version] | ||
source = "vcs" | ||
|
||
[tool.hatch.build.hooks.vcs] | ||
version-file = "src/iniconfig/_version.py" | ||
|
||
[tool.hatch.build.targets.sdist] | ||
include = [ | ||
"/src", | ||
] | ||
|
||
[tool.hatch.envs.test] | ||
dependencies = [ | ||
"pytest" | ||
] | ||
[tool.hatch.envs.test.scripts] | ||
default = "pytest" | ||
|
||
[[tool.hatch.envs.test.matrix]] | ||
python = ["3.7", "3.8", "3.9", "3.10", "3.11"] | ||
|
||
[tool.setuptools_scm] | ||
|
||
[tool.mypy] | ||
strict = true | ||
|
||
|
||
[tool.pytest.ini_options] | ||
testpaths = "testing" |
Oops, something went wrong.