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

PR validation, tool config #803

Closed
wants to merge 9 commits into from
Closed

PR validation, tool config #803

wants to merge 9 commits into from

Conversation

alycejenni
Copy link
Member

Batch extension update to add PR validation workflow, standardise/update existing workflows, switch to Ruff, and remove the version specifier from docker-compose.yml.

standardise format, change name of tests file
new workflow to check commit format and code style against pre-commit config
update pre-commit repo versions and switch black to ruff
version specifier is deprecated
F401 returns linting errors as well as auto-fixes, so this disables the errors and just applies the fixes
docformatter currently can't read from pyproject.toml without tomli
auto reformat with ruff/docformatter/prettier after config changes.

This is a huge commit, but shouldn't have any functional changes. Reasons so many files have changed:
- prettier hasn't been running for a while, so a lot of js has been reformatted
- apparently we still had a lot of double-quoted strings
- a lot of imports have been sorted
- we were using ":return:" instead of ":returns:" in a lot of places
- there were quite a lot of empty or mostly empty (with just a param list) docstrings
@coveralls
Copy link

Coverage Status

coverage: 33.045% (-0.06%) from 33.1%
when pulling af4a908 on ginger/standardise
into b1059d8 on dev.

@alycejenni
Copy link
Member Author

Abandoning for now to avoid conflicts with preps updates

@alycejenni alycejenni closed this Nov 4, 2024
@alycejenni alycejenni deleted the ginger/standardise branch November 4, 2024 13:51
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