Skip to content

Commit dd79e5a

Browse files
Initial Commit
0 parents  commit dd79e5a

File tree

110 files changed

+8195
-0
lines changed

Some content is hidden

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

110 files changed

+8195
-0
lines changed

.codespellrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[codespell]
2+
ignore-words-list = covert
3+
skip = user_agents.txt

.dockerignore

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
# Git
2+
.git
3+
.gitignore
4+
.gitattributes
5+
6+
7+
# CI
8+
.codeclimate.yml
9+
.travis.yml
10+
.taskcluster.yml
11+
12+
# Docker
13+
docker-compose.yml
14+
Dockerfile
15+
.docker
16+
.dockerignore
17+
18+
# Byte-compiled / optimized / DLL files
19+
**/__pycache__/
20+
**/*.py[cod]
21+
22+
# C extensions
23+
*.so
24+
25+
# Distribution / packaging
26+
.Python
27+
env/
28+
build/
29+
develop-eggs/
30+
dist/
31+
downloads/
32+
eggs/
33+
lib/
34+
lib64/
35+
parts/
36+
sdist/
37+
var/
38+
*.egg-info/
39+
.installed.cfg
40+
*.egg
41+
42+
# PyInstaller
43+
# Usually these files are written by a python script from a template
44+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
45+
*.manifest
46+
*.spec
47+
48+
# Installer logs
49+
pip-log.txt
50+
pip-delete-this-directory.txt
51+
52+
# Unit test / coverage reports
53+
htmlcov/
54+
.tox/
55+
.coverage
56+
.cache
57+
nosetests.xml
58+
coverage.xml
59+
60+
# Translations
61+
*.mo
62+
*.pot
63+
64+
# Django stuff:
65+
*.log
66+
67+
# Sphinx documentation
68+
docs/_build/
69+
70+
# PyBuilder
71+
target/
72+
73+
# Virtual environment
74+
.env
75+
.venv/
76+
venv/
77+
78+
# PyCharm
79+
.idea
80+
81+
# Python mode for VIM
82+
.ropeproject
83+
**/.ropeproject
84+
85+
# Vim swap files
86+
**/*.swp
87+
88+
# VS Code
89+
.vscode/
90+
91+
common.egg-info
92+
build/
93+
94+
# Ruff
95+
.ruff_cache
96+
.mypy_cache

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.sql linguist-detectable=true
2+
*.sql linguist-language=sql

.github/workflows/assets.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Assets Services CI/CD
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
checks:
11+
uses: Spacerulerwill/SpaceCases/.github/workflows/checks.yml@master
12+
with:
13+
path: "services/assets"
14+
docker_image:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
- name: Build image
20+
run: |
21+
cd services/assets
22+
docker build -f Dockerfile ../../

.github/workflows/checks.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
on:
2+
workflow_call:
3+
inputs:
4+
path:
5+
type: string
6+
description: "Path to the code to run checks on"
7+
required: true
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v3
15+
16+
- name: Install ruff
17+
uses: astral-sh/ruff-action@v3
18+
with:
19+
version-file: "${{ inputs.path }}/pyproject.toml"
20+
21+
- name: Ruff lint
22+
run: |
23+
cd ${{ inputs.path }} && ruff check .
24+
25+
format:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout code
29+
uses: actions/checkout@v3
30+
31+
- name: Install ruff
32+
uses: astral-sh/ruff-action@v3
33+
with:
34+
version-file: "${{ inputs.path }}/pyproject.toml"
35+
36+
- name: Ruff format check
37+
run: |
38+
cd ${{ inputs.path }} && ruff format . --check
39+
40+
pyright:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- name: Checkout code
44+
uses: actions/checkout@v4
45+
46+
- name: Install uv
47+
uses: astral-sh/setup-uv@v5
48+
49+
- name: Install pyright
50+
run: |
51+
cd ${{ inputs.path }}
52+
uv sync --no-dev
53+
uv pip install pyright
54+
55+
- name: Run pyright
56+
run: |
57+
cd ${{ inputs.path }}
58+
uv run pyright .
59+
test:
60+
runs-on: ubuntu-latest
61+
steps:
62+
- name: Checkout code
63+
uses: actions/checkout@v4
64+
65+
- name: Install uv
66+
uses: astral-sh/setup-uv@v5
67+
68+
- name: Install pytest
69+
run: |
70+
cd ${{ inputs.path }}
71+
uv sync --no-dev
72+
uv pip install pytest
73+
74+
- name: Run [pytest]
75+
run: |
76+
cd ${{ inputs.path }}
77+
uv run pytest --suppress-no-test-exit-code

.github/workflows/codespell.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Codespell
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
spellcheck:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v3
15+
- name: Spellcheck
16+
uses: codespell-project/actions-codespell@v2

.github/workflows/common.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Common CI/CD
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
checks:
11+
uses: Spacerulerwill/SpaceCases/.github/workflows/checks.yml@master
12+
with:
13+
path: "common"

.github/workflows/leaderboards.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Leaderboard Service CI/CD
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
checks:
11+
uses: Spacerulerwill/SpaceCases/.github/workflows/checks.yml@master
12+
with:
13+
path: "services/leaderboards"
14+
docker_image:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
- name: Build image
20+
run: |
21+
cd services/leaderboards
22+
docker build -f Dockerfile ../../
23+

.github/workflows/spacecases.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: SpaceCases CI/CD
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
checks:
11+
uses: Spacerulerwill/SpaceCases/.github/workflows/checks.yml@master
12+
with:
13+
path: "spacecases"
14+
docker_image:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
- name: Build image
20+
run: |
21+
cd spacecases
22+
docker build -f Dockerfile ../

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Python-generated files
2+
__pycache__/
3+
*.py[oc]
4+
build/
5+
dist/
6+
wheels/
7+
*.egg-info
8+
9+
# Virtual environments
10+
.venv
11+
.env
12+
.env.compose
13+
14+
# Tools
15+
.ruff_cache/
16+
.pytest_cache/

0 commit comments

Comments
 (0)