Can this entry_point be done in pyproject.toml?
#4953
-
|
Is this possible yet? With 1.1? 1.2? If not, is it on the roadmap? The reason why I ask is I haven't seen this specific type of entry expressed yet in documentation for Context: This is flake8-import-order (github) Here is the from setuptools import find_packages, setup
setup(
entry_points={
'flake8_import_order.styles': ['mystyle = someproject.import_order:MyStyle']
},
# the rest
name='someproject',
packages=find_packages('src')),
package_dir={'': 'src', 'other': 'other'},
include_package_data=True,
)
from flake8_import_order import ImportType
from flake8_import_order.styles import Google
class MyStyle(Google):
accepts_application_package_names = True
[tool.poetry]
name = "someproject"
version = "1.0.0"
description = "My description"
authors = ["The Authors"]
packages = [
{ include = "someproject", from = "src" },
] My current workaround is to use If I answer this my self down the road I will update here. If not it's unsolved. |
Beta Was this translation helpful? Give feedback.
Answered by
finswimmer
Dec 30, 2021
Replies: 1 comment 1 reply
-
|
Hello @tony, I think you are looking for plugins: [tool.poetry.plugins."flake8_import_order.styles"]
"mystyle" = "someproject.import_order:MyStyle"fin swimmer |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tony
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @tony,
I think you are looking for plugins:
fin swimmer