Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion .github/workflows/check_formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,22 @@ jobs:
- uses: actions/checkout@v3
- uses: psf/black@stable
with:
options: "--check --line-length=79" # In line with .vscode/settings.json
options: "--check --line-length=79" # In line with .vscode/settings.json
- name: Install pylint
run: pip install pylint
- name: Run pylint
run: pylint python/src
lint_typescript:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '14'
- name: Install dependencies
run: cd typescript && yarn install
- name: Run eslint
run: cd typescript && yarn lint --fix
- name: Run prettier
run: cd typescript && yarn prettier --write
7 changes: 5 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
"editor.rulers": [79]
},
"black-formatter.args": ["--line-length=79"],
// example: "--disable=C0114,C0115,C0116"
"pylint.args": [],
"pylint.args": ["--disable=C0114,C0115,C0116"],
"eslint.options": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
},
"prettier.requireConfig": true
}
5 changes: 3 additions & 2 deletions typescript/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export default {
root: true,
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"],
parser: "@typescript-eslint/parser",
parserOptions: { project: "./tsconfig.json", tsconfigRootDir: __dirname },
plugins: ["@typescript-eslint"],
plugins: ["@typescript-eslint", "prettier"],
rules: {
"@typescript-eslint/no-unused-vars": [
"warn",
Expand All @@ -14,5 +14,6 @@ export default {
},
],
"@typescript-eslint/no-non-null-assertion": "off",
"prettier/prettier": "error",
},
};