Skip to content
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

V1.0.3 #9

Merged
merged 45 commits into from
Jun 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
6539ce5
Updated requirments
Jun 14, 2022
cfdf0a7
Write class based spinner and refactor namings
Jun 17, 2022
21755ed
Set language classifiers of package
Jun 17, 2022
dcdc0b2
Added Github test Python action
Jun 17, 2022
9546937
Removed extra install command
Jun 17, 2022
3bbea29
Use python3 in test workflow
Jun 17, 2022
688a080
Discontinue support of py3.5
Jun 17, 2022
7c61353
Removed Jinja and MarkupSafe
Jun 17, 2022
f59b190
Removed Travis config
Jun 18, 2022
3040407
Updated requirements
Jun 18, 2022
cfd0127
Added pylintrc config
Jun 18, 2022
1357d49
Created utils subpackges and improved documentation
Jun 18, 2022
77f96f3
Improved config documentation
Jun 18, 2022
9a6077f
tidy up main file
Jun 18, 2022
e4048e7
Improved code readability and linted module
Jun 18, 2022
4a2a627
Removed logger
Jun 19, 2022
33fccaa
Lint and format tests dir
Jun 19, 2022
acf5dab
Migrated project to pyproject setup
Jun 19, 2022
821b1a3
Updated pytest version & Fixed warnings
Jun 19, 2022
97722bf
Added pre-commit hook
Jun 19, 2022
95d2035
Added poetry to test CI Workflow
Jun 19, 2022
1e9b4f4
Added poetry ci matrix versioning to workflow
Jun 19, 2022
9c05f30
sync project python version with latest github actions python image v…
Jun 19, 2022
695d252
Show flake8 path in ci
Jun 19, 2022
3ef283a
Install flake8 by pip for CI
Jun 19, 2022
2f06a0c
Merge branch 'v1.0.3' of github.com:msudgh/syncshell into v1.0.3
Jun 19, 2022
40585f6
Installed pytest in CI Workflow
Jun 19, 2022
7d607a3
Set project python minimum version to 3.7.13
Jun 19, 2022
e94120c
Reinstalled pytest dependencies
Jun 19, 2022
d277c73
print list all files
Jun 19, 2022
4635abb
Updated poetry lockfile
Jun 19, 2022
9278a07
Use latest poetry version in matrix
Jun 19, 2022
83cdd3c
Added pytest-testdox to CI
Jun 19, 2022
9a73d59
Removed __init__ from tests
Jun 19, 2022
a690173
Cache dependencies
Jun 19, 2022
c9151a2
revert tests/init
Jun 19, 2022
b203350
Fixed poetry cache issue
Jun 19, 2022
a844ad8
Execute pytest command as a module
Jun 19, 2022
a25ece6
Removed __init__ from tests
Jun 19, 2022
19b9642
Use poetry to execute commands
Jun 19, 2022
4cddaa7
Fixed test typing issues
Jun 19, 2022
19c7835
Fixed config test cases
Jun 19, 2022
38f7d8d
print shell name
Jun 19, 2022
0b7ddbe
bump to 1.0.3
Jun 19, 2022
674c53e
Replaced travis ci badge with github actions
Jun 19, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Python package

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.7.13", "3.8.12", "3.9.13"]
poetry-version: ["1.1.13"]
steps:
- uses: actions/checkout@v3
# Poetry cache depends on OS, Python version and Poetry version.
- name: Cache Poetry cache
uses: actions/cache@v2
with:
path: ~/.cache/pypoetry
key: poetry-cache-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.poetry-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: ${{ matrix.poetry-version }}
- name: View poetry version
run: poetry --version
- name: Install dependencies
run: |
poetry install
# All python related commands should be executed by poetry run.
# Checkout the following examples.
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
poetry run python -m pytest -c pytest.ini -s
17 changes: 17 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: check-docstring-first
- id: check-toml
- id: check-yaml
- repo: https://github.com/ambv/black
rev: 22.3.0
hooks:
- id: black
- repo: https://gitlab.com/pycqa/flake8
rev: 4.0.1
hooks:
- id: flake8
4 changes: 4 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[MASTER]
disable=
C0114, # missing-module-docstring
W1514, # unspecified-encoding
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
<strong>Yet another tool for laziness</strong>
</div>
<div align="center">
Keep your machine's shell history synchronize
Keep your machine's shell history synchronized
</div>
<br/>
<div align="center">
![example branch parameter]()

<!-- Build Status -->
<a href="https://travis-ci.org/msudgh/syncshell">
<img src="https://img.shields.io/travis/msudgh/syncshell/master.svg?style=flat"
<a href="https://github.com/msudgh/syncshell/actions/workflows/test.yaml">
<img src="https://github.com/msudgh/syncshell/actions/workflows/test.yaml/badge.svg?branch=master"
alt="Build Status" />
</a>
<!-- License -->
Expand Down