-
Notifications
You must be signed in to change notification settings - Fork 185
General cleanup and format code with black #162
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
986f5a8
Update README.md
nkstonks 4c0c0a8
Move __version__ and BASE to const.py
LilSpazJoekp ed96c37
Parse package version from const.py file
LilSpazJoekp b32efa5
Move requirements into setup.py
LilSpazJoekp 5fb533f
Cleanup setup.py: added more classifiers, changed how README and cons…
LilSpazJoekp aa829e4
Remove non-project specific patterns from .gitignore.
LilSpazJoekp 79decae
Remove unused imports
LilSpazJoekp 4888b59
Add version and release info to docs
LilSpazJoekp 9b951e4
Remove non-project specific patterns from exclude_patterns in docs/co…
LilSpazJoekp 56f0fc1
Move scope.jpg to _static folder
LilSpazJoekp 68167a8
Add black, isort, and flake8 linters
LilSpazJoekp cb967cd
fix linting errors
LilSpazJoekp edfdeac
Run black and isort on codebase
LilSpazJoekp 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,2 @@ | ||
| [flake8] | ||
| ignore = E203 E501 W503 W504 |
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 |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| jobs: | ||
| lint-multi-os: | ||
| name: Lint ${{ matrix.os }} | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/setup-python@v1 | ||
| with: | ||
| python-version: 3.x | ||
| - uses: actions/cache@v1 | ||
| with: | ||
| key: v0-${{ runner.os }}-pip-lint-${{ hashFiles('setup.py') }} | ||
| path: ~/.cache/pip | ||
| restore-keys: | | ||
| v0-${{ runner.os }}-pip-lint- | ||
| v0-${{ runner.os }}-pip- | ||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install .[lint] | ||
| - name: Run black | ||
| run: black --check --verbose . | ||
| - name: Run flake8 | ||
| run: flake8 --exclude docs --statistics | ||
| - name: Run isort | ||
| run: isort -cv . | ||
| - name: Run sphinx | ||
| run: sphinx-build -W --keep-going docs/ /tmp/foo | ||
| strategy: | ||
| matrix: | ||
| os: [macOS-latest, ubuntu-latest, windows-latest] | ||
| name: CI | ||
| on: [pull_request, push] |
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,30 +1,8 @@ | ||
| .idea | ||
| __pycache__ | ||
| test.py | ||
| test2.py | ||
| test3.py | ||
| docs/_build | ||
| slash.log | ||
| test | ||
| __*.py | ||
| soontm.png | ||
|
|
||
| # Distribution / packaging | ||
| .Python | ||
| build/ | ||
| develop-eggs/ | ||
| dist/ | ||
| downloads/ | ||
| eggs/ | ||
| .eggs/ | ||
| lib/ | ||
| lib64/ | ||
| parts/ | ||
| sdist/ | ||
| var/ | ||
| wheels/ | ||
| share/python-wheels/ | ||
| *.egg-info/ | ||
| .installed.cfg | ||
| *.egg | ||
| MANIFEST | ||
| *.egg-info/ | ||
| *.eggs/ | ||
| *.pyc | ||
| .cache/ | ||
| _build/ | ||
| build/ | ||
| dist/ | ||
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.