Skip to content

Commit db9cbe3

Browse files
committed
init
0 parents  commit db9cbe3

14 files changed

+2568
-0
lines changed

.gitignore

+109
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
nosetests.xml
45+
coverage.xml
46+
*.cover
47+
.hypothesis/
48+
49+
# Translations
50+
*.mo
51+
*.pot
52+
53+
# Django stuff:
54+
*.log
55+
local_settings.py
56+
57+
# Flask stuff:
58+
instance/
59+
.webassets-cache
60+
61+
# Scrapy stuff:
62+
.scrapy
63+
64+
# Sphinx documentation
65+
docs/_build/
66+
67+
# PyBuilder
68+
target/
69+
70+
# Jupyter Notebook
71+
.ipynb_checkpoints
72+
73+
# pyenv
74+
.python-version
75+
76+
# celery beat schedule file
77+
celerybeat-schedule
78+
79+
# SageMath parsed files
80+
*.sage.py
81+
82+
# dotenv
83+
.env
84+
85+
# virtualenv
86+
.venv
87+
venv/
88+
ENV/
89+
90+
# Spyder project settings
91+
.spyderproject
92+
.spyproject
93+
94+
# Rope project settings
95+
.ropeproject
96+
97+
# mkdocs documentation
98+
/site
99+
100+
# mypy
101+
.mypy_cache/
102+
103+
# MAC OS
104+
.DS_Store
105+
106+
# IDE
107+
/.idea
108+
/*.iml
109+

.pre-commit-config.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
- repo: https://github.com/pre-commit/pre-commit-hooks.git
2+
sha: v0.7.0
3+
hooks:
4+
- id: trailing-whitespace
5+
args: ['--no-markdown-linebreak-ext']
6+
- id: end-of-file-fixer
7+
- id: autopep8-wrapper
8+
- id: check-docstring-first
9+
- id: check-json
10+
- id: check-yaml
11+
- id: debug-statements
12+
- id: name-tests-test
13+
- id: requirements-txt-fixer
14+
- id: flake8
15+
- repo: https://github.com/pre-commit/pre-commit.git
16+
sha: v0.12.0
17+
hooks:
18+
- id: validate_config
19+
- id: validate_manifest
20+
- repo: https://github.com/asottile/reorder_python_imports.git
21+
sha: v0.3.1
22+
hooks:
23+
- id: reorder-python-imports
24+
language_version: python3

.pre-commit-hooks.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
- id: validate_config
2+
name: Validate Pre-Commit Config
3+
description: This validator validates a pre-commit hooks config file
4+
entry: pre-commit-validate-config
5+
language: python
6+
files: ^\.pre-commit-config\.yaml$
7+
- id: validate_manifest
8+
name: Validate Pre-Commit Manifest
9+
description: This validator validates a pre-commit hooks manifest file
10+
entry: pre-commit-validate-manifest
11+
language: python
12+
files: ^(\.pre-commit-hooks\.yaml|hooks\.yaml)$

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Python Algorithms

py_algorithms/__init__.py

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from ._version import get_versions
2+
3+
__version__ = get_versions()['version']
4+
del get_versions
5+
6+
7+
def __main__():
8+
pass

0 commit comments

Comments
 (0)