-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Advertise typing support #10
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,9 @@ jobs: | |
- name: Lint | ||
run: | | ||
make lint | ||
- name: Typing | ||
run: | | ||
make mypy | ||
- name: Test | ||
run: | | ||
make test | ||
make test |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,54 @@ | ||
[build-system] | ||
build-backend = "setuptools.build_meta" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this mandatory? :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If I understand correctly, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, then :) |
||
requires = ["setuptools>=62"] | ||
|
||
[project] | ||
name = "pyiso4" | ||
dynamic = ["version"] | ||
authors = [ | ||
{name = "Pierre Beaujean", email = "pierre.beaujean@unamur.be"}, | ||
] | ||
description = "Abbreviate a scientific journal title following the ISO-4 rules" | ||
readme = "README.md" | ||
license = {file = "LICENSE"} | ||
authors = [{name = "Pierre Beaujean", email = "pierre.beaujean@unamur.be"}] | ||
requires-python = ">=3.8" | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"License :: OSI Approved :: MIT License", | ||
"Natural Language :: English", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
] | ||
|
||
dependencies = [ | ||
'unidecode' | ||
"unidecode", | ||
] | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"flake8", | ||
"flake8-quotes", | ||
"autopep8", | ||
"bump2version", | ||
"flake8", | ||
"flake8-quotes", | ||
"mypy", | ||
] | ||
|
||
[project.scripts] | ||
iso4abbreviate = 'pyiso4.script:main' | ||
iso4abbreviate = "pyiso4.script:main" | ||
|
||
[tool.setuptools] | ||
packages = ['pyiso4'] | ||
packages = ["pyiso4"] | ||
|
||
[tool.setuptools.package-data] | ||
pyiso4 = ["py.typed"] | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "pyiso4.__version__"} | ||
version = {attr = "pyiso4.__version__"} | ||
|
||
[tool.mypy] | ||
strict = true | ||
hide_error_codes = false | ||
warn_unused_ignores = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That should be
"Lexer"
notNone
, then :)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
__init__
always returnsNone
(__new__
returns the type of the object)https://docs.python.org/3/reference/datamodel.html#object.__init__
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, ok, I thought they were returning the Object itself. Good to know :)