-
Notifications
You must be signed in to change notification settings - Fork 13
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-commits and pytest configuration #525
Conversation
- pre-commit: use ruff and ruff formatting to replace black, isort, flake8 - pre-commit: remove hard-coded Python version - tests: convert all warnings to errors
for more information, see https://pre-commit.ci
PR Description updated to latest commit (20b7dff) |
PR Review
Code feedback:
✨ Review tool usage guide:Overview: The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.
See the review usage page for a comprehensive guide on using this tool. |
PR Code Suggestions
✨ Improve tool usage guide:Overview:
See the improve usage page for a comprehensive guide on using this tool. |
Co-authored-by: Martin Lang <[email protected]>
Co-authored-by: Martin Lang <[email protected]>
User description
Type
enhancement, bug_fix
Description
setup.cfg
as the project transitions to usingruff
for linting.pyproject.toml
to handle specific false positives and improve test configurations.Changes walkthrough
3 files
.pre-commit-config.yaml
Update and streamline pre-commit configurations
.pre-commit-config.yaml
pyproject.toml
Enhance Python project configurations
pyproject.toml
tool.coverage.run
andtool.pytest.ini_options
.tool.ruff
settings to handle notebook specific falsepositives.
setup.cfg
Remove flake8 configurations
setup.cfg
1 files
field.py
Simplify dictionary comprehension in field.py
discretisedfield/field.py
_r_dim_mapping
property.10 files
__init__.py
Minor formatting improvement in __init__.py
discretisedfield/init.py
__init__.py
Minor formatting improvement in io/__init__.py
discretisedfield/io/init.py
ovf2vtk.py
Minor formatting improvement in ovf2vtk.py
discretisedfield/io/ovf2vtk.py
__init__.py
Minor formatting improvement in plotting/__init__.py
discretisedfield/plotting/init.py
hv.py
Minor formatting improvement in hv.py
discretisedfield/plotting/hv.py
k3d_field.py
Minor formatting improvement in k3d_field.py
discretisedfield/plotting/k3d_field.py
mpl.py
Minor formatting improvement in mpl.py
discretisedfield/plotting/mpl.py
mpl_field.py
Minor formatting improvement in mpl_field.py
discretisedfield/plotting/mpl_field.py
__init__.py
Minor formatting improvement in tools/__init__.py
discretisedfield/tools/init.py
tasks.py
Minor formatting improvement in tasks.py
tasks.py