Skip to content

Commit 4f00511

Browse files
authored
Merge pull request #156 from a5chin/fix/workflow
Update gh-deploy.yml to remove push triggers
2 parents 50750e1 + 78c42d8 commit 4f00511

File tree

7 files changed

+207
-21
lines changed

7 files changed

+207
-21
lines changed

.devcontainer/devcontainer.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"runServices": [
66
"vscode"
77
],
8+
"remoteUser": "vscode",
89
"workspaceFolder": "/workspace",
910
"mounts": [
1011
{
@@ -37,7 +38,6 @@
3738
"mosapride.zenkaku",
3839
"ms-azuretools.vscode-docker",
3940
"ms-python.python",
40-
"ms-python.vscode-pylance",
4141
"ms-toolsai.jupyter",
4242
"njpwerner.autodocstring",
4343
"redhat.vscode-yaml",
@@ -52,8 +52,7 @@
5252
"DISPLAY": "dummy",
5353
"UV_PROJECT_ENVIRONMENT": "${containerWorkspaceFolder}/.venv"
5454
},
55-
"updateContentCommand": "sudo chown -R vscode /home/${remoteUser}/.cache ${containerWorkspaceFolder}/.venv /home/${remoteUser}/.ssh",
55+
"updateContentCommand": "sudo chown -R vscode /home/${remoteUser}/.cache /home/${remoteUser}/.ssh ${containerWorkspaceFolder}/.venv",
5656
"postCreateCommand": "uv sync --frozen",
57-
"postStartCommand": "uv run pre-commit install",
58-
"remoteUser": "vscode"
57+
"postStartCommand": "uv run pre-commit install"
5958
}

.github/release-drafter.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ tag-template: "v$RESOLVED_VERSION"
33

44
categories:
55
- title: "🚀 Features"
6-
labels:
7-
- "feature"
6+
label: "feature"
87
- title: "🐛 Bug Fixes"
98
labels:
109
- "fix"

.github/workflows/gh-deploy.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
11
name: Docs
22

33
on:
4-
push:
5-
branches: [main]
6-
paths:
7-
- ".github/actions/setup-git-config/action.yml"
8-
- ".github/actions/setup-python-with-uv/action.yml"
9-
- ".github/workflows/gh-deploy.yml"
10-
- "docs/**.md"
11-
- ".python-version"
12-
- "mkdocs.yml"
13-
- "pyproject.toml"
14-
- "uv.lock"
15-
164
pull_request:
175
paths:
186
- ".github/actions/setup-git-config/action.yml"

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ jobs:
5252
uses: ./.github/actions/setup-python-with-uv
5353

5454
- name: Lint by ty
55-
run: uv run nox -s lint -- --ty
55+
run: uv run nox -s lint -- --ty

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,3 +190,7 @@ cython_debug/
190190
# and can be added to the global gitignore or merged into this file. For a more nuclear
191191
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
192192
#.idea/
193+
194+
# dbt
195+
dbt_packages/
196+
logs/

.sqlfluffignore

