1. 29 Jan, 2022 1 commit
    • Added canonicalize_name() to console/commands/init.py (#5076) · a17f1ba3
      * Added canonicalize_name() to console/commands/init.py
      
      * Removed unnecessary helper function calls
      
      * Fixed capitalized package bug on poetry init
      
      Used canonicalize_name to standardize the names of all packages in
      poetry init with interactive dependencies. Given its importance, added a
      test_canoncalize_name() test to tests/utils/test_helpers.py
      
      * Split out _get_choice_list to a separate function
      
      For testing purposes
      
      * Tests working with canonicalized_name assigned outside of _generate_choice_list()
      
      * Changed test_generate_choice_list
      
      Parameterized a _generate_choice_list_packages fixture in order to call
      the test with both > 10 and < 10 cases, verifying that output is <= 10
      and the package_name has the desired package first in choices
      
      * Added output message if choice_list is truncated
      
      Also added cases for truncation and non-truncation in
      test_generate_choice_list to ensure the message is printed in only the
      correct cases
      
      * Removed info_string calls
      
      Moved info_string generation logic out of init._generate_choice_list
      
      * Removed type hint for info_string
      Evan Rittenhouse committed
  2. 27 Jan, 2022 1 commit
  3. 25 Jan, 2022 1 commit
  4. 24 Jan, 2022 3 commits
  5. 23 Jan, 2022 4 commits
  6. 22 Jan, 2022 3 commits
  7. 20 Jan, 2022 1 commit
  8. 17 Jan, 2022 15 commits
  9. 11 Jan, 2022 1 commit
    • Wrap long lines to comply with flake8 E501 (#4985) · ecb030e1
      * Update flake8 settings
      
      * Add poetry to isort namespace packages
      
      * Ignore flake8 E501 for long test names
      
      * Run automatic string formatting on tests
      
      * Run automatic string formatting on src
      
      * Fix typo "already exits"
      
      * Ignore long URLs, hashes, and paths
      
      * Fix in-line comments
      
      * Fix in-line comments in tests
      
      * Fix docstrings
      
      * Ignore misc
      
      * Fix f-strings in src
      
      * Fix f-strings in tests
      
      * Fix multi-line strings in src
      
      * Fix multi-line strings in tests
      
      * Fix some oddly autoformatted code
      
      * Replace some strings by multi-line strings
      
      * Revert namespace change
      
      * Add black string processing to pre-commit
      
      * Move black pre-commit config to pyproject.toml
      
      * Autoformat install scripts
      
      * Manual line wrapping for install scripts
      
      * Disable black formatting for expected strings
      
      * Replace strings by constant
      Stijn de Gooijer committed
  10. 10 Jan, 2022 1 commit
  11. 08 Jan, 2022 1 commit
  12. 05 Jan, 2022 1 commit
  13. 01 Jan, 2022 1 commit
  14. 26 Dec, 2021 1 commit
  15. 24 Dec, 2021 1 commit
  16. 07 Dec, 2021 1 commit
  17. 04 Dec, 2021 1 commit
  18. 30 Nov, 2021 1 commit
  19. 29 Nov, 2021 1 commit
    • Feature: Add poetry as pre-commit hook (#2511) · 2fa6c17a
      * add pre-commit hooks for check & lock
      * add pre-commit hook for export requirements.txt
      * add pre-commit hooks to docs
      * add pre-commit hook to check pre-commit-hooks.yaml file
      
      Thanks @graingert and @asottile for pointing out the `files` constraint.
      See discussion on #2511.
      
      Co-authored-by: Thomas Grainger <tagrain@gmail.com>
      Co-authored-by: Bjorn Neergaard <bjorn@neersighted.com>
      Christian Riedel committed