Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pyupgrade hook #759

Merged
merged 5 commits into from Jun 16, 2022
Merged

Add pyupgrade hook #759

merged 5 commits into from Jun 16, 2022

Conversation

johnnv1
Copy link
Contributor

@johnnv1 johnnv1 commented Jun 8, 2022

As describe in #757, this hook will automatically upgrade syntax for newer versions of the language.

I also run pre-commit autoupdate to updates the hooks (maybe add pre-coomit ci to help on this?)

@codecov
Copy link

codecov bot commented Jun 8, 2022

Codecov Report

Merging #759 (71234b2) into master (25c7db2) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #759   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           21        21           
  Lines         1748      1758   +10     
=========================================
+ Hits          1748      1758   +10     
Impacted Files Coverage Δ
dynaconf/__init__.py 100.00% <100.00%> (ø)
dynaconf/base.py 100.00% <100.00%> (ø)
dynaconf/cli.py 100.00% <100.00%> (ø)
dynaconf/constants.py 100.00% <100.00%> (ø)
dynaconf/contrib/__init__.py 100.00% <100.00%> (ø)
dynaconf/contrib/django_dynaconf_v2.py 100.00% <100.00%> (ø)
dynaconf/contrib/flask_dynaconf.py 100.00% <100.00%> (ø)
dynaconf/loaders/base.py 100.00% <100.00%> (ø)
dynaconf/loaders/env_loader.py 100.00% <100.00%> (ø)
dynaconf/loaders/ini_loader.py 100.00% <100.00%> (ø)
... and 11 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 25c7db2...71234b2. Read the comment docs.

@johnnv1
Copy link
Contributor Author

johnnv1 commented Jun 15, 2022

What do you think to add this to ensure these type annotations on all files?

hooks:
  - id: reorder-python-imports
    args: [--py38-plus, --add-import, 'from __future__ import annotations']

@rochacbruno rochacbruno merged commit 662df64 into dynaconf:master Jun 16, 2022
rochacbruno added a commit that referenced this pull request Sep 22, 2022
Shortlog of commits since last release:

    Amadou Crookes (1):
          envars.md typo fix (#786)

    Bruno Rocha (19):
          Release version 3.1.9
          Bump dev version to 3.1.10
          Update badges
          demo repo will be replaced by a video tutorial soon
          Fix CI
          New data key casing must adapt to existing key casing (#795)
          Add test and docs about includes (#796)
          Removed vendor_src folder (#798)
          Replacing rochacbruno/ with dynaconf/ (#800)
          Fix codecov (#801)
          Parse negative numbers from envvar Fix #799 and Fix #585 (#802)
          Fix get command with Django (#804)
          Add a functional test runner (#805)
          Test runner docs and styling (#806)
          Allow merge_unique on lists when merge_enabled=True (#810)
          Rebind current env when forced for Pytest Fix #728 (#809)
          AUTO_CAST can be enabled on instance (#811)
          Ensure pyminify is on release script
          Add missing tomllib to monify script

    Gaurav Talreja (1):
          Fix #807 Use client.auth.approle.login instead of client.auth_approle (#808)

    Jitendra Yejare (1):
          Fix #768 of kv property depreciation from client object (#769)

    Joren Retel (2):
          Feature/detect casting comb token from converters (#784)
          Adding documentation and example to makefile. (#791)

    João Gustavo A. Amorim (1):
          Add pyupgrade hook (#759)

    Kian-Meng Ang (1):
          Fix typos (#788)

    Lucas Limeira (1):
          Using filter_strategy in env_loader to fix #760 (#767)

    Nicholas Nadeau, Ph.D., P.Eng (1):
          fix: typo (#766)

    Oleksii Baranov (2):
          Bump codecov action version (#775)
          Fix cli init command for flask (#705) (#774)

    Pedro de Medeiros (1):
          documentation fixes (#771)

    The Gitter Badger (1):
          Add a Gitter chat badge to README.md (#776)

    Théo Melo (1):
          Fixing a typo on the readme file (#763)

    Vicente Marçal (1):
          docs(pt-br): Docs Translation to brazilian portugues. (#787)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants