Skip to content

add minimal mypy linting#2015

Merged
jensens merged 10 commits intocookiecutter:mainfrom
danieleades:mypy
Mar 18, 2024
Merged

add minimal mypy linting#2015
jensens merged 10 commits intocookiecutter:mainfrom
danieleades:mypy

Conversation

@danieleades
Copy link
Copy Markdown
Contributor

@danieleades danieleades commented Feb 4, 2024

adds a minimal mypy linting configuration

  • add mypy target to pre-commit hooks
  • address 'low-hanging fruit'
  • whitelist remaining errors

Rather than attempt to completely resolve all type errors in this repo in one go, i've opted to fix the obvious ones and whitelist the rest. Over time, this whitelist should be shrunk and eventually removed entirely.

@danieleades danieleades changed the title [WIP] add minimal mypy linting add minimal mypy linting Feb 4, 2024
@danieleades danieleades marked this pull request as ready for review February 4, 2024 13:02
@danieleades
Copy link
Copy Markdown
Contributor Author

working on this PR highlighted the highly inconsistent use of file paths in this repo, which switches pretty loosely between pathlib.Path and str representations. I suggest that over time this repo should remove the os.path path handling in favour of pathlib

@danieleades
Copy link
Copy Markdown
Contributor Author

@jensens this is ready for review

@danieleades danieleades mentioned this pull request Mar 16, 2024
6 tasks
@jensens jensens added code style This issue/PR relates to the project code style modification CI/CD This issue/PR relates to the project CI/CD update or fix. labels Mar 18, 2024
@jensens jensens merged commit f0b1c82 into cookiecutter:main Mar 18, 2024
@danieleades danieleades deleted the mypy branch March 18, 2024 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI/CD This issue/PR relates to the project CI/CD update or fix. code style This issue/PR relates to the project code style modification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants