-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
004b5dd
commit 231b12b
Showing
12 changed files
with
146 additions
and
44 deletions.
There are no files selected for viewing
This file contains 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,8 +1,8 @@ | ||
name: build-docs | ||
on: | ||
push: | ||
branches: | ||
- stable | ||
tags: | ||
- "**" | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
@@ -23,4 +23,4 @@ jobs: | |
git config --local user.email "[email protected]" | ||
git config --local user.name "Hakan Celik" | ||
git fetch --all | ||
mkdocs gh-deploy -m "Update Docs" --remote-branch gh-pages | ||
mike deploy ${{github.ref_name}} latest --update-aliases --push |
This file contains 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,12 +1,36 @@ | ||
name: test | ||
on: [push, pull_request] | ||
jobs: | ||
run: | ||
test_with_python36: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04, macos-latest, windows-latest] | ||
python-version: ["3.6"] | ||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Set up Python${{ matrix.python-version }} | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
|
||
- name: Install Dependencies for Python${{ matrix.python-version }} | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install tox | ||
- name: Test with pytest for Python${{ matrix.python-version }} | ||
run: | | ||
tox -e ${{ matrix.python-version }} | ||
test_other_python: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"] | ||
python-version: ["3.7", "3.8", "3.9", "3.10"] | ||
steps: | ||
- uses: actions/[email protected] | ||
|
||
|
This file contains 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 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,71 @@ | ||
all: lint test clean | ||
|
||
.PHONY: dev | ||
dev: | ||
pip install -e .[test] | ||
pip install pre-commit | ||
|
||
.PHONY: lint | ||
lint: | ||
git add . | ||
pre-commit run --all-files | ||
|
||
.PHONY: test | ||
test: | ||
pytest tests -x -v --disable-warnings | ||
|
||
.PHONY: tox | ||
tox: | ||
tox | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -rf `find . -name __pycache__` | ||
rm -f `find . -type f -name '*.py[co]' ` | ||
rm -f `find . -type f -name '*~' ` | ||
rm -f `find . -type f -name '.*~' ` | ||
rm -rf .cache | ||
rm -rf .pytest_cache | ||
rm -rf .mypy_cache | ||
rm -rf htmlcov | ||
rm -rf *.egg-info | ||
rm -f .coverage | ||
rm -f .coverage.* | ||
rm -rf .tox | ||
rm -rf build | ||
|
||
.PHONY: push | ||
push: | ||
git push origin head | ||
|
||
.PHONY: amend | ||
amend: | ||
git add . | ||
git commit --amend --no-edit | ||
git push origin head -f | ||
|
||
.PHONY: stable | ||
stable: | ||
git checkout main | ||
git branch -D stable | ||
git checkout -b stable | ||
git push origin head -f | ||
git checkout main | ||
|
||
.PHONY: git | ||
git: | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Hakan Celik" | ||
|
||
.PHONY: publish | ||
publish: | ||
python -m pip install --upgrade pip | ||
python -m pip install --upgrade build | ||
python -m pip install --upgrade twine | ||
python -m build | ||
python -m twine upload dist/* | ||
|
||
.PHONY: docs | ||
docs: | ||
pip install -e .[docs] | ||
mkdocs serve |
This file contains 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 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 was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains 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 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 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 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,2 +1,2 @@ | ||
__version__ = "0.12.2" | ||
__version__ = "0.12.3" | ||
__description__ = "A linter, formatter for finding and removing unused import statements." |