-
Notifications
You must be signed in to change notification settings - Fork 100
chore: Use uv
and ruff
for local package installation and linting/formatting
#1211
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
Open
schloerke
wants to merge
27
commits into
main
Choose a base branch
from
build_tools
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,053
−777
Open
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
3f8f52e
Ignore any venv that starts with `.venv`
schloerke 17be6b4
Use `uv` for package installation
schloerke 8e52e57
first pass at requiring `uv` and `venv` within makefile
schloerke b96572e
Add `ruff.toml` config; Set up many rules to be inforced in near future
schloerke 6ac3cb2
Suggest vs code extension for ruff and use it on save
schloerke e14730f
Use `FORCE` approach within Makefile. Update checks for `black`/`isor…
schloerke 9c026c0
Update .pre-commit-hooks.yaml
schloerke cc29521
Remove some linters
schloerke 017298f
Fix a star import
schloerke b58cb20
`make format`
schloerke ce4a701
Update pytest.yaml
schloerke 34b86cc
Update .gitignore
schloerke e81cbab
Use activate approach
schloerke fd417d5
Clean up docs rules and add `install-ci` target
schloerke c78174e
Update Makefile
schloerke 0f452fe
Move annotation test from playwright to pytest
schloerke 7718da4
Update Makefile
schloerke b485ea3
Update setup.cfg
schloerke 5c990c3
typo
schloerke 6eb4d4c
Restore missing target
schloerke b3112a7
Use correct docs target to build site (not preview)
schloerke 71fd2bc
Discard changes to __init__.py files
schloerke 628a20d
Do not use isort on init files
schloerke a5c3b87
Code feedback
schloerke 6f84637
Add comments about pre-commit hooks and how to disable them temporarily
schloerke 3d616fb
chore(lints): Add many rules for `ruff` (#1213)
schloerke dc03c01
Merge branch 'main' into build_tools
schloerke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
# For the rare case that you'd like to commit with no pre-commit hooks, you can use `--no-verify` in the commit call. | ||
# ``` | ||
# git commit --no-verify -m "MSG" | ||
# ``` | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: "24.2.0" | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.3.2 | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
- id: ruff | ||
args: [--fix] | ||
- id: ruff-format |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"recommendations": [ | ||
"charliermarsh.ruff" | ||
] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.