Skip to content

Commit a204017

Browse files
committed
Initial commit
0 parents  commit a204017

File tree

94 files changed

+32430
-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.

94 files changed

+32430
-0
lines changed

.github/workflows/tests.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: QA & Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: 3.11
21+
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install -e .
26+
pip install pytest pre-commit
27+
28+
- name: Run pre-commit checks
29+
run: pre-commit run --all-files
30+
31+
- name: Run tests
32+
run: pytest test

.gitignore

Lines changed: 277 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,277 @@
1+
venv
2+
.vscode
3+
/test*.py
4+
/test*.js
5+
/test*.ts
6+
profile.json
7+
profile.html
8+
cache
9+
secret.sh
10+
secret.py
11+
node_modules
12+
package-lock.json
13+
nohup.out
14+
.DS_Store
15+
test_go/
16+
# Created by https://www.toptal.com/developers/gitignore/api/python,pycharm+all
17+
# Edit at https://www.toptal.com/developers/gitignore?templates=python,pycharm+all
18+
19+
### PyCharm+all ###
20+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
21+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
22+
23+
# User-specific stuff
24+
.idea/**/workspace.xml
25+
.idea/**/tasks.xml
26+
.idea/**/usage.statistics.xml
27+
.idea/**/dictionaries
28+
.idea/**/shelf
29+
30+
# AWS User-specific
31+
.idea/**/aws.xml
32+
33+
# Generated files
34+
.idea/**/contentModel.xml
35+
36+
# Sensitive or high-churn files
37+
.idea/**/dataSources/
38+
.idea/**/dataSources.ids
39+
.idea/**/dataSources.local.xml
40+
.idea/**/sqlDataSources.xml
41+
.idea/**/dynamic.xml
42+
.idea/**/uiDesigner.xml
43+
.idea/**/dbnavigator.xml
44+
45+
# Gradle
46+
.idea/**/gradle.xml
47+
.idea/**/libraries
48+
49+
# Gradle and Maven with auto-import
50+
# When using Gradle or Maven with auto-import, you should exclude module files,
51+
# since they will be recreated, and may cause churn. Uncomment if using
52+
# auto-import.
53+
# .idea/artifacts
54+
# .idea/compiler.xml
55+
# .idea/jarRepositories.xml
56+
# .idea/modules.xml
57+
# .idea/*.iml
58+
# .idea/modules
59+
# *.iml
60+
# *.ipr
61+
62+
# CMake
63+
cmake-build-*/
64+
65+
# Mongo Explorer plugin
66+
.idea/**/mongoSettings.xml
67+
68+
# File-based project format
69+
*.iws
70+
71+
# IntelliJ
72+
out/
73+
74+
# mpeltonen/sbt-idea plugin
75+
.idea_modules/
76+
77+
# JIRA plugin
78+
atlassian-ide-plugin.xml
79+
80+
# Cursive Clojure plugin
81+
.idea/replstate.xml
82+
83+
# SonarLint plugin
84+
.idea/sonarlint/
85+
86+
# Crashlytics plugin (for Android Studio and IntelliJ)
87+
com_crashlytics_export_strings.xml
88+
crashlytics.properties
89+
crashlytics-build.properties
90+
fabric.properties
91+
92+
# Editor-based Rest Client
93+
.idea/httpRequests
94+
95+
# Android studio 3.1+ serialized cache file
96+
.idea/caches/build_file_checksums.ser
97+
98+
### PyCharm+all Patch ###
99+
# Ignore everything but code style settings and run configurations
100+
# that are supposed to be shared within teams.
101+
102+
.idea/*
103+
104+
!.idea/codeStyles
105+
!.idea/runConfigurations
106+
107+
### Python ###
108+
# Byte-compiled / optimized / DLL files
109+
__pycache__/
110+
*.py[cod]
111+
*$py.class
112+
113+
# C extensions
114+
*.so
115+
116+
# Distribution / packaging
117+
.Python
118+
build/
119+
develop-eggs/
120+
dist/
121+
downloads/
122+
eggs/
123+
.eggs/
124+
lib/
125+
lib64/
126+
parts/
127+
sdist/
128+
var/
129+
wheels/
130+
share/python-wheels/
131+
*.egg-info/
132+
.installed.cfg
133+
*.egg
134+
MANIFEST
135+
136+
# PyInstaller
137+
# Usually these files are written by a python script from a template
138+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
139+
*.manifest
140+
*.spec
141+
142+
# Installer logs
143+
pip-log.txt
144+
pip-delete-this-directory.txt
145+
146+
# Unit test / coverage reports
147+
htmlcov/
148+
.tox/
149+
.nox/
150+
.coverage
151+
.coverage.*
152+
.cache
153+
nosetests.xml
154+
coverage.xml
155+
*.cover
156+
*.py,cover
157+
.hypothesis/
158+
.pytest_cache/
159+
cover/
160+
161+
# Translations
162+
*.mo
163+
*.pot
164+
165+
# Django stuff:
166+
*.log
167+
local_settings.py
168+
db.sqlite3
169+
db.sqlite3-journal
170+
171+
# Flask stuff:
172+
instance/
173+
.webassets-cache
174+
175+
# Scrapy stuff:
176+
.scrapy
177+
178+
# Sphinx documentation
179+
docs/_build/
180+
181+
# PyBuilder
182+
.pybuilder/
183+
target/
184+
185+
# Jupyter Notebook
186+
.ipynb_checkpoints
187+
188+
# IPython
189+
profile_default/
190+
ipython_config.py
191+
192+
# pyenv
193+
# For a library or package, you might want to ignore these files since the code is
194+
# intended to run in multiple environments; otherwise, check them in:
195+
# .python-version
196+
197+
# pipenv
198+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
199+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
200+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
201+
# install all needed dependencies.
202+
#Pipfile.lock
203+
204+
# poetry
205+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
206+
# This is especially recommended for binary packages to ensure reproducibility, and is more
207+
# commonly ignored for libraries.
208+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
209+
#poetry.lock
210+
211+
# pdm
212+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
213+
#pdm.lock
214+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
215+
# in version control.
216+
# https://pdm.fming.dev/#use-with-ide
217+
.pdm.toml
218+
219+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
220+
__pypackages__/
221+
222+
# Celery stuff
223+
celerybeat-schedule
224+
celerybeat.pid
225+
226+
# SageMath parsed files
227+
*.sage.py
228+
229+
# Environments
230+
.env
231+
.venv
232+
env/
233+
venv/
234+
ENV/
235+
env.bak/
236+
venv.bak/
237+
238+
# Spyder project settings
239+
.spyderproject
240+
.spyproject
241+
242+
# Rope project settings
243+
.ropeproject
244+
245+
# mkdocs documentation
246+
/site
247+
248+
# mypy
249+
.mypy_cache/
250+
.dmypy.json
251+
dmypy.json
252+
253+
# Pyre type checker
254+
.pyre/
255+
256+
# pytype static type analyzer
257+
.pytype/
258+
259+
# Cython debug symbols
260+
cython_debug/
261+
262+
# PyCharm
263+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
264+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
265+
# and can be added to the global gitignore or merged into this file. For a more nuclear
266+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
267+
#.idea/
268+
269+
### Python Patch ###
270+
# Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration
271+
poetry.toml
272+
273+
274+
# End of https://www.toptal.com/developers/gitignore/api/python,pycharm+all
275+
276+
experiments/compiler_testing/ts_compilers/
277+
experiments/compiler_testing/results/

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
repos:
2+
- repo: https://github.com/astral-sh/ruff-pre-commit
3+
# Ruff version.
4+
rev: v0.7.0
5+
hooks:
6+
# Run the linter.
7+
- id: ruff
8+
types_or: [ python, pyi ]
9+
args: [ --fix ]
10+
# Run the formatter.
11+
- id: ruff-format
12+
types_or: [ python, pyi ]

0 commit comments

Comments
 (0)