-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Clean up the project structure
- Set up linting and formatting using ruff - Remove old linting and formatting tools - Fix all linting issues (including adding a bunch of type defs) - Set up more pre-commit tasks and remove old ones - Add CI for pre-commit - Fix REUSE issues - Update some of the docs Closes #32 Closes #2
- Loading branch information
Showing
69 changed files
with
4,931 additions
and
2,663 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
frontend/node_modules | ||
# Copyright DB InfraGO AG and contributors | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
frontend/node_modules |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors | ||
# SPDX-License-Identifier: CC0-1.0 | ||
name: lint | ||
|
||
on: | ||
push: | ||
branches: ['**'] | ||
tags: ['v*.*.*'] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v4 | ||
with: | ||
package_json_file: 'frontend/package.json' | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
cache: pip | ||
cache-dependency-path: ./pyproject.toml | ||
python-version: '3.12' | ||
- name: Install pre-commit | ||
run: |- | ||
python -m pip install pre-commit | ||
- name: Install dependencies | ||
run: |- | ||
python -m pip install '.[dev]' | ||
- name: Install dependencies (frontend) | ||
working-directory: frontend/ | ||
run: |- | ||
pnpm ci | ||
- name: Run pre-commit | ||
run: |- | ||
pre-commit run --all-files | ||
- name: Print changed files | ||
if: failure() | ||
run: |- | ||
git add . && git status -vv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.