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

Enable more ruff checks and fix #67

Merged
merged 5 commits into from
Oct 31, 2024
Merged

Enable more ruff checks and fix #67

merged 5 commits into from
Oct 31, 2024

Conversation

alexdewar
Copy link
Collaborator

I didn't realise when we merged #58 that there was no ruff configuration specified in pyproject.toml, so we were just using the default one.

I've copied over the config we normally use from our Python template and have fixed all warnings. I didn't include the pydocstyle checks because of #49, but these could be added later. I also enabled the pylint checks, which fixes bogus escape sequences, thus fixing #54.

Fixes #54.

@Thomas-Rowlands
Copy link
Collaborator

Just getting some errors running the regression test on Python 3.10.0, relating to the fuzzywuzzy module, what Python version are you running?

@alexdewar
Copy link
Collaborator Author

@Thomas-Rowlands I'm also running Python 3.10 and I managed to reproduce your error. I've no idea what was causing it, but when I deleted my virtual environment and started over by running poetry install again that seemed to fix it 🙃. I was also seeing the same error on main.

Could you try that? The regression test is passing on the CI which suggests that it should work with a clean virtual environment.

Copy link
Collaborator

@Thomas-Rowlands Thomas-Rowlands left a comment

Choose a reason for hiding this comment

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

Nice one, thanks for figuring that problem out too 👍

@Thomas-Rowlands Thomas-Rowlands merged commit d732d87 into main Oct 31, 2024
6 checks passed
@AdrianDAlessandro AdrianDAlessandro deleted the ruff-config branch October 31, 2024 14:58
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.

Invalid escape sequences in strings
2 participants