Skip to content
  1. Jan 11, 2024
  2. Jun 01, 2023
  3. May 23, 2023
  4. Apr 08, 2023
  5. Mar 13, 2023
  6. Mar 05, 2023
  7. Feb 12, 2023
  8. Feb 11, 2023
  9. Jan 29, 2023
  10. Aug 08, 2022
  11. Jun 13, 2022
  12. Feb 18, 2022
  13. Aug 27, 2021
  14. May 10, 2021
  15. Apr 11, 2021
  16. Apr 04, 2021
  17. Dec 26, 2020
  18. May 07, 2020
  19. Apr 08, 2020
  20. Mar 18, 2020
  21. Feb 12, 2020
  22. Jan 30, 2020
    • ntome's avatar
      [cragr] introduce yapf-compatible · e822c12a
      ntome authored and hydrargyrum's avatar hydrargyrum committed
      Reformatting was done with:
      
          for f in modules/cragr/**/*.py
          do
              ./tools/hooks/yapf-wo-imports.py -i yapf \
                  --style tools/hooks/style.yapf "$f"
          done
      
      For yapf to give pretty code, some manual "hints" were added.
      
      Example 1:
      
          re.compile("some regex around 120 chars")
      
      was reformatted to:
      
          re.
          compile("some regex around 120 chars")
      
      but it can be improved by forcing it to separate param and then
      calling yapf:
      
          re.compile("some regex around 120 chars",)
      
      Example 2:
      
          if long_condition or foo(foo) or bar(bar):
      
      was reformatted to:
      
          if long_condition or foo(
              foo
          ) or bar(bar):
      
      but it can be improved by surrounding the whole condition in
      parentheses, and then calling yapf:
      
          if (long_condition or foo(foo) or bar(bar)):
      e822c12a
    • ntome's avatar
      [cragr] tweaks for better formatting · a1dada31
      ntome authored and hydrargyrum's avatar hydrargyrum committed
      Some text replacements can be done using CleanText, avoid some chained
      dict.get(), and avoid a nested dict.
      a1dada31
    • Célande Adrien's avatar
      [cragr] transfer labels support in ISO8859-15 charset on api site · e78d21f5
      Célande Adrien authored and hydrargyrum's avatar hydrargyrum committed
      The cragr api website handle latin-15 labels for transfer.
      
      Since I don't know for the old website. I keep the old behaviour in it.
      e78d21f5
  23. Jun 17, 2019
  24. Feb 27, 2019
  25. Feb 24, 2019
  26. Feb 05, 2019
    • Quentin Defenouillere's avatar
      [cragr] Add regexp to login to prevent server errors · 843fadd8
      Quentin Defenouillere authored and Romain Bignon's avatar Romain Bignon committed
      On the new cragr website, you cannot POST the login+password with a
      space at the end of the password, otherwise the website returns a 500
      error.
      This commit adds a regexp in module.py to raise an error instead of a
      browser unavailable when credentials contain something else than digits.
      
      Closes: 9356@zendesk, 35699@sibi
      843fadd8