test_ok2/testing/example_scripts
Pierre Sassoulas 4588653b24 Migrate from autoflake, black, isort, pyupgrade, flake8 and pydocstyle, to ruff
ruff is faster and handle everything we had prior.

isort configuration done based on the indication from
https://github.com/astral-sh/ruff/issues/4670, previousely based on
reorder-python-import (#11896)

flake8-docstrings was a wrapper around pydocstyle (now archived) that
explicitly asks to use ruff in https://github.com/PyCQA/pydocstyle/pull/658.

flake8-typing-import is useful mainly for project that support python 3.7
and the one useful check will be implemented in https://github.com/astral-sh/ruff/issues/2302

We need to keep blacken-doc because ruff does not handle detection
of python code inside .md and .rst. The direct link to the repo is
now used to avoid a redirection.

Manual fixes:
- Lines that became too long
- % formatting that was not done automatically
- type: ignore that were moved around
- noqa of hard to fix issues (UP031 generally)
- fmt: off and fmt: on that is not really identical
  between black and ruff
- autofix re-order in pre-commit from faster to slower

Co-authored-by: Ran Benita <ran@unusedvar.com>
2024-02-02 09:27:00 +01:00
..
acceptance Migrate from autoflake, black, isort, pyupgrade, flake8 and pydocstyle, to ruff 2024-02-02 09:27:00 +01:00
collect mypy: disallow untyped defs by default (#11862) 2024-01-28 10:12:42 -03:00
config/collect_pytest_prefix mypy: disallow untyped defs by default (#11862) 2024-01-28 10:12:42 -03:00
conftest_usageerror mypy: disallow untyped defs by default (#11862) 2024-01-28 10:12:42 -03:00
customdirectory mypy: disallow untyped defs by default (#11862) 2024-01-28 10:12:42 -03:00
dataclasses mypy: disallow untyped defs by default (#11862) 2024-01-28 10:12:42 -03:00
doctest/main_py mypy: disallow untyped defs by default (#11862) 2024-01-28 10:12:42 -03:00
fixtures mypy: disallow untyped defs by default (#11862) 2024-01-28 10:12:42 -03:00
issue88_initial_file_multinodes mypy: disallow untyped defs by default (#11862) 2024-01-28 10:12:42 -03:00
marks/marks_considered_keywords mypy: disallow untyped defs by default (#11862) 2024-01-28 10:12:42 -03:00
perf_examples/collect_stats Migrate from autoflake, black, isort, pyupgrade, flake8 and pydocstyle, to ruff 2024-02-02 09:27:00 +01:00
tmpdir mypy: disallow untyped defs by default (#11862) 2024-01-28 10:12:42 -03:00
unittest Migrate from autoflake, black, isort, pyupgrade, flake8 and pydocstyle, to ruff 2024-02-02 09:27:00 +01:00
warnings mypy: disallow untyped defs by default (#11862) 2024-01-28 10:12:42 -03:00
README.rst Small typo and grammar fix 2018-06-15 15:05:00 -03:00
__init__.py #7124: Fix `--doctest-modules` crashing when `__main__.py` is present (#8949) 2021-07-27 22:50:26 +01:00
issue_519.py mypy: disallow untyped defs by default (#11862) 2024-01-28 10:12:42 -03:00
junit-10.xsd Validate xunit2 files against the schema 2019-08-09 10:55:06 -03:00
pytest.ini prepare tests and disable warnings for asyncio unittest cases 2020-03-30 21:55:12 +02:00

README.rst

Example test scripts
=====================


The files in this folder are not direct tests, but rather example test suites that demonstrate certain issues/behaviours.

In the future we will move part of the content of the acceptance tests here in order to have directly testable code instead of writing out things and then running them in nested pytest sessions/subprocesses.

This will aid debugging and comprehension.