Unverified Commit c1c24183 authored by Cooper Lees's avatar Cooper Lees Committed by GitHub
Browse files

[primer] Enable everything (#2288)

See if we pass all our repos with experimental string processing enabled.
Django probably needed:
- Ignores >= 3.8 only

We could support PEP440 version specifiers, but that would introduce the packaging module as a dependency that I'd like to avoid ... Or I could implement a poor persons version or vendor

Commit history before merge:
 * [primer] Enable everything
 * Add exclude extend to django CLI args for primer
 * Change default timeout to from 5 to 10 mins for a primer project
 * Skip string normalization for Django
 * Limit Django to >= 3.8 due to := operator
parent 99b68e59
Loading
Loading
Loading
Loading
+1 −1
Changes for src/black_primer/lib.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ class Results(NamedTuple):

async def _gen_check_output(
    cmd: Sequence[str],
    timeout: float = 300,
    timeout: float = 600,
    env: Optional[Dict[str, str]] = None,
    cwd: Optional[Path] = None,
) -> Tuple[bytes, bytes]:
+7 −6
Changes for src/black_primer/primer.json: 7 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -30,13 +30,16 @@
      "py_versions": ["all"]
    },
    "django": {
      "disabled_reason": "black --check --diff returned 123 on tests_syntax_error.py",
      "disabled": true,
      "cli_arguments": ["--experimental-string-processing"],
      "cli_arguments": [
        "--experimental-string-processing",
        "--skip-string-normalization",
        "--extend-exclude",
        "/((docs|scripts)/|django/forms/models.py|tests/gis_tests/test_spatialrefsys.py|tests/test_runner_apps/tagged/tests_syntax_error.py)"
      ],
      "expect_formatting_changes": true,
      "git_clone_url": "https://github.com/django/django.git",
      "long_checkout": false,
      "py_versions": ["all"]
      "py_versions": ["3.8", "3.9"]
    },
    "flake8-bugbear": {
      "cli_arguments": ["--experimental-string-processing"],
@@ -53,8 +56,6 @@
      "py_versions": ["all"]
    },
    "pandas": {
      "disabled_reason": "black-primer runs failing on Pandas - #2193",
      "disabled": true,
      "cli_arguments": ["--experimental-string-processing"],
      "expect_formatting_changes": true,
      "git_clone_url": "https://github.com/pandas-dev/pandas.git",