Skip to content

Commit

Permalink
Add pre-commit config
Browse files Browse the repository at this point in the history
* .pre-commit-config.yaml
* README updated
* poetry update
* homepage added into toml file
  • Loading branch information
sadikkuzu committed Jul 4, 2021
1 parent 7b422d3 commit ea29519
Show file tree
Hide file tree
Showing 8 changed files with 178 additions and 151 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -379,4 +379,3 @@ $RECYCLE.BIN/
# End of https://www.toptal.com/developers/gitignore/api/windows,visualstudiocode,linux,macos,pycharm+all,python,sublimetext,vim,vscode

# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)

25 changes: 25 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-yaml
- id: debug-statements
- id: check-ast
- id: check-docstring-first
- id: check-merge-conflict
- id: check-toml
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v1.17.0
hooks:
- id: setup-cfg-fmt
- repo: https://github.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
- repo: https://github.com/asottile/add-trailing-comma
rev: v2.1.0
hooks:
- id: add-trailing-comma
args: [--py36-plus]
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# squiral
![](https://img.shields.io/pypi/v/squiral)
[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/)
![]( https://img.shields.io/pypi/pyversions/squiral.svg )
[![](https://img.shields.io/pypi/v/squiral)](https://pypi.org/project/squiral/)
[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/)
[![](https://img.shields.io/pypi/pyversions/squiral.svg)](https://pypi.org/project/squiral/)

**squ**are sp**iral**

Expand All @@ -17,12 +17,12 @@ Here is an example:

The basic idea behind printing this matrix is<br/>
to start from the middle of the matrix and then moving:<br/>
```right```>> ```down```>>``` left```>>``` up```<br/>
`right` >> `down` >> `left` >> `up`<br/>
and not returning to the same row again.

### Install

````pip install squiral````
`pip install squiral`

#### Usage

Expand Down
70 changes: 36 additions & 34 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "squiral"
version = "0.1.2"
description = "squiral - square spiral"
authors = ["SADIK KUZU <[email protected]>"]
homepage = "https://github.com/sadikkuzu/squiral"
readme = "README.md"
license = "MIT"

Expand Down
6 changes: 3 additions & 3 deletions squiral/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

from .squiral import (
produce,
printout
printout,
)

__all__ = [
'__version__',
'produce',
'printout'
]
'printout',
]
Loading

0 comments on commit ea29519

Please sign in to comment.