@@ -730,20 +730,22 @@ See the table below for an overview of the dependencies of generated projects:
730
730
click _ Composable command line interface toolkit
731
731
coverage __ Code coverage measurement for Python
732
732
darglint _ A utility for ensuring Google-style docstrings stay up to date with the source code.
733
- flake8 _ The modular source code checker: pep8 pyflakes and co
733
+ flake8 _ the modular source code checker: pep8 pyflakes and co
734
734
flake8-bandit _ Automated security testing with bandit and flake8.
735
735
flake8-bugbear _ A plugin for flake8 finding likely bugs and design problems in your program.
736
736
flake8-docstrings _ Extension for flake8 which uses pydocstyle to check docstrings
737
737
flake8-rst-docstrings _ Python docstring reStructuredText (RST) validator
738
738
mypy _ Optional static typing for Python
739
739
pep8-naming _ Check PEP-8 naming conventions, plugin for flake8
740
- pre-commit _ A framework for managing and maintaining multi-language pre-commit hooks
740
+ pre-commit _ A framework for managing and maintaining multi-language pre-commit hooks.
741
741
pre-commit-hooks _ Some out-of-the-box hooks for pre-commit.
742
- pytest _ Simple powerful testing with Python
742
+ pygments _ Pygments is a syntax highlighting package written in Python.
743
+ pytest _ pytest: simple powerful testing with Python
744
+ pyupgrade _ A tool to automatically upgrade syntax for newer versions.
743
745
reorder-python-imports _ Tool for reordering python imports
744
- safety _ Checks installed dependencies for known vulnerabilities
746
+ safety _ Checks installed dependencies for known vulnerabilities.
745
747
sphinx _ Python documentation generator
746
- sphinx-autobuild _ Watch a Sphinx directory and rebuild the documentation when a change is detected
748
+ sphinx-autobuild _ Rebuild Sphinx documentation on changes, with live-reload in the browser.
747
749
sphinx-click _ Sphinx extension that automatically documents click applications
748
750
sphinx-rtd-theme _ Read the Docs theme for Sphinx
749
751
typeguard _ Run-time type checker for Python
@@ -1635,6 +1637,7 @@ The |HPC| comes with a pre-commit configuration consisting of the following hook
1635
1637
`black <Black _>`__ Run the Black _ code formatter
1636
1638
`flake8 <Flake8 _>`__ Run the Flake8 _ linter
1637
1639
`prettier <Prettier _>`__ Run the Prettier _ code formatter
1640
+ pyupgrade _ Upgrade syntax to newer versions of Python
1638
1641
check-added-large-files _ Prevent giant files from being committed
1639
1642
check-toml _ Validate TOML _ files
1640
1643
check-yaml _ Validate YAML _ files
@@ -1687,6 +1690,20 @@ and moves them after normal imports.
1687
1690
Any duplicate imports are removed.
1688
1691
1689
1692
1693
+ The pyupgrade hook
1694
+ ------------------
1695
+
1696
+ pyupgrade _ upgrades your source code
1697
+ to newer versions of the Python language and standard library.
1698
+ The tool analyzes the `abstract syntax tree `__ of the modules in your project,
1699
+ replacing deprecated or legacy usages with modern idioms.
1700
+
1701
+ The minimum supported Python version is declared in the relevant section of ``.pre-commit-config.yaml ``.
1702
+ You should change this setting whenever you drop support for an old version of Python.
1703
+
1704
+ __ https://docs.python.org/3/library/ast.html
1705
+
1706
+
1690
1707
Hooks from pre-commit-hooks
1691
1708
---------------------------
1692
1709
0 commit comments