Skip to content

Remove pipenv and use pyproject.toml #12

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

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

ruaultadrien
Copy link
Contributor

@ruaultadrien ruaultadrien commented Jun 8, 2023

The idea of this PR is to run the check-python-style action in a self contained step where a pyproject.toml file specific to the project is used.

Therefore the behavior of the CI would be completely independent from the project it is run on.

@ruaultadrien ruaultadrien marked this pull request as ready for review June 8, 2023 16:23
@ruaultadrien ruaultadrien requested a review from Gramet June 12, 2023 16:25
@ruaultadrien ruaultadrien requested a review from D34D10CK June 13, 2023 08:39
Comment on lines +30 to +52
echo '[tool.black]
line-length = 120

[tool.isort]
profile = "black"
line_length = 120

[tool.pylint.master]
load-plugins = "pylint.extensions.docparams, pylint.extensions.docstyle"

[tool.pylint.messages_control]
disable = """fixme, too-few-public-methods,"""

[tool.pylint.basic]
variable-rgx = "^[a-z][a-z0-9_]*$"
argument-rgx = "^[a-z][a-z0-9_]*$"

[tool.pylint.format]
max-line-length = "120"

[tool.pydocstyle]
add-ignore = "D107, D104, D103"
convention = "google"' > pyproject.toml
Copy link

Choose a reason for hiding this comment

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

Instead of hardcoding the string, would there be a way to use the pyproject.toml of check-python-style instead? So it's kinda self-sustained as well.

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