Lines changed: 196 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,196 @@
1+
# General
2+
.DS_Store
3+
.AppleDouble
4+
.LSOverride
5+
6+
# Icon must end with two \r
7+
Icon
8+
9+
10+
# Thumbnails
11+
._*
12+
13+
# Files that might appear in the root of a volume
14+
.DocumentRevisions-V100
15+
.fseventsd
16+
.Spotlight-V100
17+
.TemporaryItems
18+
.Trashes
19+
.VolumeIcon.icns
20+
.com.apple.timemachine.donotpresent
21+
22+
# Directories potentially created on remote AFP share
23+
.AppleDB
24+
.AppleDesktop
25+
Network Trash Folder
26+
Temporary Items
27+
.apdisk
28+
29+
# Byte-compiled / optimized / DLL files
30+
__pycache__/
31+
*.py[cod]
32+
*$py.class
33+
34+
# C extensions
35+
*.so
36+
37+
# Distribution / packaging
38+
.Python
39+
build/
40+
develop-eggs/
41+
dist/
42+
downloads/
43+
eggs/
44+
.eggs/
45+
lib/
46+
lib64/
47+
parts/
48+
sdist/
49+
var/
50+
wheels/
51+
share/python-wheels/
52+
*.egg-info/
53+
.installed.cfg
54+
*.egg
55+
MANIFEST
56+
57+
# PyInstaller
58+
# Usually these files are written by a python script from a template
59+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
60+
*.manifest
61+
*.spec
62+
63+
# Installer logs
64+
pip-log.txt
65+
pip-delete-this-directory.txt
66+
67+
# Unit test / coverage reports
68+
htmlcov/
69+
.tox/
70+
.nox/
71+
.coverage
72+
.coverage.*
73+
.*cache
74+
nosetests.xml
75+
coverage.xml
76+
*.cover
77+
*.py,cover
78+
.hypothesis/
79+
.pytest_cache/
80+
cover/
81+
pytest.xml
82+
pytest-coverage.txt
83+
84+
# Translations
85+
*.mo
86+
*.pot
87+
88+
# Django stuff:
89+
*.log
90+
local_settings.py
91+
db.sqlite3
92+
db.sqlite3-journal
93+
94+
# Flask stuff:
95+
instance/
96+
.webassets-cache
97+
98+
# Scrapy stuff:
99+
.scrapy
100+
101+
# Sphinx documentation
102+
docs/_build/
103+
104+
# PyBuilder
105+
.pybuilder/
106+
target/
107+
108+
# Jupyter Notebook
109+
.ipynb_checkpoints
110+
111+
# IPython
112+
profile_default/
113+
ipython_config.py
114+
115+
# pyenv
116+
# For a library or package, you might want to ignore these files since the code is
117+
# intended to run in multiple environments; otherwise, check them in:
118+
# .python-version
119+
120+
# pipenv
121+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
122+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
123+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
124+
# install all needed dependencies.
125+
#Pipfile.lock
126+
127+
# poetry
128+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
129+
# This is especially recommended for binary packages to ensure reproducibility, and is more
130+
# commonly ignored for libraries.
131+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
132+
#poetry.lock
133+
134+
# pdm
135+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
136+
#pdm.lock
137+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
138+
# in version control.
139+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
140+
.pdm.toml
141+
.pdm-python
142+
.pdm-build/
143+
144+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
145+
__pypackages__/
146+
147+
# Celery stuff
148+
celerybeat-schedule
149+
celerybeat.pid
150+
151+
# SageMath parsed files
152+
*.sage.py
153+
154+
# Environments
155+
.env
156+
.venv
157+
env/
158+
venv/
159+
ENV/
160+
env.bak/
161+
venv.bak/
162+
163+
# Spyder project settings
164+
.spyderproject
165+
.spyproject
166+
167+
# Rope project settings
168+
.ropeproject
169+
170+
# mkdocs documentation
171+
/site
172+
173+
# mypy
174+
.mypy_cache/
175+
.dmypy.json
176+
dmypy.json
177+
178+
# Pyre type checker
179+
.pyre/
180+
181+
# pytype static type analyzer
182+
.pytype/
183+
184+
# Cython debug symbols
185+
cython_debug/
186+
187+
# PyCharm
188+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
189+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
190+
# and can be added to the global gitignore or merged into this file. For a more nuclear
191+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
192+
#.idea/
193+
194+
# dbt
195+
dbt_packages/
196+
logs/

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def parse(cls, posargs: list[str]) -> CLIArgs:
4545

4646
@nox.session(python=False)
4747
def fmt(session: nox.Session) -> None:
48-
"""Format the code using Ruff.
48+
"""Format the code using Ruff and SQLFluff.
4949
5050
Args:
5151
session (nox.Session): The Nox session object.
@@ -66,7 +66,7 @@ def fmt(session: nox.Session) -> None:
6666

6767
@nox.session(python=False)
6868
def lint(session: nox.Session) -> None:
69-
"""Lint the code using Ruff and ty.
69+
"""Lint the code using Ruff, SQLFluff, and ty.
7070
7171
Args:
7272
session (nox.Session): The Nox session object.

0 commit comments

Comments
 (0)