1. 07 5月, 2021 5 次提交
    • R
      Speed up test suite via distributed testing (#2196) · 4fc1354a
      Richard Si 提交于
      * Speed up test suite via distributed testing
      
      Since we now run the test suite twice, one with Python 2 and another
      without, full test runs are getting pretty slow. Let's try to
      fix that with parallization.
      
      Also use verbose mode on CI since more logs is usually better since
      getting more is quite literally impossible.
      
      The main issue we'll face with this is we'll hit
      https://github.com/pytest-dev/pytest-xdist/issues/620 sometimes
      (although pretty rarely). I suppose we can test this and see if how bad
      this bug is for us, and revert if necessary down the line.
      
      Also let's have some colours 🎉
      4fc1354a
    • Ł
      Mark blackd tests with the `blackd` optional marker (#2204) · d0e06b53
      Łukasz Langa 提交于
      This is a follow-up of #2203 that uses a pytest marker instead of a bunch of
      `skipUnless`.  Similarly to the Python 2 tests, they are running by default and
      will crash on an unsuspecting contributor with missing dependencies.  This is
      by design, we WANT contributors to test everything.  Unless we actually don't
      and then we can run:
      
        pytest --run-optional=no_blackd
      
      Relatedly, bump required aiohttp to 3.6.0 at least to get rid of expected
      failures on Python 3.8 (see 6b5eb7d4).
      d0e06b53
    • Ł
    • K
      Do not use gitignore if explicitly passing excludes (#2170) · 1fe2efd8
      Kaleb Barrett 提交于
      Closes #2164.
      
      Changes behavior of how .gitignore is handled. With this change, the rules in .gitignore are only used as a fallback if no exclusion rule is explicitly passed on the command line or in pyproject.toml. Previously they were used regardless if explicit exclusion rules were specified, preventing any overriding of .gitignore rules.
      
      Those that depend only on .gitignore for their exclusion rules will not be affected. Those that use both .gitignore and exclude will find that exclude will act more like actually specifying exclude and not just another extra-excludes. If the previous behavior was desired, they should move their rules from exclude to extra-excludes.
      1fe2efd8
    • R
      Fix broken Action entrypoint (#2202) · 4b7b5ed5
      Richard Si 提交于
      4b7b5ed5
  2. 06 5月, 2021 1 次提交
    • S
      Simplify GitHub Action entrypoint (#2119) · 53168363
      Shota Ray Imaki 提交于
      This commit simplifies entrypoint.sh for GitHub Actions by removing
      duplication of args and black_args (cf. #1909).
      
      The reason why #1909 uses the input id black_args is to avoid an overlap
      with args, but this naming seems redundant. So let me suggest option
      and src, which are consistent with CLI. Backward compatibility is
      guaranteed; Users can still use black_args as well.
      
      Commit history pre-merge:
      * Simplify GitHub Action entrypoint (#1909)
      * Fix prettier
      * Emit a warning message when `black_args` is used
      
        This deprecation should be visible in GitHub Action's UI now.
      Co-authored-by: NShota Ray Imaki <shota.imaki.0801@gmail.com>
      Co-authored-by: NRichard Si <63936253+ichard26@users.noreply.github.com>
      53168363
  3. 05 5月, 2021 3 次提交
  4. 04 5月, 2021 7 次提交
  5. 02 5月, 2021 3 次提交
  6. 28 4月, 2021 6 次提交
  7. 27 4月, 2021 9 次提交
  8. 26 4月, 2021 6 次提交