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

Update pre-commit hooks #118

Merged
merged 10 commits into from
Sep 17, 2023
Merged

Update pre-commit hooks #118

merged 10 commits into from
Sep 17, 2023

Conversation

sadikkuzu
Copy link
Contributor

@sadikkuzu sadikkuzu commented Sep 17, 2023

- https://github.com/pycqa/flake8 5.0.4
+ https://github.com/charliermarsh/ruff-pre-commit v0.0.290

Copy link
Owner

@nilsnolde nilsnolde left a comment

Choose a reason for hiding this comment

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

Thanks @sadikkuzu !

On another note, I think we should start using ruff here too @chrstnbwnkl and finally ditch flake8.

.github/workflows/ci-tests.yml Outdated Show resolved Hide resolved
.github/workflows/ci-tests.yml Show resolved Hide resolved
.github/workflows/ci-tests.yml Outdated Show resolved Hide resolved
Copy link
Owner

@nilsnolde nilsnolde left a comment

Choose a reason for hiding this comment

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

Thanks for including ruff, I didn’t mean to make you do it, but do appreciate it:)

Only one more thing: can we include the config into the pyproject.toml and remove its dedicated config file? One of the few reasons why I don’t like flake8, they still don’t support that (or didn’t until last time I checked). Thanks!

@sadikkuzu
Copy link
Contributor Author

It's my pleasure to have implemented the ruff part too:)

Sure, yes, I totally agree with you about having a single configuration file. When I was looking up where flake8 configs are, I saw the setup.cfg file, and I mistakenly thought you were using separate files. I totally missed the existence of pyproject.toml. 😅 I'll make the necessary changes and move the configs there. 👍🏼

Copy link
Owner

@nilsnolde nilsnolde left a comment

Choose a reason for hiding this comment

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

Great thanks!

@nilsnolde nilsnolde merged commit e5eb103 into nilsnolde:master Sep 17, 2023
2 checks passed
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