Skip to content
This repository was archived by the owner on May 20, 2024. It is now read-only.

Commit 75d64f6

Browse files
init
1 parent d62dcc0 commit 75d64f6

File tree

3 files changed

+332
-0
lines changed

3 files changed

+332
-0
lines changed

.gitignore

+288
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,288 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/windows,macos,dotenv,go,python,venv,git
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=windows,macos,dotenv,go,python,venv,git
3+
4+
### dotenv ###
5+
.env
6+
.env.mysql
7+
.env.api
8+
9+
### Git ###
10+
# Created by git for backups. To disable backups in Git:
11+
# $ git config --global mergetool.keepBackup false
12+
*.orig
13+
14+
# Created by git when using merge tools for conflicts
15+
*.BACKUP.*
16+
*.BASE.*
17+
*.LOCAL.*
18+
*.REMOTE.*
19+
*_BACKUP_*.txt
20+
*_BASE_*.txt
21+
*_LOCAL_*.txt
22+
*_REMOTE_*.txt
23+
24+
### Go ###
25+
# If you prefer the allow list template instead of the deny list, see community template:
26+
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
27+
#
28+
# Binaries for programs and plugins
29+
*.exe
30+
*.exe~
31+
*.dll
32+
*.so
33+
*.dylib
34+
35+
# Test binary, built with `go test -c`
36+
*.test
37+
38+
# Output of the go coverage tool, specifically when used with LiteIDE
39+
*.out
40+
41+
# Dependency directories (remove the comment below to include it)
42+
# vendor/
43+
44+
# Go workspace file
45+
go.work
46+
47+
### macOS ###
48+
# General
49+
.DS_Store
50+
.AppleDouble
51+
.LSOverride
52+
53+
# Icon must end with two \r
54+
Icon
55+
56+
57+
# Thumbnails
58+
._*
59+
60+
# Files that might appear in the root of a volume
61+
.DocumentRevisions-V100
62+
.fseventsd
63+
.Spotlight-V100
64+
.TemporaryItems
65+
.Trashes
66+
.VolumeIcon.icns
67+
.com.apple.timemachine.donotpresent
68+
69+
# Directories potentially created on remote AFP share
70+
.AppleDB
71+
.AppleDesktop
72+
Network Trash Folder
73+
Temporary Items
74+
.apdisk
75+
76+
### macOS Patch ###
77+
# iCloud generated files
78+
*.icloud
79+
80+
### Python ###
81+
# Byte-compiled / optimized / DLL files
82+
__pycache__/
83+
*.py[cod]
84+
*$py.class
85+
86+
# C extensions
87+
88+
# Distribution / packaging
89+
.Python
90+
build/
91+
develop-eggs/
92+
dist/
93+
downloads/
94+
eggs/
95+
.eggs/
96+
lib/
97+
lib64/
98+
parts/
99+
sdist/
100+
var/
101+
wheels/
102+
share/python-wheels/
103+
*.egg-info/
104+
.installed.cfg
105+
*.egg
106+
MANIFEST
107+
108+
# PyInstaller
109+
# Usually these files are written by a python script from a template
110+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
111+
*.manifest
112+
*.spec
113+
114+
# Installer logs
115+
pip-log.txt
116+
pip-delete-this-directory.txt
117+
118+
# Unit test / coverage reports
119+
htmlcov/
120+
.tox/
121+
.nox/
122+
.coverage
123+
.coverage.*
124+
.cache
125+
nosetests.xml
126+
coverage.xml
127+
*.cover
128+
*.py,cover
129+
.hypothesis/
130+
.pytest_cache/
131+
cover/
132+
133+
# Translations
134+
*.mo
135+
*.pot
136+
137+
# Django stuff:
138+
*.log
139+
local_settings.py
140+
db.sqlite3
141+
db.sqlite3-journal
142+
143+
# Flask stuff:
144+
instance/
145+
.webassets-cache
146+
147+
# Scrapy stuff:
148+
.scrapy
149+
150+
# Sphinx documentation
151+
docs/_build/
152+
153+
# PyBuilder
154+
.pybuilder/
155+
target/
156+
157+
# Jupyter Notebook
158+
.ipynb_checkpoints
159+
160+
# IPython
161+
profile_default/
162+
ipython_config.py
163+
164+
# pyenv
165+
# For a library or package, you might want to ignore these files since the code is
166+
# intended to run in multiple environments; otherwise, check them in:
167+
# .python-version
168+
169+
# pipenv
170+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
171+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
172+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
173+
# install all needed dependencies.
174+
#Pipfile.lock
175+
176+
# poetry
177+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
178+
# This is especially recommended for binary packages to ensure reproducibility, and is more
179+
# commonly ignored for libraries.
180+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
181+
#poetry.lock
182+
183+
# pdm
184+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
185+
#pdm.lock
186+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
187+
# in version control.
188+
# https://pdm.fming.dev/#use-with-ide
189+
.pdm.toml
190+
191+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
192+
__pypackages__/
193+
194+
# Celery stuff
195+
celerybeat-schedule
196+
celerybeat.pid
197+
198+
# SageMath parsed files
199+
*.sage.py
200+
201+
# Environments
202+
.venv
203+
env/
204+
venv/
205+
ENV/
206+
env.bak/
207+
venv.bak/
208+
209+
# Spyder project settings
210+
.spyderproject
211+
.spyproject
212+
213+
# Rope project settings
214+
.ropeproject
215+
216+
# mkdocs documentation
217+
/site
218+
219+
# mypy
220+
.mypy_cache/
221+
.dmypy.json
222+
dmypy.json
223+
224+
# Pyre type checker
225+
.pyre/
226+
227+
# pytype static type analyzer
228+
.pytype/
229+
230+
# Cython debug symbols
231+
cython_debug/
232+
233+
# PyCharm
234+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
235+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
236+
# and can be added to the global gitignore or merged into this file. For a more nuclear
237+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
238+
#.idea/
239+
240+
### Python Patch ###
241+
# Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration
242+
poetry.toml
243+
244+
# ruff
245+
.ruff_cache/
246+
247+
# LSP config files
248+
pyrightconfig.json
249+
250+
### venv ###
251+
# Virtualenv
252+
# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
253+
[Bb]in
254+
[Ii]nclude
255+
[Ll]ib
256+
[Ll]ib64
257+
[Ll]ocal
258+
[Ss]cripts
259+
pyvenv.cfg
260+
pip-selfcheck.json
261+
262+
### Windows ###
263+
# Windows thumbnail cache files
264+
Thumbs.db
265+
Thumbs.db:encryptable
266+
ehthumbs.db
267+
ehthumbs_vista.db
268+
269+
# Dump file
270+
*.stackdump
271+
272+
# Folder config file
273+
[Dd]esktop.ini
274+
275+
# Recycle Bin used on file shares
276+
$RECYCLE.BIN/
277+
278+
# Windows Installer files
279+
*.cab
280+
*.msi
281+
*.msix
282+
*.msm
283+
*.msp
284+
285+
# Windows shortcuts
286+
*.lnk
287+
288+
# End of https://www.toptal.com/developers/gitignore/api/windows,macos,dotenv,go,python,venv,git

.pre-commit-config.yaml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env sh
2+
repos:
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: v4.5.0
5+
hooks:
6+
- id: check-added-large-files
7+
- id: check-merge-conflict
8+
- id: check-yaml
9+
- id: check-json
10+
- id: trailing-whitespace
11+
- id: end-of-file-fixer
12+
13+
- repo: https://github.com/streetsidesoftware/cspell-cli
14+
rev: v8.3.0
15+
hooks:
16+
- id: cspell
17+
args: [--config, "./cspell.json"]
18+
19+
- repo: https://github.com/golangci/golangci-lint
20+
rev: v1.55.2
21+
hooks:
22+
- id: golangci-lint
23+
24+
- repo: local
25+
hooks:
26+
- id: docker-compose-check
27+
name: Run docker-compose build
28+
entry: docker-compose build
29+
language: system
30+
pass_filenames: false
31+
stages: [commit]

cspell.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"ignoreWords": [
3+
"golangci",
4+
"labstack"
5+
],
6+
"ignorePaths": [
7+
"/.gitattributes",
8+
"/.gitignore",
9+
"/api/src/go.mod",
10+
"/api/src/go.sum",
11+
"*/.env.*"
12+
]
13+
}

0 commit comments

Comments
 (0)