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

Merge config files into pyproject.toml #8

Merged
merged 1 commit into from
Apr 13, 2023

Conversation

antonymilne
Copy link
Contributor

Does some of #4.

I didn't merge tox.ini because it looks more complicated and I wasn't sure whether you'd actually want to do that or would prefer to keep it separate?

I checked that all was ok by generating a new project from the template and running validate-pyproject. (I'll make a separate issue about this in a second.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note this config has not been moved into pyproject.toml since it's implied by the profile="black" that's already there - see https://pycqa.github.io/isort/docs/configuration/profiles.html.

no_implicit_reexport = true

# More strict checks for library code
[[tool.mypy.overrides]]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This syntax is a bit different from the .ini file - see https://mypy.readthedocs.io/en/stable/config_file.html#using-a-pyproject-toml.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The joys of TOML 😄

@antonymilne
Copy link
Contributor Author

@astrojuanlu are these CI failures genuine? I don't see why the test fails and looks like it's failing on main also 🤔

@astrojuanlu
Copy link
Owner

The CI failures are because these tests still expect the cookiecutter template, see gh-3

@astrojuanlu astrojuanlu mentioned this pull request Apr 13, 2023
Copy link
Owner

@astrojuanlu astrojuanlu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two files out 🗡️ Thanks a lot @AntonyMilneQB!

@astrojuanlu astrojuanlu merged commit f5bcd04 into astrojuanlu:main Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants