Skip to content

Commit 7688ed3

Browse files
Merge pull request #332 from shopyo/feat/init
Feat/init
2 parents d9a82ec + 6af792a commit 7688ed3

363 files changed

Lines changed: 18835 additions & 5571 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 0 additions & 38 deletions
This file was deleted.

.gitignore

Lines changed: 24 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ parts/
2020
sdist/
2121
var/
2222
wheels/
23-
share/python-wheels/
2423
*.egg-info/
2524
.installed.cfg
2625
*.egg
@@ -39,17 +38,14 @@ pip-delete-this-directory.txt
3938
# Unit test / coverage reports
4039
htmlcov/
4140
.tox/
42-
.nox/
4341
.coverage
4442
.coverage.*
4543
.cache
4644
nosetests.xml
4745
coverage.xml
4846
*.cover
49-
*.py,cover
5047
.hypothesis/
5148
.pytest_cache/
52-
cover/
5349

5450
# Translations
5551
*.mo
@@ -59,7 +55,6 @@ cover/
5955
*.log
6056
local_settings.py
6157
db.sqlite3
62-
db.sqlite3-journal
6358

6459
# Flask stuff:
6560
instance/
@@ -69,44 +64,19 @@ instance/
6964
.scrapy
7065

7166
# Sphinx documentation
72-
docs/_build/
67+
_build/
7368

7469
# PyBuilder
75-
.pybuilder/
7670
target/
7771

7872
# Jupyter Notebook
7973
.ipynb_checkpoints
8074

81-
# IPython
82-
profile_default/
83-
ipython_config.py
84-
8575
# pyenv
86-
# For a library or package, you might want to ignore these files since the code is
87-
# intended to run in multiple environments; otherwise, check them in:
88-
# .python-version
89-
90-
# pipenv
91-
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92-
# However, in case of collaboration, if having platform-specific dependencies or dependencies
93-
# having no cross-platform support, pipenv may install dependencies that don't work, or not
94-
# install all needed dependencies.
95-
#Pipfile.lock
96-
97-
# poetry
98-
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99-
# This is especially recommended for binary packages to ensure reproducibility, and is more
100-
# commonly ignored for libraries.
101-
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102-
#poetry.lock
103-
104-
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
105-
__pypackages__/
106-
107-
# Celery stuff
76+
.python-version
77+
78+
# celery beat schedule file
10879
celerybeat-schedule
109-
celerybeat.pid
11080

11181
# SageMath parsed files
11282
*.sage.py
@@ -132,21 +102,27 @@ venv.bak/
132102

133103
# mypy
134104
.mypy_cache/
135-
.dmypy.json
136-
dmypy.json
137105

138-
# Pyre type checker
139-
.pyre/
106+
# shopyo
107+
test.db
108+
testing.db
109+
shopyo.db
110+
111+
# pycharm
112+
.idea/
113+
114+
# win
115+
*.exe
116+
*.cs
117+
*.bat
118+
*.vbs
140119

141-
# pytype static type analyzer
142-
.pytype/
120+
# vscode
121+
.vscode
122+
workspace.code-workspace
143123

144-
# Cython debug symbols
145-
cython_debug/
124+
# modules in static since present in modules
125+
shopyo/static/modules/
146126

147-
# PyCharm
148-
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
149-
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
150-
# and can be added to the global gitignore or merged into this file. For a more nuclear
151-
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
152-
#.idea/
127+
# ignore secrets
128+
config.json

.pre-commit-config.yaml

Lines changed: 19 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,25 @@
1-
default_language_version:
2-
python: python3.7
3-
4-
default_stages: [commit, push]
5-
61
repos:
7-
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v2.5.0
9-
hooks:
10-
- id: check-yaml
11-
- id: end-of-file-fixer
12-
exclude: LICENSE
13-
14-
- repo: local
2+
- repo: https://github.com/asottile/pyupgrade
3+
rev: v3.3.1
154
hooks:
165
- id: pyupgrade
17-
name: pyupgrade
18-
entry: poetry run pyupgrade --py37-plus
19-
types: [python]
20-
language: system
21-
22-
- repo: local
6+
args: ["--py36-plus"]
7+
- repo: https://github.com/asottile/reorder_python_imports
8+
rev: v3.9.0
239
hooks:
24-
- id: isort
25-
name: isort
26-
entry: poetry run isort --settings-path pyproject.toml
27-
types: [python]
28-
language: system
29-
30-
- repo: local
10+
- id: reorder-python-imports
11+
name: Reorder Python imports
12+
- repo: https://github.com/psf/black
13+
rev: 22.12.0
3114
hooks:
3215
- id: black
33-
name: black
34-
entry: poetry run black --config pyproject.toml
35-
types: [python]
36-
language: system
16+
args: [--experimental-string-processing]
17+
- repo: https://github.com/pre-commit/pre-commit-hooks
18+
rev: v4.4.0
19+
hooks:
20+
- id: fix-byte-order-marker
21+
- id: trailing-whitespace
22+
- id: end-of-file-fixer
23+
- id: check-yaml
24+
- id: debug-statements
25+
- id: check-added-large-files

CODE_OF_CONDUCT.md

Lines changed: 0 additions & 76 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 0 additions & 47 deletions
This file was deleted.

LICENSE

Lines changed: 0 additions & 20 deletions
This file was deleted.

MANIFEST.in

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
include requirements.txt
2+
include dev_requirements.txt
3+
exclude config.json
4+
recursive-include {projname} *
5+
recursive-exclude {projname}/instance *
6+
recursive-exclude {projname}/static/modules *
7+
recursive-exclude {projname}/.tox *
8+
recursive-exclude __pycache__ *

0 commit comments

Comments
 (0)