-
-
Notifications
You must be signed in to change notification settings - Fork 228
fix some pyrefly errors (part 1) #2593
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
Changes from all commits
cb65b0e
17c524a
623c578
d9c2566
1434bef
60a6ea3
34dc0ae
d027420
6779e3e
82c1e05
d2f8703
3482ae1
26d5e3d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| # Developing conda-smithy | ||
|
|
||
| ## Set up Development Environment | ||
|
|
||
| To install conda-smithy from source: | ||
|
|
||
| * Install `conda` | ||
| * Fork and clone this repository: `git clone https://github.com/YOUR-USERNAME/conda-smithy.git`. Change to it: `cd conda-smithy`. | ||
| * Create a new conda environment with all requirements based on [environment.yml](environment.yml): `conda env create -f environment.yml`. | ||
| * Activate the environment: `conda activate conda-smithy`. | ||
| * Install conda-smithy: `pip install --no-deps --editable .` | ||
|
|
||
| To run all tests: | ||
|
|
||
| ```sh | ||
| $ pytest | ||
| ``` | ||
|
|
||
| To run all code checks: | ||
|
|
||
| ```sh | ||
| # staged changes | ||
| $ pre-commit run | ||
| # all files | ||
| $ pre-commit run --all-files | ||
| ``` | ||
|
|
||
| To run pyrefly code checks: | ||
|
|
||
| ```sh | ||
| $ pyrefly check --python-interpreter-path $(which python) --output-format min-text --count-errors=1 --search-path . | ||
| ``` | ||
|
|
||
| If you encounter pyrefly issues that you don't agree with, feel free to add a `# pyrefly: ignore[<error-type>]` comment to that line. | ||
|
Comment on lines
+28
to
+34
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. as discussed in today's conda/conda-forge meeting with @isuruf. will add this also to CI once all issues are fixed
pavelzw marked this conversation as resolved.
|
||
| An ignored `pyrefly` error is insufficient reason to block the merge of a pull request. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wouldn't spend too much time on the scripts placed outside
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this was all codex, only some tokens were used
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
can we just delete them, then?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably, but not in this PR.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See #2628 |
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i updated this change that you had issues with, ptal again @isuruf |
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i updated this file that you had issues with @isuruf, ptal again |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| **Fixed:** | ||
|
|
||
| * Fixed several small typing issues reported by Pyrefly. (#2593) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,6 +31,10 @@ include-package-data = true | |
| write_to = "conda_smithy/_version.py" | ||
| write_to_template = "__version__ = '{version}'" | ||
|
|
||
| [tool.pyrefly] | ||
| project-includes = ["conda_smithy/**/*.py", "tests/**/*.py"] | ||
| search-path = [".", "tests"] | ||
|
|
||
|
Comment on lines
+34
to
+37
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is needed, otherwise |
||
| [tool.black] | ||
| # matches black's default value | ||
| line-length = 88 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a minimal contributing.md partially stolen from #2519. eventually, i'd like to introduce a more reproducible pixi workflow to this repo, then this might also change.