Skip to content

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

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

Merged
merged 33 commits into from
Mar 4, 2023

Conversation

dagpunk
Copy link
Owner

@dagpunk dagpunk 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

@dagpunk dagpunk added bug Something isn't working enhancement New feature or request dependencies Pull requests that update a dependency file labels Mar 1, 2023
@dagpunk dagpunk self-assigned this Mar 1, 2023
@dagpunk dagpunk linked an issue Mar 1, 2023 that may be closed by this pull request
dagpunk 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
@dagpunk dagpunk linked an issue Mar 4, 2023 that may be closed by this pull request
dagpunk 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
@dagpunk dagpunk linked an issue Mar 4, 2023 that may be closed by this pull request
@dagpunk dagpunk added this to the v2.0.0 milestone Mar 4, 2023
@dagpunk dagpunk marked this pull request as ready for review March 4, 2023 22:51
@dagpunk dagpunk merged commit 8fb1b20 into main Mar 4, 2023
@dagpunk dagpunk 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