1. 02 10月, 2020 3 次提交
  2. 23 9月, 2020 1 次提交
  3. 21 9月, 2020 3 次提交
  4. 15 9月, 2020 1 次提交
  5. 12 9月, 2020 1 次提交
  6. 02 9月, 2020 2 次提交
  7. 27 8月, 2020 4 次提交
    • Anthony Sottile's avatar
      Merge branch 'bugfix/cpython-3770-semopen-missing' into 'master' · 3765318d
      Anthony Sottile 创作于
      Support linting when missing sem_open syscall
      
      See merge request pycqa/flake8!448
      3765318d
    • Nekokatt's avatar
      Support linting when missing sem_open syscall · e6a5f6a6
      Nekokatt 创作于
      Platforms such as Termux on Android, and other exotic devices
      do not provide a sem_open implementation on the OS level. This
      is problematic, as the error resulting from this occurs when
      calling multiprocessing.Pool, throwing an unhandled ImportError.
      
      The issue itself is outlined in https://bugs.python.org/issue3770.
      
      This change allows devices missing this system call to respond
      to the missing feature by falling back to synchronous execution,
      which appears to be the default behaviour if the multiprocessing
      module is not found.
      
      This change also adds a potential fix for developers working
      on platforms where multiprocessing itself cannot be imported.
      The existing code would set the name referencing the import to
      None, but there are no clear checks to ensure this does not
      result in an AttributeError later when multiprocessing.Pool
      has accession attempts.
      
      Existing users should see no difference in functionality, as they
      will assumably already be able to use flake8, so will not be
      missing this sem_open call.
      
      Users on devices without the sem_open call will now be able
      to use flake8 where they would be unable to before due to
      unhandled ImportErrors.
      e6a5f6a6
    • Anthony Sottile's avatar
      Merge branch 'upgrade_black' into 'master' · abdc9b14
      Anthony Sottile 创作于
      upgrade black and run via pre-commit
      
      See merge request pycqa/flake8!449
      abdc9b14
    • Anthony Sottile's avatar
      upgrade black and run via pre-commit · f0e1324d
      Anthony Sottile 创作于
      f0e1324d
  8. 22 8月, 2020 4 次提交
  9. 28 7月, 2020 4 次提交
  10. 20 7月, 2020 2 次提交
    • Anthony Sottile's avatar
      Merge branch 'pytest6' into 'master' · 029fa1d7
      Anthony Sottile 创作于
      Tests: Add a value to mocked entry_points, so pytest 6+ can log it
      
      See merge request pycqa/flake8!443
      029fa1d7
    • Miro Hrončok's avatar
      Tests: Add a value to mocked entry_points, so pytest 6+ can log it · 91b09d5b
      Miro Hrončok 创作于
      Pytest 6.0.0rc1 attempts to log a repr of our mocked entry_point,
      but it fails, becasue the repr metohod expects a valua attribute:
      
      Reproducer:
      
          $ tox -e py38 --force-dep 'pytest==6.0.0rc1'
          ...
          Traceback (most recent call last):
            File "/usr/lib/python3.8/logging/__init__.py", line 1081, in emit
              msg = self.format(record)
            File "/usr/lib/python3.8/logging/__init__.py", line 925, in format
              return fmt.format(record)
            File "/usr/lib/python3.8/logging/__init__.py", line 664, in format
              record.message = record.getMessage()
            File "/usr/lib/python3.8/logging/__init__.py", line 369, in getMessage
              msg = msg % self.args
            File "/tmp/flake8/.tox/py38/lib/python3.8/site-packages/flake8/plugins/manager.py", line 44, in __repr__
              self.name, self.entry_point.value
            File "/tmp/flake8/.tox/py38/lib/python3.8/site-packages/mock/mock.py", line 632, in __getattr__
              raise AttributeError("Mock object has no attribute %r" % name)
          AttributeError: Mock object has no attribute 'value'
      91b09d5b
  11. 08 6月, 2020 3 次提交
  12. 07 6月, 2020 2 次提交
  13. 05 6月, 2020 2 次提交
  14. 02 6月, 2020 2 次提交
  15. 22 5月, 2020 1 次提交
  16. 21 5月, 2020 3 次提交
  17. 18 5月, 2020 2 次提交