Skip to content

Commit

Permalink
Prepare repo for incoming sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
amacneil committed Feb 1, 2025
1 parent 1e204da commit c06fbd4
Show file tree
Hide file tree
Showing 7 changed files with 109 additions and 6 deletions.
12 changes: 12 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[flake8]
max-line-length = 100
extend-ignore = E203
exclude =
__pycache__,
.git,
dist,
node_modules,
python/foxglove-schemas-flatbuffer/foxglove_schemas_flatbuffer/*.py,
python/foxglove-schemas-protobuf/foxglove_schemas_protobuf/*.py,
target,
count = true
11 changes: 11 additions & 0 deletions .github/depdendabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "daily"
18 changes: 12 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: CI
on:
push:
branches: [main]
tags: ["releases/**"]
tags: ["*"]
pull_request:
branches: ["*"]

jobs:
build:
typescript:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -71,11 +71,8 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

python:
python-legacy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: python
permissions:
id-token: write
steps:
Expand All @@ -100,9 +97,18 @@ jobs:
python-version: '3.9'
cache: poetry

- run: poetry install

- run: poetry run flake8 .

- run: make install
working-directory: python

- run: make build
working-directory: python

- run: make test
working-directory: python

- name: Publish foxglove-schemas-flatbuffer to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,9 @@
"python.analysis.typeCheckingMode": "strict",
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer",
"editor.formatOnSave": true
}
}
File renamed without changes.
59 changes: 59 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This pyproject.toml installs repo-wide dev dependencies
[project]
name = "foxglove-sdk-monorepo"
version = "0.0.0"
requires-python = ">=3.9"

[tool.poetry]
package-mode = false

[tool.poetry.group.dev.dependencies]
flake8 = "^7.1.1"

0 comments on commit c06fbd4

Please sign in to comment.