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

chore: use ruff in the project #87

Merged
merged 33 commits into from
Oct 24, 2024
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
f9b562e
Applying ruff automatic changes to files.
PatrykWyzgowski Oct 8, 2024
4209360
Adding config options to support Ruff. Disabling no new line at the b…
PatrykWyzgowski Oct 8, 2024
5bedf86
One line docs are still pretty.
PatrykWyzgowski Oct 8, 2024
5fcf55b
Applying ruff with isort (with isort).
PatrykWyzgowski Oct 10, 2024
de78074
Switching to just ruff and mypy.
PatrykWyzgowski Oct 11, 2024
c833d28
Merge branch 'pw/alternate-unilint' into 68-feat-use-ruff-in-the-project
PatrykWyzgowski Oct 11, 2024
a76ab51
Switching off automatic fixes. Ruff ignores D200.
PatrykWyzgowski Oct 11, 2024
9359caa
Merge branch 'main' into 68-feat-use-ruff-in-the-project
PatrykWyzgowski Oct 11, 2024
71029fe
Manually fixed one-line docstrings to comply with our standards.
PatrykWyzgowski Oct 11, 2024
a962e5c
And one more file.
PatrykWyzgowski Oct 11, 2024
17b6b09
Fixing fixable ruff lint errors.
PatrykWyzgowski Oct 11, 2024
802188f
Adding reasonable fixes from --unsafe-fixes.
PatrykWyzgowski Oct 11, 2024
dda1287
Mypy issues resolved.
PatrykWyzgowski Oct 11, 2024
4d2d9a0
Fixed vast majority of ruff's alerts.
PatrykWyzgowski Oct 11, 2024
c98bda1
Fixed the rest of ruff's claims.
PatrykWyzgowski Oct 11, 2024
57ef338
Aligning to micpst's comments.
PatrykWyzgowski Oct 14, 2024
1246038
Unifying default dir argument assignment.
PatrykWyzgowski Oct 14, 2024
3d0e547
Unnecessary modification of first entries of prompt chat.
PatrykWyzgowski Oct 15, 2024
72e6989
Missing corrections.
PatrykWyzgowski Oct 15, 2024
26b8f0b
Back to ABC for LLMOptions.
PatrykWyzgowski Oct 15, 2024
7f40eb4
Excluding tests from formatting.
PatrykWyzgowski Oct 16, 2024
c4140f5
Merge branch 'refs/heads/main' into 68-feat-use-ruff-in-the-project
PatrykWyzgowski Oct 16, 2024
e5fc913
After-update pre-commit run.
PatrykWyzgowski Oct 16, 2024
38dd2c5
Last error deruffed.
PatrykWyzgowski Oct 16, 2024
a903dd6
This works as intended. Let's have tests that are formatted by `ruff-…
PatrykWyzgowski Oct 18, 2024
d5eca9a
Merge branch 'main' into 68-feat-use-ruff-in-the-project
PatrykWyzgowski Oct 21, 2024
f5e081f
Merge branch 'main' into 68-feat-use-ruff-in-the-project
akonarski-ds Oct 24, 2024
6a43980
Fix mypy and ruff issues
akonarski-ds Oct 24, 2024
5fe6eb6
Update contributing guide
akonarski-ds Oct 24, 2024
7d23532
Fix ci
akonarski-ds Oct 24, 2024
f809b4d
Fix ci
akonarski-ds Oct 24, 2024
8cf70aa
Add more repositories for trivy
akonarski-ds Oct 24, 2024
f29285d
Remove unnecessary empty line
akonarski-ds Oct 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ repos:
# Formats Python, Pyi, and Jupyter files, excluding specified directories
- id: ruff-format
types_or: [ python, pyi, jupyter ]
exclude: (docs/)
exclude: (docs/|/tests/)
PatrykWyzgowski marked this conversation as resolved.
Show resolved Hide resolved
args: [ --quiet ]

# Used to have proper type annotations for library code.
- repo: https://github.com/pre-commit/mirrors-mypy
Expand Down