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

Spring cleaning 2023: bug fixes, updates, and improvements #109

Merged
merged 33 commits into from
Mar 4, 2023

Conversation

viperior
Copy link
Owner

@viperior viperior commented Mar 1, 2023

New features

Issues fixed

  • Resolved ValueError - int not callable when running flake8 by updating project dependency versions and modifying the package installation process in the GitHub Actions test workflow (closes Fix issue with flake8 linter #108)

Improvements

  • Changed from static dependency versions to minimum versions (foopackage==3.2.7 => foopackage>=3.2)
  • Remove pytest-xdist as a default dependency. Users can add this to their projects when needed and if they are okay with the added complexity. In the future, pytest-xdist could be an option to include in a template wizard.
  • Remove CodeQL as a default CI/CD workflow. Users can add this to their projects when needed and if they are okay with the added complexity. CodeQL does not work well with private repositories, which makes its default inclusion an immediate hurdle for users who want to use the template in a new private repository. In the future, CodeQL could be an option to include in a template wizard. (closes Remove CodeQL from template #111)
  • Improve pytest exception testing approach using pytest.raises() (closes Pytest exception handling and testing improvement #77)

Maintenance

  • Updated project dependency versions

@viperior viperior added bug Something isn't working enhancement New feature or request dependencies Pull requests that update a dependency file labels Mar 1, 2023
@viperior viperior self-assigned this Mar 1, 2023
@viperior viperior linked an issue Mar 1, 2023 that may be closed by this pull request
viperior added 3 commits March 4, 2023 19:47
This type of feature could be re-added later, but it would need to be fairly automated. GitHub's built-in release notes functionality provides the same purpose as a manual changelog in markdown.
This was linked to issues Mar 4, 2023
@viperior viperior linked an issue Mar 4, 2023 that may be closed by this pull request
viperior added 12 commits March 4, 2023 13:50
Updated the pylint control file after receiving this error in GitHub Actions:
"pylint: Command line or configuration file:1: UserWarning: Specifying exception names in the overgeneral-exceptions option without module name is deprecated and support for it will be removed in pylint 3.0. Use fully qualified name (maybe 'builtins.BaseException' ?) instead"

The fix is to prefix `builtins.` to the existing entries for this config option.
Improve the testing of exceptions using pytest.raises(). Closes #77
Check both type and value, allowing only int values greater than zero
@viperior viperior linked an issue Mar 4, 2023 that may be closed by this pull request
@viperior viperior added this to the v2.0.0 milestone Mar 4, 2023
@viperior viperior marked this pull request as ready for review March 4, 2023 22:51
@viperior viperior merged commit 8fb1b20 into main Mar 4, 2023
@viperior viperior deleted the 108-fix-issue-with-flake8-linter branch March 4, 2023 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file enhancement New feature or request
Projects
None yet
1 participant