Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: adjust global structure (part 1) #7

Merged
merged 6 commits into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Next Next commit
refactor: adjust global structure
  • Loading branch information
lars-reimann committed Mar 19, 2024
commit 74ac42db0b96a509a719ba21cc4f4c404ad91972
3 changes: 0 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,3 @@

# Configuration
/vitest.config.ts
/packages/safe-ds-eda/svelte.config.js
/packages/safe-ds-eda/vite.config.ts
/packages/safe-ds-eda/types/*.d.ts
12 changes: 2 additions & 10 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,17 @@ module.exports = {
project: 'tsconfig.eslint.json',
},

extends: '@lars-reimann/svelte',
extends: '@lars-reimann',
rules: {
'import/extensions': 'off',
'import/no-extraneous-dependencies': 'off',
'svelte/valid-compile': 'off',
},
overrides: [
{
files: ['packages/safe-ds-cli/src/**', 'packages/safe-ds-vscode/src/extension/output.ts'],
files: ['packages/safe-ds-cli/src/**', 'packages/ttsl-vscode/src/extension/output.ts'],
rules: {
'no-console': 'off',
},
},
{
files: ['*.svelte'],
rules: {
// Leads to false positives when running ESLint in CI with the MegaLinter
'import/no-unresolved': 'off',
},
},
],
};
15 changes: 0 additions & 15 deletions .github/workflows/issue.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ jobs:
- name: Compile TypeScript
run: npm run build

- name: Check Svelte components
run: npm run check -w @safe-ds/eda

- name: Test with Vitest
run: npm run test-with-coverage

Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ jobs:
- name: Compile TypeScript
run: npm run build

- name: Check Svelte components
run: npm run check -w @safe-ds/eda

- name: Test with Vitest
run: npm run test-with-coverage

Expand Down
45 changes: 0 additions & 45 deletions .github/workflows/release.yml

This file was deleted.

4 changes: 1 addition & 3 deletions .mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ JSON_PRETTIER_FILE_EXTENSIONS:
- .scss
- .htm
- .html
- .svelte

TSX_ESLINT_FILE_EXTENSIONS:
- .tsx
- .svelte

# Commands
PRE_COMMANDS:
- command: npm i @lars-reimann/eslint-config-svelte eslint-plugin-vitest @lars-reimann/prettier-config-svelte
- command: npm i @lars-reimann/eslint-config eslint-plugin-vitest @lars-reimann/prettier-config
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"configurations": [
{
"name": "Launch Extension",
"args": ["--extensionDevelopmentPath=${workspaceFolder}/packages/safe-ds-vscode"],
"args": ["--extensionDevelopmentPath=${workspaceFolder}/packages/ttsl-vscode"],
"preLaunchTask": "npm: build",
"request": "launch",
"type": "extensionHost",
Expand Down
77 changes: 0 additions & 77 deletions CITATION.cff

This file was deleted.

38 changes: 3 additions & 35 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,5 @@
# Safe-DS DSL
# TTSL

[![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/safe-ds.safe-ds)](https://marketplace.visualstudio.com/items?itemName=safe-ds.safe-ds)
[![Main](https://github.com/Safe-DS/DSL/actions/workflows/main.yml/badge.svg)](https://github.com/Safe-DS/DSL/actions/workflows/main.yml)
[![codecov](https://codecov.io/gh/Safe-DS/DSL/branch/main/graph/badge.svg?token=ma0ytglhO1)](https://codecov.io/gh/Safe-DS/DSL)
[![Documentation Status](https://readthedocs.org/projects/safe-ds-dsl/badge/?version=stable)](https://dsl.safeds.com)
A domain-specific language (DSL) to simulate taxes and transfers.

Safely develop Data Science programs with a statically checked domain specific language (DSL).

## Installation

1. Get the latest extension for [Visual Studio Code](https://code.visualstudio.com/) from the
[Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=safe-ds.safe-ds). This sets up a
complete _development environment_ for Safe-DS programs.
2. To _execute_ Safe-DS programs, the [Safe-DS Runner](https://github.com/Safe-DS/Runner) has to be installed and
configured additionally:
1. Install [Python](https://www.python.org/) (3.11 or 3.12).
2. Run `pip install "safe-ds-runner>=0.7.0,<0.8.0"` in a command line to download the latest matching Runner version
from [PyPI](https://pypi.org/project/safe-ds-runner/).
3. If the Visual Studio Code extension cannot start the runner, adjust the setting `safe-ds.runner.command`.
Enter the absolute path to the Runner executable, as seen in the image below.

![vscode-settings-safeds-runner-path.png](./img/vscode-settings-safeds-runner-path.png)

## Documentation

You can find the full documentation [here](https://dsl.safeds.com).

## Contributing

We welcome contributions from everyone. As a starting point, check the following resources:

* [Contributing page](https://github.com/Safe-DS/DSL/contribute)

If you need further help, please [use our discussion forum][forum].

[forum]: https://github.com/orgs/Safe-DS/discussions
This project is based on the [Safe-DS](https://github.com/Safe-DS/DSL) DSL for statically checked Data Science programs.
Binary file removed docs/img/vscode-settings-safeds-runner-path.png
Binary file not shown.
7 changes: 0 additions & 7 deletions docs/lexer/safe_ds_lexer/__init__.py

This file was deleted.

7 changes: 7 additions & 0 deletions docs/lexer/ttsl_lexer/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"""Pygments lexer for TTSL markup."""

from ._ttsl_lexer import TTSLLexer

__all__ = [
"TTSLLexer",
]
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,12 @@
qualified_name_regex = rf"({identifier_regex})(\.({identifier_regex}))*"


class SafeDsLexer(RegexLexer):
name = "safe-ds"
class TTSLLexer(RegexLexer):
name = "ttsl"
aliases = [
"Safe-DS",
"safe-ds",
"SafeDS",
"safeds",
"SDS",
"sds",
"TTSL",
]
filenames = ["*.sdspipe", "*.sdsstub", "*.sdstest"]
filenames = ["*.ttsl"]

tokens = {
"root": [
Expand Down
9 changes: 3 additions & 6 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
site_name: Safe-DS DSL
repo_url: https://github.com/Safe-DS/DSL
repo_name: Safe-DS/DSL
site_name: TTSL
repo_url: https://github.com/SEEDS-Group/TTSL
repo_name: SEEDS-Group/TTSL
edit_uri: edit/main/docs/
site_url: !ENV READTHEDOCS_CANONICAL_URL
strict: true
Expand Down Expand Up @@ -36,9 +36,6 @@ nav:
- Enumerations: language/stub-language/enumerations.md
- Annotations: language/stub-language/annotations.md
- Type Parameters: language/stub-language/type-parameters.md
- Standard Library:
- stdlib/README.md
- safeds.lang: stdlib/safeds_lang.md
- Development:
- Call Graph Testing: development/call-graph-testing.md
- Formatting Testing: development/formatting-testing.md
Expand Down
8 changes: 4 additions & 4 deletions docs/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[tool.poetry]
name = "safe-ds-dsl-docs"
name = "ttsl-docs"
version = "0.1.0"
description = "Documentation for the Safe-DS DSL"
description = "Documentation for the TTSL DSL"
authors = ["Lars Reimann <mail@larsreimann.com>"]
classifiers = ["Private :: Do not Upload"]
packages = [
{ include = "safe_ds_lexer", from = "lexer"},
{ include = "ttsl_lexer", from = "lexer"},
]

[tool.poetry.dependencies]
Expand All @@ -17,7 +17,7 @@ mkdocs-same-dir = "^0.1.3"
pygments = "^2.17.2"

[tool.poetry.plugins."pygments.lexers"]
sds = "safe_ds_lexer:SafeDsLexer"
sds = "ttsl_lexer:TTSLLexer"

[build-system]
requires = ["poetry-core"]
Expand Down
7 changes: 0 additions & 7 deletions docs/stdlib/README.md

This file was deleted.

Loading
Loading