Skip to content
Snippets Groups Projects
  1. Apr 01, 2024
  2. Dec 15, 2023
  3. Nov 17, 2023
  4. Jul 26, 2023
  5. Jul 21, 2023
  6. Mar 20, 2023
    • Andrew Halberstadt's avatar
      Bug 1811850 - [lint] Replace flake8 linter with ruff, r=linter-reviewers,sylvestre · dd673c2f
      Andrew Halberstadt authored
      Ruff is a very fast linter implemented in Rust and it can act as a drop-in
      replacement for flake8. When running the same set of rules across all files
      in mozilla-central (without mozlint), flake8 takes 900 seconds whereas ruff
      takes 0.9 seconds.
      
      Ruff also implements rules from other popular Python linters such as pylint,
      isort and pyupgrade. There are even plans to implement feature parity with
      black in the future. Ultimately, it can become our one stop shop for all Python
      linting and formatting.
      
      This stack will swap out all our Python lint tools for ruff (excluding black
      for now).
      
      Differential Revision: https://phabricator.services.mozilla.com/D172313
      dd673c2f
  7. Dec 13, 2022
  8. Jul 14, 2022
  9. Feb 02, 2022
  10. Oct 08, 2021
  11. May 10, 2021
  12. Mar 30, 2021
  13. Jan 20, 2021
  14. Dec 01, 2020
    • Mike Hommey's avatar
      Bug 1679938 - Don't recurse the build into mfbt for projects that don't need... · 14c1084f
      Mike Hommey authored
      Bug 1679938 - Don't recurse the build into mfbt for projects that don't need it. r=firefox-build-system-reviewers,mhentges
      
      While all toolkit and js-based projects make use of mfbt, some others,
      like tools/crashreporter and tools/update-packaging, don't.
      
      So instead of including mfbt from the top-level directory, include it
      from the relevant project top-level mozbuilds.
      
      This allows to remove the dependency on mfbt files in the hash for the
      minidump-stackwalk and mar-tools toolchains.
      
      Differential Revision: https://phabricator.services.mozilla.com/D98378
      14c1084f
  15. Oct 26, 2020
    • Ricky Stewart's avatar
      Bug 1654103: Standardize on Black for Python code in `mozilla-central`. · 02a7b4eb
      Ricky Stewart authored
      Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.
      
      To produce this patch I did all of the following:
      
      1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.
      
      2. Run ./mach lint --linter black --fix
      
      3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.
      
      4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.
      
      5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).
      
      # ignore-this-changeset
      
      Differential Revision: https://phabricator.services.mozilla.com/D94045
      02a7b4eb
  16. Oct 24, 2020
    • Bogdan Tara's avatar
      Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for... · da1098d4
      Bogdan Tara authored
      Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
      
      Backed out changeset ff3fb0b4a512 (bug 1672023)
      Backed out changeset e7834b600201 (bug 1654103)
      Backed out changeset 807893ca8069 (bug 1518999)
      Backed out changeset 13e6b92440e9 (bug 1518999)
      Backed out changeset 8b2ac5a6c98a (bug 1518999)
      Backed out changeset 575748295752 (bug 1518999)
      Backed out changeset 65f07ce7b39b (bug 1518999)
      Backed out changeset 4bb80556158d (bug 1518999)
      Backed out changeset 8ac8461d7bd7 (bug 1518999)
      Backed out changeset e8ba13ee17f5 (bug 1518999)
      da1098d4
  17. Oct 23, 2020
    • Ricky Stewart's avatar
      Bug 1654103: Standardize on Black for Python code in `mozilla-central`.... · c0cea3b0
      Ricky Stewart authored
      Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
      
      Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.
      
      To produce this patch I did all of the following:
      
      1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.
      
      2. Run ./mach lint --linter black --fix
      
      3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.
      
      4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.
      
      5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).
      
      # ignore-this-changeset
      
      Differential Revision: https://phabricator.services.mozilla.com/D94045
      c0cea3b0
  18. Oct 22, 2020
  19. Oct 21, 2020
    • Ricky Stewart's avatar
      Bug 1654103: Standardize on Black for Python code in `mozilla-central`.... · 50762dac
      Ricky Stewart authored
      Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
      
      Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.
      
      To produce this patch I did all of the following:
      
      1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.
      
      2. Run ./mach lint --linter black --fix
      
      3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.
      
      4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).
      
      # ignore-this-changeset
      
      Differential Revision: https://phabricator.services.mozilla.com/D94045
      50762dac
  20. Oct 09, 2020
  21. Sep 22, 2020
  22. Sep 11, 2020
  23. Sep 10, 2020
  24. Aug 25, 2020
  25. Aug 12, 2020
  26. Aug 05, 2020
  27. Jul 07, 2020
  28. Jul 02, 2020
  29. Jun 26, 2020
  30. Jun 09, 2020
  31. May 28, 2020
  32. Apr 24, 2020
  33. Mar 28, 2020
  34. Mar 24, 2020
Loading