-
Notifications
You must be signed in to change notification settings - Fork 167
config_checker update and linting for C408,C419,C405, C409, E721,F401,E722 #560
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
alex-rakowski
wants to merge
47
commits into
py4dstem:dev
Choose a base branch
from
alex-rakowski:bare_exceptions
base: dev
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.
Open
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
53e8796
initial bare exception fix
alex-rakowski fbbc232
correcting multiple exception handling
alex-rakowski 2212461
Changing to Exception if unsure
alex-rakowski 51f078f
changing to assertion error
alex-rakowski db59746
removing TODO message
alex-rakowski be609b3
Changing to a Exception
alex-rakowski 08957ff
changing from ValueError to Exception
alex-rakowski e6b6ade
black
alex-rakowski 857715a
ruff C408
alex-rakowski 7892191
ruff --select C419
alex-rakowski 4288ca2
C409 C405
alex-rakowski 1a00dd1
trailing commas
alex-rakowski dfa7546
black
alex-rakowski 79b2559
E721
alex-rakowski 0b20634
F401 - unused imports
alex-rakowski d3ccf03
black
alex-rakowski 9022bee
more E721
alex-rakowski 83a727a
Merge branch 'bare_exceptions' into unnecessary-collection-calls
alex-rakowski 15f387f
Merge pull request #16 from alex-rakowski/unnecessary-collection-calls
alex-rakowski dd1a74b
removing old comment
alex-rakowski 9657c42
adding KeyError
alex-rakowski dbfa1b2
adding KeyError to correct place ...
alex-rakowski 6b5dfec
adding hdf5plugin back in
alex-rakowski 89ad26a
Changing to Exception to catch more errors
alex-rakowski ed34a99
changning cupy GPU count method
alex-rakowski 5275729
black
alex-rakowski 96c96ae
using importlib to populate requirements
alex-rakowski f304a52
Merge branch 'dev' into bare_exceptions
alex-rakowski 03e9e61
changing find_spec to try except
alex-rakowski 436d1e4
adding suspected KeyError to TODO
alex-rakowski 5f5d895
F811, F523/F524, F841, F741 - Corrections
alex-rakowski 98c21d2
updating to autoscrape optional depends
alex-rakowski 0f9b096
fixing typo in docstring
alex-rakowski dc9c632
removing unused vars
alex-rakowski 4936f9e
Merge branch 'dev' of github.com:py4dstem/py4DSTEM into crystal-forma…
alex-rakowski 03986fa
adding generic version extra tests
alex-rakowski 8e4f7c9
removing TODO
alex-rakowski 0a77665
ModuleNotFoundErrors
alex-rakowski 92c6942
removing TODOS
alex-rakowski c280c8e
changing logic for print(Running Extra Checks run)
alex-rakowski f1a9b3a
cleaning up old commented out code
alex-rakowski ffa70f9
remove unused imports
alex-rakowski 0b10f48
fixing import test
alex-rakowski 83453df
Merge remote-tracking branch 'upstream/dev' into bare_exceptions
sezelt 19914f6
missing import
sezelt 9397208
other missing import
sezelt 9201154
Merge branch 'crystal-format-fixes' into bare_exceptions
sezelt 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| [flake8] | ||
| extend-ignore = | ||
| E114, | ||
| E115, | ||
| E116, | ||
| E201, | ||
| E202, | ||
| E203, | ||
| E204, | ||
| E231, | ||
| E265, | ||
| E266, | ||
| E303, | ||
| E402, | ||
| E501, | ||
| exclude = | ||
| ; __init__.py # totally ignore __init__.py files | ||
| setup.py # ignore setup.py file | ||
| docs/ | ||
| #F401 ignore unused imports in __init__.py files | ||
| #F403 ignore unable to detect undefined names from import * | ||
| per-file-ignores = | ||
| __init__.py:F401,F403 |
This file was deleted.
Oops, something went wrong.
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,40 +0,0 @@ | ||
| # This workflow will install Python dependencies, run tests and lint with a single version of Python | ||
| # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
|
||
| name: Check module can be imported | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ "dev" ] | ||
| pull_request: | ||
| branches: [ "dev" ] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| build: | ||
|
|
||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Set up Python 3.10 | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.10" | ||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install flake8 pytest | ||
| if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
| - name: Lint with flake8 | ||
| run: | | ||
| # stop the build if there are Python syntax errors or undefined names | ||
| flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
| # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
| # flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
| - name: Test that the module imports | ||
| run: | | ||
| pip install . | ||
| python -c "import py4DSTEM; print(py4DSTEM.__version__)" | ||
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
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
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.