94197e409a- update to 24.9.0: * Don't emit Y053 for long strings inside Literal slices or * metadata strings inside Annotated slices. * flake8-pyi no longer supports being run using Python 3.8. As a result, it not longer depends on the third-party ast_decompiler package.
devel
Dirk Mueller2024-10-29 21:16:10 +00:00
f643c4eb01Accepting request 1181038 from devel:languages:python
Ana Guerrero
2024-06-17 17:29:35 +00:00
38e7ee9ca9- update to 24.6.0: * Allow the use of typing_extensions.TypeVar in stubs. * typing_extensions.TypeVar has the *default* parameter, which only exists on Python 3.13+ when using typing.TypeVar. * Reduce false positives from Y052 in relation to enum subclasses. * Declare support for Python 3.13Dirk Mueller2024-06-15 15:36:28 +00:00
016669c58aAccepting request 1169364 from devel:languages:python
Ana Guerrero
2024-04-21 18:27:09 +00:00
fddffc54b5- update to 24.4.1: * Y066: When using if/else with sys.version_info, put the code for new Python versions first. * Fix Y026 false positive: allow simple assignment to None in class scopes if the class is known to be an enum class.Dirk Mueller2024-04-20 13:45:27 +00:00
3d3fa109c0Accepting request 1165947 from devel:languages:python
Ana Guerrero
2024-04-07 20:13:14 +00:00
e3de752faa- update to 24.3.1: * Y064: Use simpler syntax to define final literal types. * For example, use x: Final = 42 instead of x: Final[Literal[42]] * Y065: Don't use bare Incomplete in parameter and return annotations. * Y090: Fix false positive for tuple[Unpack[Ts]].Dirk Mueller2024-04-07 09:02:55 +00:00
d2298553faAccepting request 1161521 from devel:languages:python
Ana Guerrero
2024-03-26 18:26:12 +00:00
b43c0ca5e9- update to 24.3.0: * Y063: Use PEP 570 syntax to mark positional-only arguments, rather than the older Python 3.7-compatible syntax described in PEP 484.Dirk Mueller2024-03-25 17:32:52 +00:00
dac6e65c35Accepting request 1137279 from devel:languages:python
Dominique Leuenberger
2024-01-06 17:34:58 +00:00
4b1b9a0a59- update to 24.1.0: * Y062: Disallow duplicate elements inside Literal[] slices. * Support flake8>=7.0.0 * Y061 is no longer emitted in situations where Y062 would also be emitted. * Improve error message for Y060. * Y023 now bans more imports from typing_extensions now that typeshed has dropped support for Python 3.7. * Y016: Fix false positive if a method had positional-only parameters (using PEP 570 syntax and the first positional-or-keyword parameter following the positional-only parameters used a custom TypeVar (see #455). * Y046: Fix false negative where an unused protocol would not be detected if the protocol was generic.Dirk Mueller2024-01-06 17:20:35 +00:00
a388144123Accepting request 1131208 from devel:languages:python
Ana Guerrero
2023-12-06 22:48:10 +00:00
7530a289d2- update to 23.11.0: * Y058: Use Iterator rather than Generator as the return value for simple __iter__ methods, and AsyncIterator rather than AsyncGenerator as the return value for simple __aiter__ methods. * Y059: Generic[] should always be the last base class, if it is present in the bases of a class. * Y060, which flags redundant inheritance from Generic[]. * Y061: Do not use None inside a Literal[] slice. * For example, use Literal["foo"] | None instead of Literal["foo", None]. * Y022 and Y037 now flag more imports from typing_extensions. * Y034 now attempts to avoid flagging methods inside classes that inherit from builtins.type, abc.ABCMeta and/or enum.EnumMeta. Classes that have one or more of these as bases are metaclasses, and PEP 673 forbids the use of typing(_extensions).Self for metaclasses. * Attempting to import typing_extensions.Text now causes Y039 to be emitted rather than Y023. * Y053 will no longer be emitted for the argument to @typing_extensions.deprecated. * Introduce Y090, which warns if you have an annotation such as tuple[int] or Tuple[int]. These mean "a tuple of length 1, in which the sole element is of type int". This is sometimes what you want, but more usually you'll want tuple[int, ...], which means "a tuple of arbitrary (possibly 0) length, in which all elements are of type int". * Y011 now ignores sentinel and _typeshed.sentinel in default values. * Y011/Y014/Y015: Allow math constants math.inf, math.nan, math.e,Dirk Mueller2023-12-05 21:09:18 +00:00
ebd2730857Accepting request 1105954 from devel:languages:python
Ana Guerrero
2023-08-28 15:14:02 +00:00
5e5d7cc4a9Accepting request 1105894 from home:mcalabkova:branches:devel:languages:pythonMarkéta Machová2023-08-25 18:47:40 +00:00
02faea6a2fAccepting request 1069697 from devel:languages:python
Dominique Leuenberger
2023-03-06 17:56:59 +00:00
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:Daniel Garcia2023-03-06 15:56:20 +00:00
887533eee3Accepting request 1040556 from devel:languages:python
Dominique Leuenberger
2022-12-06 13:24:23 +00:00
6b42e7dfd3Accepting request 1040478 from home:yarunachalam:branches:devel:languages:pythonMatej Cepl2022-12-06 09:43:58 +00:00
9eca87be78Accepting request 1033576 from devel:languages:python
Dominique Leuenberger
2022-11-04 21:00:06 +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.Daniel Garcia2022-11-04 15:51:21 +00:00
df487b45c1Accepting request 890238 from devel:languages:python
Dominique Leuenberger
2021-05-04 20:00:55 +00:00
044c357094Accepting request 890237 from home:mcalabkova:branches:devel:languages:pythonMarkéta Machová2021-05-04 06:44:16 +00:00
6a7971d7cdAccepting request 805997 from devel:languages:python
Yuchen Lin
2020-05-28 07:07:00 +00:00
818dd45bdbAccepting request 805923 from home:bnavigator:branches:devel:languages:python
Tomáš Chvátal
2020-05-16 09:20:27 +00:00
d742184c6bAccepting request 682604 from devel:languages:python
Stephan Kulow
2019-03-10 08:37:27 +00:00
20c0281928Accepting request 682593 from home:jayvdb:py-check-failures
Tomáš Chvátal
2019-03-07 16:44:51 +00:00
4d0cc2b5aaAccepting request 680080 from devel:languages:python
Dominique Leuenberger
2019-03-01 15:48:28 +00:00
d5a38c32beAccepting request 680074 from home:jayvdb:flake8
Tomáš Chvátal
2019-02-28 10:44:16 +00:00
8fb095ac1fAccepting request 656429 from devel:languages:python
Dominique Leuenberger
2018-12-10 11:29:27 +00:00
08d1e85c6e- Use tarball from the master as of 2018-12-08 to test #16Matej Cepl2018-12-08 21:25:15 +00:00
80ba0ffbe7Accepting request 643917 from devel:languages:python
Dominique Leuenberger
2018-10-23 18:41:43 +00:00
1c1d085b7fAccepting request 643916 from home:mcepl:workMatej Cepl2018-10-23 10:09:37 +00:00