Skip to content
Snippets Groups Projects
  1. Aug 11, 2023
    • Saurabh Kumar's avatar
      Add pre-commit with black,prettier and djhtml (#3502) · 4ce14204
      Saurabh Kumar authored
      - Add black, djhtml, prettier
      - Add precommit
      
      
      This PR add configurations for black, djhtml and prettier.
      
      - black is used for formatting python files
      - djhtml for formatting html files. Use `{# fmt: off #}` and `{# fmt: on
      #}` where needed.
      - prettier for formatting of sass,css,yml and js files
      
      Note: prettier picks up some of it's config from `.editorconfig`, so
      it's updated appropriately
      
      Formating of mardown files, minified or vendored js files are ignored.
      
      Formatting used off-the-self rules for better consistency with the
      community as large.
      
      The formatting is not applied to all the files as it will introduce a
      lot of merge conflict with
      current PRs, instead `pre-commit` config is provide which can be
      installed by `precommit install`
      locally. It will format only the modified files in the PR/commits. 
      
      Once majority of the current active PRs are either rebased & formatted
      using precommit or merged, we can
      run the `make fmt` on the full repo and activate additional prettier and
      black checks in our lint rules.
      
      The modified sass files fixes the eslint error that would came up if we
      were to apply the prettier formatter on them.
      
      Fixes #3500
      4ce14204
  2. May 04, 2023
  3. Feb 20, 2023
    • Sandeep Chauhan's avatar
      Upgrade pip packages (#3130) · deac0faf
      Sandeep Chauhan authored
      Partial Fix #3127 
      
      Upgrade following pip packages:
      Production requirements
      1. Sentry = 1.9.5 - 1.14.0
      2. Babel = 2.9.1 - 2.11.0
      3. boto3 = 1.26.27 - 1.26.57
      4. celery = 5.2.2 - 5.2.7
      5. django-anymail = 8.4 - 9.0
      6. django-bleach = 3.0.0 - 3.0.1
      7. django-countries = 7.2.1 - 7.5
      8. django-extensions = 3.1.5 - 3.2.1
      9. django-file-form = 3.4.1 - 3.4.3
      10. django-fsm = 2.8.0 - 2.8.1
      11. django-hijack = 3.1.4 - 3.2.6
      12. django-redis = 5.1.0 - 5.2.0
      13. django-salesforce = 4.0 - 4.1
      14. django-select2 = 7.9.0 - 8.0
      15. django-slack = 5.17.7 - 5.18.0
      16. django-storages = 1.12.3 - 1.13.2
      17. django-tables2 = 2.4.1 - 2.5.1
      18. django-tinymce = 3.4.0 - 3.5.0
      19. djangorestframework-api-key = 2.2.0 - 2.3.0
      20. djangorestframework = 3.12.4 - 3.14.0
      21. drf-yasg = 1.20.0 - 1.21.4
      22. mailchimp3 = 3.0.16 - 3.0.17
      23. mistune = 2.0.3 - 2.0.4
      24. more-itertools = 8.12.0 - 9.0.0
      25. phonenumberslite = 8.12.39 - 8.13.4
      26. Pillow = 9.3.0 - 9.4.0
      27. tablib = 3.2.1 - 3.3.0
      28. xmltodict = 0.12.0 - 0.13.0
      Dev requirements
      29. django-debug-toolbar = 3.6.0 - 3.8.1
      30. dslr = 0.3.1 - 0.4.0
      31. ruff = 0.0.206 - 0.0.236
      32. model-bakery = 1.7.0 - 1.10.1
      33. pytest-xdist[psutil] = 2.5.0 - 3.1.0
      34. responses = 0.21.0 - 0.22.0
      deac0faf
  4. Feb 17, 2023
  5. Feb 16, 2023
  6. Jan 13, 2023
    • Saurabh Kumar's avatar
      Replace flake8 & isort with ruff (#3103) · 5eab4ac4
      Saurabh Kumar authored
      Fixes #3101
      
      - Remove `make sort` and `make sort-fix` make targerts
      - Use `make lint` and `make lint-fix` instead.
      - Make use of GitHub Annotation to surface issues as annotations
      directly in the files changed, similar to CodeQL.
      - Move stuff from `setup.cfg` to `pyproject.toml`
      - Fixed the potentially buggy code. Each of the fix types is in
      individual commits.
      5eab4ac4
  7. Jan 03, 2023
    • Saurabh Kumar's avatar
      Maintainance fix depreciation warnings (#3092) · a3cd4f9e
      Saurabh Kumar authored
      - Fix test for EmailMessage task
       - Add tablib dependency for Wagtail ExportAdmin
       - Fix DeprecationWarning for django_table2
       - Fix depreciationwarning for beautifulSoup
       - Fix RemovedInDjango41Warning for default_app_config
       - Fix DjangoRemovedIn4.0 warning Middleware always require a function
       - Upgrade boto3 and scout-apm
       - Update pytest-cov to 4.0.0 from 3.0.0
       - Upgrade djangorestframework-api-key to 1.2.0
       - Rename “app” to “apps”
      a3cd4f9e
  8. Nov 11, 2022
  9. Aug 31, 2022
  10. Aug 28, 2022
    • Saurabh Kumar's avatar
      Improve testing and development experience · 91a25396
      Saurabh Kumar authored
      - Add “make test” command to lint, test and report coverage
      - Add pytest runner 
        - It automatically set up to use the correct Django settings module
        - Runs tests on all the available CPU, I was able to run all the test in total=~30sec using “make test” command.
        - It provides a cleaner error report, compared to DjangoTestRunner
      - Coverage
        - Displayed the report on the terminal after the test finish
        - Disable reporting of coverage for test and migration files
        - Enable coverage reporting for the template files
        - “make test” generates HTML reports to quickly check the coverage of each file
      91a25396
  11. Aug 02, 2022
  12. Aug 01, 2022
  13. Dec 08, 2021
  14. Aug 31, 2021
  15. Aug 25, 2021
  16. Apr 15, 2021
  17. Jan 18, 2021
  18. Nov 30, 2020
  19. Aug 20, 2020
  20. Jun 25, 2020
  21. May 27, 2020
  22. May 26, 2020
  23. Feb 24, 2020
  24. Feb 10, 2020
  25. Feb 03, 2020
  26. Dec 05, 2019
  27. Nov 07, 2019
  28. Nov 05, 2019
Loading