-
Notifications
You must be signed in to change notification settings - Fork 23
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 #137 from vincentsarago/feature/update-pre-commit-…
…config update pre-commit configuration and add python 3.12 in CI
- Loading branch information
Showing
9 changed files
with
79 additions
and
49 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
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 |
---|---|---|
|
@@ -13,13 +13,19 @@ classifiers=[ | |
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"License :: OSI Approved :: MIT License", | ||
] | ||
] | ||
keywords=["stac", "pydantic", "validation"] | ||
authors=[{ name = "Arturo Engineering", email = "[email protected]"}] | ||
license= { text = "MIT" } | ||
requires-python=">=3.8" | ||
dependencies = ["click>=8.1.7", "pydantic>=2.4.1", "geojson-pydantic>=1.0.0", "ciso8601~=2.3"] | ||
dependencies = [ | ||
"click>=8.1.7", | ||
"pydantic>=2.4.1", | ||
"geojson-pydantic>=1.0.0", | ||
"ciso8601~=2.3", | ||
] | ||
dynamic = ["version", "readme"] | ||
|
||
[project.scripts] | ||
|
@@ -30,16 +36,20 @@ homepage = "https://github.com/stac-utils/stac-pydantic" | |
repository ="https://github.com/stac-utils/stac-pydantic.git" | ||
|
||
[project.optional-dependencies] | ||
dev = ["arrow>=1.2.3", | ||
dev = [ | ||
"arrow>=1.2.3", | ||
"pytest>=7.4.2", | ||
"pytest-cov>=4.1.0", | ||
"pytest-icdiff>=0.8", | ||
"requests>=2.31.0", | ||
"shapely>=2.0.1", | ||
"dictdiffer>=0.9.0", | ||
"jsonschema>=4.19.1", | ||
"pyyaml>=6.0.1"] | ||
lint = ["types-requests>=2.31.0.5", | ||
"pyyaml>=6.0.1" | ||
] | ||
|
||
lint = [ | ||
"types-requests>=2.31.0.5", | ||
"types-jsonschema>=4.19.0.3", | ||
"types-PyYAML>=6.0.12.12", | ||
"black>=23.9.1", | ||
|
@@ -48,7 +58,8 @@ lint = ["types-requests>=2.31.0.5", | |
"Flake8-pyproject>=1.2.3", | ||
"mypy>=1.5.1", | ||
"pre-commit>=3.4.0", | ||
"tox>=4.11.3"] | ||
"tox>=4.11.3" | ||
] | ||
|
||
[tool.setuptools.dynamic] | ||
version = { attr = "stac_pydantic.version.__version__" } | ||
|
@@ -64,23 +75,27 @@ exclude = ["tests*"] | |
[tool.pytest.ini_options] | ||
addopts = "-sv --cov stac_pydantic --cov-report xml --cov-report term-missing --cov-fail-under 95" | ||
|
||
[tool.black] | ||
line-length = 88 | ||
target-version = ["py311"] | ||
|
||
[tool.isort] | ||
profile = "black" | ||
known_first_party = "stac_pydantic" | ||
known_third_party = ["pydantic", "geojson-pydantic", "click"] | ||
default_section = "THIRDPARTY" | ||
|
||
[tool.mypy] | ||
plugins = "pydantic.mypy" | ||
ignore_missing_imports = true | ||
exclude = ["tests", ".venv"] | ||
|
||
[tool.flake8] | ||
ignore = ["E203", "E501"] | ||
select = ["C","E","F","W","B","B950"] | ||
exclude = ["tests", ".venv"] | ||
max-line-length = 88 | ||
[tool.ruff] | ||
line-length = 88 | ||
select = [ | ||
"C", | ||
"E", | ||
"F", | ||
"W", | ||
"B", | ||
] | ||
ignore = [ | ||
"E203", # line too long, handled by black | ||
"E501", # do not perform function calls in argument defaults | ||
"B028", # No explicit `stacklevel` keyword argument found | ||
] |
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
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
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