Skip to content
Snippets Groups Projects
  1. Jan 11, 2024
  2. Dec 10, 2023
  3. Dec 01, 2023
    • Saurabh Kumar's avatar
      Upgrade to Django 4.2 LTS (#3652) · ff9e73ab
      Saurabh Kumar authored
      - Update psycopg to 3 as it’s not supported by Django 4.2
      - Replaced “BaseUserManager().make_random_password”, as it’s deprecated
      - Update github action and breakup different checks, making them easier
      to debug
      - Updated the `makemigrations` checks to display the missing migration
      and then fail
      - Upgrade django-hijack to 3.4.2
      - Update gunicorn to 21.2.0
      - Upgrade django slack to 5.19.0
      - Upgrade mistune to 3.0.2 (Bug fix release)
      - Upgrade whitenoise to 6.6.0
      - Update dev dependencies - black, ruff, pre-commit, pytest-django
      
      Closes https://github.com/HyphaApp/hypha/issues/3362
      Unverified
      ff9e73ab
  4. Nov 23, 2023
  5. Nov 14, 2023
  6. Oct 26, 2023
  7. Oct 20, 2023
  8. 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
      Unverified
      4ce14204
  9. May 04, 2023
  10. 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
      Unverified
      deac0faf
  11. Feb 17, 2023
  12. Feb 16, 2023
  13. 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.
      Unverified
      5eab4ac4
  14. 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”
      Unverified
      a3cd4f9e
  15. Nov 11, 2022
  16. Aug 31, 2022
  17. 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
  18. Aug 02, 2022
  19. Aug 01, 2022
  20. Dec 08, 2021
  21. Aug 31, 2021
  22. Aug 25, 2021
  23. Apr 15, 2021
  24. Jan 18, 2021
  25. Nov 30, 2020
  26. Aug 20, 2020
  27. Jun 25, 2020
  28. May 27, 2020
  29. May 26, 2020
  30. Feb 24, 2020
  31. Feb 10, 2020
  32. Feb 03, 2020
  33. Dec 05, 2019
  34. Nov 07, 2019
  35. Nov 05, 2019
Loading