Skip to content

pytask-latex 0.4.2 produces many warnings when used with pytask 0.4.5  #71

Description

@cpz-research

Following the steps in the documentation, I obtain several warnings.

@mark.latex(script=Path("test.tex"), document=Path("test.pdf"))
def task_compile_latex_document():
    pass
    
  • pytask-latex 0.4.2
  • pytask 0.4.5
The warnings
 C:\.conda\envs\gender_childcare\lib\site-packages\_pytask\mark\structures.py:197                                                                         │
│     C:\.conda\envs\gender_childcare\lib\site-packages\_pytask\mark\structures.py:197: FutureWarning: '@pytask.mark.depends_on' is deprecated starting    │
│     pytask v0.4.0 and will be removed in v0.5.0. To upgrade your project to the new syntax, read the tutorial on product and dependencies:               │
│     https://tinyurl.com/pytask-deps-prods.                                                                                                               │
│                                                                                                                                                          │
│       warnings.warn(                                                                                                                                     │
│                                                                                                                                                          │
│ C:\.conda\envs\gender_childcare\lib\typing.py:1506                                                                                                       │
│     C:\.conda\envs\gender_childcare\lib\typing.py:1506: UserWarning: Unknown pytask.mark.attributes - is this a typo? You can register custom marks to   │
│     avoid this warning.                                                                                                                                  │
│       if all(hasattr(instance, attr) and                                                                                                                 │
│                                                                                                                                                          │
│ C:\.conda\envs\gender_childcare\lib\typing.py:1506                                                                                                       │
│     C:\.conda\envs\gender_childcare\lib\typing.py:1506: UserWarning: Unknown pytask.mark.execute - is this a typo? You can register custom marks to      │
│     avoid this warning.                                                                                                                                  │
│       if all(hasattr(instance, attr) and                                                                                                                 │
│                                                                                                                                                          │
│ C:\.conda\envs\gender_childcare\lib\typing.py:1509                                                                                                       │
│     C:\.conda\envs\gender_childcare\lib\typing.py:1509: UserWarning: Unknown pytask.mark.execute - is this a typo? You can register custom marks to      │
│     avoid this warning.                                                                                                                                  │
│       getattr(instance, attr) is not None)                                                                                                               │
│                                                                                                                                                          │
│ C:\.conda\envs\gender_childcare\lib\site-packages\_pytask\mark\structures.py:197                                                                         │
│     C:\.conda\envs\gender_childcare\lib\site-packages\_pytask\mark\structures.py:197: FutureWarning: '@pytask.mark.produces' is deprecated starting      │
│     pytask v0.4.0 and will be removed in v0.5.0. To upgrade your project to the new syntax, read the tutorial on product and dependencies:               │
│     https://tinyurl.com/pytask-deps-prods.                                                                                                               │
│                                                                                                                                                          │
│       warnings.warn(                                                                                                                                     │
│                                                                                                                                                          │
│ C:\.conda\envs\gender_childcare\lib\typing.py:1506                                                                                                       │
│     C:\.conda\envs\gender_childcare\lib\typing.py:1506: UserWarning: Unknown pytask.mark.state - is this a typo? You can register custom marks to avoid  │
│     this warning.                                                                                                                                        │
│       if all(hasattr(instance, attr) and                                                                                                                 │
│                                                                                                                                                          │
│ C:\.conda\envs\gender_childcare\lib\typing.py:1509                                                                                                       │
│     C:\.conda\envs\gender_childcare\lib\typing.py:1509: UserWarning: Unknown pytask.mark.state - is this a typo? You can register custom marks to avoid  │
│     this warning.                                                                                                                                        │
│       getattr(instance, attr) is not None)                                                                                                               │
│                                                                                                                                                          │
│ C:\.conda\envs\gender_childcare\lib\typing.py:1506                                                                                                       │
│     C:\.conda\envs\gender_childcare\lib\typing.py:1506: UserWarning: Unknown pytask.mark.signature - is this a typo? You can register custom marks to    │
│     avoid this warning.                                                                                                                                  │
│       if all(hasattr(instance, attr) and                                                                                                                 │
│                                                                                                                                                          │
│ C:\.conda\envs\gender_childcare\lib\typing.py:1506                                                                                                       │
│     C:\.conda\envs\gender_childcare\lib\typing.py:1506: UserWarning: Unknown pytask.mark.function - is this a typo? You can register custom marks to     │
│     avoid this warning.                                                                                                                                  │
│       if all(hasattr(instance, attr) and                                                                                                                 │
│                                                                                                                                                          │
│ C:\.conda\envs\gender_childcare\lib\typing.py:1506                                                                                                       │
│     C:\.conda\envs\gender_childcare\lib\typing.py:1506: UserWarning: Unknown pytask.mark.markers - is this a typo? You can register custom marks to      │
│     avoid this warning.                                                                                                                                  │
│       if all(hasattr(instance, attr) and                                                                                                                 │
│                                                                                                                                                          │
│ C:\.conda\envs\gender_childcare\lib\typing.py:1506                                                                                                       │
│     C:\.conda\envs\gender_childcare\lib\typing.py:1506: UserWarning: Unknown pytask.mark.name - is this a typo? You can register custom marks to avoid   │
│     this warning.                                                                                                                                        │
│       if all(hasattr(instance, attr) and                                                                                                                 │
│                                                                                                                                                          │
│ C:\.conda\envs\gender_childcare\lib\typing.py:1506                                                                                                       │
│     C:\.conda\envs\gender_childcare\lib\typing.py:1506: UserWarning: Unknown pytask.mark.report_sections - is this a typo? You can register custom marks │
│     to avoid this warning.                                                                                                                               │
│       if all(hasattr(instance, attr) and                                                                                                                 │
│                                                                                                                                                          │
│ C:\.conda\envs\gender_childcare\lib\site-packages\_pytask\collect.py:245                                                                                 │
│     C:\.conda\envs\gender_childcare\lib\site-packages\_pytask\collect.py:245: UserWarning: Unknown pytask.mark.attr_that_definitely_does_not_exist - is  │
│     this a typo? You can register custom marks to avoid this warning.                                                                                    │
│       if hasattr(obj, attr_name) and not bool(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions