Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-2002

Use a stricter mypy configuration

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: NoFixVersionApplicable
    • Fix Version/s: 4.4.2
    • Component/s: Framework

      Description

      Set those parameters as default ones to enable stricter mypy checks:

      # Ensure full coverage
      disallow_untyped_calls = True
      disallow_untyped_defs = True
      disallow_incomplete_defs = True
      disallow_untyped_decorators = True
      
      # Restrict dynamic typing (a little)
      disallow_any_generics = True  # e.g. `x: List[Any]` or x: List`
      disallow_subclassing_any = True
      warn_return_any = True  # from functions not declared to return Any
      
      # Ensure we know what we do
      warn_redundant_casts = True
      warn_unused_ignores = True
      warn_unused_configs = True
      
      # Imports managment
      ignore_missing_imports = True
      follow_imports = True
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 4 hours
                  1d 4h

                    PagerDuty