Skip to content

Commit

Permalink
Feature typing2 (#40)
Browse files Browse the repository at this point in the history
* more typing
* mypy work and some docs
  • Loading branch information
jvanasco committed Apr 10, 2024
1 parent 3f27f1b commit d1183b4
Show file tree
Hide file tree
Showing 11 changed files with 338 additions and 113 deletions.
1 change: 1 addition & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
include:
# ubuntu-latest[22.04] does not have: py36
- os: "ubuntu-20.04"
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
1.0 will be a complete api overhaul


0.12.1
* typing
* added `METADATA_PARSER_FUTURE` environment variable
`export METADATA_PARSER_FUTURE=1` to enable
* is_parsed_valid_url can accept a ParseResultBytes object now

0.12.0
* drop python 2.7
* initial typing support
Expand Down
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ them proper attention is not guaranteed.
The current MAJOR release is `0`.
A `1` MAJOR release is planned, and will have an entirely different structure and API.

Future deprecations will raise warnings.

By populating the following environment variable, future deprecations will raise exceptions:
export METADATA_PARSER_FUTURE=1

Installation
=============
Expand Down
13 changes: 13 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
[mypy]
check_untyped_defs = True
exclude = (?x)(
^setup\.py$
| ^workspace-demos\/
)

[mypy-httpbin.*]
ignore_missing_imports = True

[mypy-pytest_httpbin.*]
ignore_missing_imports = True

[mypy-requests_toolbelt.*]
ignore_missing_imports = True
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ per-file-ignores =
src/metadata_parser/__init__.py: E501,I202
tests/*: E501
tests/_compat.py: F401
exclude = .eggs/*, .pytest_cache/*, .tox/*, build/*, dist/*
exclude = .eggs/*, .pytest_cache/*, .tox/*, build/*, dist/*, workspace-demos/*
application_import_names = metadata_parser
import_order_style = appnexus
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Text Processing :: Markup :: HTML",
"Topic :: Software Development :: Libraries :: Python Modules",
],
Expand Down
Loading

0 comments on commit d1183b4

Please sign in to comment.