forked from python-validators/validators
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:
ValidationFailure
is now ValidationError
- ref https://peps.python.org/pep-0008/#exception-names - import sorted using ruff - adds project URLs
- Loading branch information
Showing
42 changed files
with
187 additions
and
175 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 |
---|---|---|
|
@@ -7,9 +7,8 @@ name = "validators" | |
version = "0.21.1" | ||
description = "Python Data Validation for Humans™" | ||
authors = [{ name = "Konsta Vesterinen", email = "[email protected]" }] | ||
requires-python = ">=3.8" | ||
readme = "README.md" | ||
license = { text = "MIT" } | ||
readme = "README.md" | ||
keywords = ["validation", "validator", "python-validator"] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
|
@@ -26,12 +25,18 @@ classifiers = [ | |
"Programming Language :: Python :: Implementation :: CPython", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
] | ||
requires-python = ">=3.8" | ||
dependencies = [] | ||
|
||
#################### | ||
# Dependencies # | ||
#################### | ||
[project.urls] | ||
Homepage = "https://python-validators.github.io/validators" | ||
Documentation = "https://python-validators.github.io/validators" | ||
Repository = "https://github.com/python-validators/validators" | ||
Changelog = "https://github.com/python-validators/validators/blob/master/CHANGES.md" | ||
|
||
dependencies = [] | ||
########################### | ||
# Optional Dependencies # | ||
########################### | ||
|
||
[project.optional-dependencies] | ||
docs-offline = ["myst-parser>=2.0.0", "pypandoc-binary>=1.11", "sphinx>=7.1.1"] | ||
|
@@ -75,12 +80,15 @@ line-length = 100 | |
target-version = ["py38", "py39", "py310", "py311"] | ||
|
||
[tool.pyright] | ||
include = ["src", "tests"] | ||
extraPaths = ["src"] | ||
exclude = ["**/__pycache__", ".pytest_cache/", ".tox/", ".venv/", "site/"] | ||
pythonVersion = "3.8" | ||
pythonPlatform = "All" | ||
typeCheckingMode = "strict" | ||
|
||
[tool.pytest.ini_options] | ||
pythonpath = ["src"] | ||
|
||
[tool.ruff] | ||
select = ["E", "F", "I", "N", "D"] | ||
line-length = 100 | ||
|
@@ -107,25 +115,33 @@ env_list = lint, type, format, sast, py{38,39,310,311} | |
[testenv:lint] | ||
description = ruff linter | ||
deps = ruff | ||
deps = | ||
ruff | ||
commands = ruff check . | ||
[testenv:type] | ||
description = pyright type checker | ||
deps = pyright | ||
deps = | ||
pyright | ||
pyaml | ||
pypandoc-binary | ||
pytest | ||
commands = pyright . | ||
[testenv:format] | ||
description = code formatter | ||
deps = black | ||
deps = | ||
black | ||
commands = black . | ||
[testenv:sast] | ||
deps = bandit[toml] | ||
deps = | ||
bandit[toml] | ||
commands = bandit -c pyproject.toml -r . | ||
[testenv] | ||
description = unit tests | ||
deps = pytest | ||
deps = | ||
pytest | ||
commands = pytest . | ||
""" |
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
Oops, something went wrong.