Skip to content

Remove pipenv and use pyproject.toml - #12

Open
ruaultadrien wants to merge 19 commits into
mainfrom
remove-pipenv-and-use-pyproject.toml
Open

Remove pipenv and use pyproject.toml#12
ruaultadrien wants to merge 19 commits into
mainfrom
remove-pipenv-and-use-pyproject.toml

Conversation

@ruaultadrien

@ruaultadrien ruaultadrien commented Jun 8, 2023

Copy link
Copy Markdown
Contributor

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
Comment thread .github/workflows/workflow.yml Outdated
Comment thread test/sample.py
@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
Copy Markdown

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.

@ruaultadrien

Copy link
Copy Markdown
Contributor Author

@Gramet I still can't merge, I need approval from someone with write access.
This repo is quite well set up I must say.

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.

3 participants