15
0
Commit Graph

9 Commits

Author SHA256 Message Date
6e67e8b4c5 - Add set-tests-python-path.patch to fix tests inside osc build
environment, running the flake8 process with shell=True and forcing
  the PYTHONPATH.
- Update to 23.1.2:
  * Y011/Y014/Y015: Increase the maximum character length of literal
    numbers in default values from 7 to 10, allowing hexadecimal
    representation of 32-bit integers. Contributed by Avasam.
- 23.1.1
New error codes:
  * Y052: Disallow default values in global or class namespaces where
    the assignment does not have a type annotation. Stubs should be
    explicit about the type of all variables in the stub; without type
    annotations, the type checker is forced to make inferences, which
    may have unpredictable consequences. Enum members are excluded
    from this check, as are various special assignments such as
    __all__ and __match_args__.
Other changes:
  * Disallow numeric default values where len(str(default)) > 7. If a
    function has a default value where the string representation is
    greater than 7 characters, it is likely to be an implementation
    detail or a constant that varies depending on the system you're
    running on, such as sys.maxsize.
  * Disallow str or bytes defaults where the default is >50 characters
    long, for similar reasons.
  * Allow ast.Attribute nodes as default values for a small number of
    special cases, such as sys.maxsize and sys.executable.
  * Fewer Y020 false positives are now emitted when encountering
    default values in stub files.
- 23.1.0
Bugfixes:

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-pyi?expand=0&rev=17
2023-03-06 15:56:20 +00:00
6b42e7dfd3 Accepting request 1040478 from home:yarunachalam:branches:devel:languages:python
- Update to version 22.11.0: 
  * Bugfixes:
    Specify encoding when opening files. Prevents UnicodeDecodeError on Windows when the file contains non-CP1252 characters. Contributed by Avasam.
    Significant changes have been made to the Y041 check. Previously, Y041 flagged "redundant numeric unions"
    (e.g. float | int, complex | float or complex | int) in all contexts outside of type aliases. This was incorrect.
    PEP 484 only specifies that type checkers should treat int as an implicit subtype of float in the specific context of parameter annotations
    for functions and methods. Y041 has therefore been revised to only emit errors on "redundant numeric unions" in the context of parameter annotations.
  * Other changes:
    Support running with flake8 v6.

OBS-URL: https://build.opensuse.org/request/show/1040478
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-pyi?expand=0&rev=15
2022-12-06 09:43:58 +00:00
7b92b6e1ec - Remove LICENSE source, it's now in the release
- Remove python_module macro definition
- Update to 22.10.0:
  # Bugfixes:
  - Do not emit Y020 for empty strings. Y020 concerns "quoted annotations",
  - but an empty string can never be a quoted annotation.
  - Add special-casing so that Y020 is not emitted for __slots__ definitions
  - inside class blocks.
  - Expand Y035 to cover __slots__ definitions as well as __match_args__ and
  - __all__ definitions.
  - Expand Y015 so that errors are emitted for assignments to negative numbers.
  # Other changes:
  - Since v22.8.1, flake8-pyi has emitted a FutureWarning if run with flake8<5,
    warning that the plugin would soon become incompatible with flake8<5. Due
    to some issues that mean that some users are unable to upgrade to
    flake8>=5, however, flake8-pyi no longer intends to remove support for
    running the plugin with flake8<5 before Python 3.7 has reached end-of-life.
    As such, the FutureWarning is no longer emitted.
- 22.8.2:
  # New error codes:
  - Y047: Detect unused TypeAlias declarations.
  - Y049: Detect unused TypedDict definitions.
  - Y050: Prefer typing_extensions.Never for argument annotations over
    typing.NoReturn.
  - Y051: Detect redundant unions between Literal types and builtin supertypes
    (e.g. Literal["foo"] | str, or Literal[5] | int).
  # Other enhancements:
  - Support mypy_extensions.TypedDict.
- 22.8.1:
  - Add support for flake8 >= 5.0.0.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-pyi?expand=0&rev=13
2022-11-04 15:51:21 +00:00
044c357094 Accepting request 890237 from home:mcalabkova:branches:devel:languages:python
- Update to 20.10.0
  * Fix for Python 3.9's AST changes
  * skip typeshed test for older Python versions

OBS-URL: https://build.opensuse.org/request/show/890237
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-pyi?expand=0&rev=11
2021-05-04 06:44:16 +00:00
Tomáš Chvátal
818dd45bdb Accepting request 805923 from home:bnavigator:branches:devel:languages:python
- Update to v20.5.0
  * support flake8 3.8.0
  * introduce Y091 (function body must not contain "raise")
  * introduce Y015 (attribute must not have a default value other than "...")
  * introduce Y092 (top-level attribute must not have a default value)

OBS-URL: https://build.opensuse.org/request/show/805923
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-pyi?expand=0&rev=9
2020-05-16 09:20:27 +00:00
Tomáš Chvátal
20c0281928 Accepting request 682593 from home:jayvdb:py-check-failures
- Fix python base dependency to allow on Python 3.6
- Make dependency on python-typing explicit
- Update to v19.3.0
  - Set pyflakes minimum dependency
  - Blacken source

OBS-URL: https://build.opensuse.org/request/show/682593
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-pyi?expand=0&rev=7
2019-03-07 16:44:51 +00:00
Tomáš Chvátal
d5a38c32be Accepting request 680074 from home:jayvdb:flake8
- Remove workaround for two previously failing tests fixed upstream
- Add build dependency on Python 3.6+
- Add LICENSE
- Update to v19.2.0, notably support 3.7

OBS-URL: https://build.opensuse.org/request/show/680074
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-pyi?expand=0&rev=5
2019-02-28 10:44:16 +00:00
08d1e85c6e - Use tarball from the master as of 2018-12-08 to test #16
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-pyi?expand=0&rev=3
2018-12-08 21:25:15 +00:00
1c1d085b7f Accepting request 643916 from home:mcepl:work
- Initial packaging effort for flake8-pyi 18.3.1

OBS-URL: https://build.opensuse.org/request/show/643916
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-pyi?expand=0&rev=1
2018-10-23 10:09:37 +00:00