Skip to content

Commit

Permalink
update site deps, eslint to v9 with flat config, update oss.yml commi…
Browse files Browse the repository at this point in the history
…ts and GH stars
  • Loading branch information
janosh committed May 7, 2024
1 parent 72c5eee commit 89a28d4
Show file tree
Hide file tree
Showing 8 changed files with 111 additions and 103 deletions.
25 changes: 0 additions & 25 deletions .eslintrc.yml

This file was deleted.

10 changes: 4 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ default_install_hook_types: [pre-commit, commit-msg]

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-case-conflict
- id: check-symlinks
Expand Down Expand Up @@ -36,17 +36,15 @@ repos:
args: [--ignore-words-list, 'ist,yau,te,manuel', --check-filenames]

- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.0.0-rc.0
rev: v9.2.0
hooks:
- id: eslint
types: [file]
args: [--fix]
files: \.(js|ts|svelte)$
additional_dependencies:
- eslint
- eslint-plugin-svelte
- svelte
- typescript
- eslint-plugin-svelte
- svelte-eslint-parser
- '@typescript-eslint/eslint-plugin'
- '@typescript-eslint/parser'
- typescript-eslint
32 changes: 32 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import svelte from 'eslint-plugin-svelte'
import tslint from 'typescript-eslint'

/** @type { import("eslint").Linter.FlatConfig[] } */
export default [
...tslint.configs.recommended,
...svelte.configs[`flat/recommended`],
{
rules: {
'@typescript-eslint/no-unused-vars': [
`error`,
{ argsIgnorePattern: `^_`, varsIgnorePattern: `^_` },
],
'@typescript-eslint/quotes': [`error`, `backtick`, { avoidEscape: true }],
'svelte/no-at-html-tags': `off`,
},
},
{
languageOptions: { ecmaVersion: 2020 },
},
{
files: [`**/*.svelte`],
languageOptions: {
parserOptions: {
parser: tslint.parser,
},
},
},
{
ignores: [`build/`],
},
]
31 changes: 15 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,37 +26,36 @@
"check": "svelte-check"
},
"devDependencies": {
"@iconify/svelte": "^3.1.6",
"@iconify/svelte": "^4.0.2",
"@rollup/plugin-yaml": "^4.1.2",
"@sveltejs/adapter-static": "^3.0.1",
"@sveltejs/kit": "^2.5.5",
"@sveltejs/vite-plugin-svelte": "^3.0.2",
"@typescript-eslint/eslint-plugin": "^7.4.0",
"@typescript-eslint/parser": "^7.4.0",
"devalue": "^4.3.2",
"@sveltejs/kit": "^2.5.7",
"@sveltejs/vite-plugin-svelte": "^3.1.0",
"devalue": "^5.0.0",
"elementari": "^0.2.3",
"eslint": "^8.57.0",
"eslint-plugin-svelte": "^2.35.1",
"eslint": "^9.2.0",
"eslint-plugin-svelte": "^2.38.0",
"hast-util-from-string": "^3.0.0",
"hast-util-select": "^6.0.2",
"hastscript": "^9.0.0",
"js-yaml": "^4.1.0",
"katex": "^0.16.10",
"mdsvex": "^0.11.0",
"prettier": "^3.2.5",
"prettier-plugin-svelte": "^3.2.2",
"prettier-plugin-svelte": "^3.2.3",
"rehype-autolink-headings": "^7.1.0",
"rehype-katex-svelte": "^1.2.0",
"rehype-slug": "^6.0.0",
"remark-math": "3.0.0",
"svelte": "^4.2.12",
"svelte-check": "^3.6.8",
"svelte-multiselect": "^10.2.0",
"svelte-preprocess": "^5.1.3",
"svelte": "^4.2.16",
"svelte-check": "^3.7.1",
"svelte-multiselect": "^10.3.0",
"svelte-preprocess": "^5.1.4",
"svelte-preprocess-import-assets": "^1.1.0",
"svelte-zoo": "^0.4.10",
"svelte2tsx": "^0.7.5",
"typescript": "^5.4.3",
"vite": "^5.2.7"
"svelte2tsx": "^0.7.8",
"typescript": "^5.4.5",
"typescript-eslint": "^7.8.0",
"vite": "^5.2.11"
}
}
66 changes: 33 additions & 33 deletions src/lib/oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ projects:
- Python
- Cython
- Jupyter Notebook
stars: 1336
commits: 979
stars: 1375
commits: 1002
- name: Matbench Discovery
url: https://matbench-discovery.materialsproject.org
logo: https://janosh.github.io/matbench-discovery/favicon.svg
Expand All @@ -25,8 +25,8 @@ projects:
- TypeScript
- JavaScript
- HTML
stars: 66
commits: 318
stars: 70
commits: 322
- name: CHGNet
url: https://chgnet.lbl.gov
repo: https://github.com/CederGroupHub/chgnet
Expand All @@ -40,20 +40,20 @@ projects:
- Cython
- CSS
- Svelte
- HTML
- JavaScript
- HTML
- TypeScript
stars: 184
commits: 175
- name: MACE
url: https://mace-docs.readthedocs.io
stars: 195
commits: 180
- name: MACE-MP
url: https://mace-docs.readthedocs.io/en/latest/examples/foundation_models.html#pretrained-mace-mp-0-models
repo: https://github.com/ACEsuit/mace
role: Contributor
paper: riebesell_foundation_2023
description: Fast and accurate machine learning interatomic potentials with higher order equivariant message passing.
logo: https://avatars.githubusercontent.com/u/68508620
stars: 345
commits: 21
stars: 375
commits: 22
languages:
- Python
- Shell
Expand All @@ -68,7 +68,7 @@ projects:
- Python
- JavaScript
- HTML
stars: 118
stars: 126
commits: 174
- name: pymatviz
url: https://pymatviz.janosh.dev
Expand All @@ -80,10 +80,10 @@ projects:
- Svelte
- CSS
- TypeScript
- HTML
- JavaScript
stars: 111
commits: 242
- HTML
stars: 121
commits: 246
- name: Tensorboard Reducer
repo: https://github.com/janosh/tensorboard-reducer
logo: https://raw.githubusercontent.com/janosh/tensorboard-reducer/main/assets/tensorboard-reducer-square.svg
Expand All @@ -92,16 +92,16 @@ projects:
languages:
- Python
- TeX
stars: 65
stars: 66
commits: 79
- name: Normalizing Flows
repo: https://github.com/janosh/awesome-normalizing-flows
logo: https://api.iconify.design/logos:awesome.svg?color=%23888888
description: Curated list of resources for learning and using normalizing flows, a powerful tool in ML for modeling probability distributions.
languages:
- Python
stars: 1283
commits: 72
stars: 1303
commits: 73
- name: atomate2
repo: https://github.com/materialsproject/atomate2
role: Maintainer
Expand All @@ -112,8 +112,8 @@ projects:
potential-powered structure relaxation workflows.
languages:
- Python
stars: 119
commits: 357
stars: 125
commits: 361
- name: jobflow
repo: https://github.com/materialsproject/jobflow
role: Maintainer
Expand All @@ -124,8 +124,8 @@ projects:
languages:
- Python
- TeX
stars: 83
commits: 115
stars: 85
commits: 117
- name: Aviary
repo: https://github.com/CompRhys/aviary
role: Maintainer
Expand All @@ -134,7 +134,7 @@ projects:
pypi: https://pypi.org/project/tensorboard-reducer
languages:
- Python
stars: 39
stars: 43
commits: 234
- name: MatCalc
url: https://materialsvirtuallab.github.io/matcalc
Expand All @@ -145,34 +145,34 @@ projects:
languages:
- Python
stars: 41
commits: 72
commits: 75
- name: TikZ
url: https://tikz.janosh.dev
repo: https://github.com/janosh/tikz
description: Collection TikZ figures for concepts in physics/chemistry/ML.
stars: 174
commits: 187
stars: 184
commits: 192
languages:
- TeX
- Svelte
- Python
- TypeScript
- Typst
- Shell
- JavaScript
- CSS
- HTML
- JavaScript
- name: Dielectrics
url: https://janosh.github.io/dielectrics
repo: https://github.com/janosh/dielectrics
description: Pushing the Pareto front of band gap and permittivity with ML-guided dielectrics discovery incl. experimental synthesis.
logo: https://github.com/janosh/tikz/raw/main/assets/plate-capacitor/plate-capacitor.svg
paper: riebesell_pushing_2024
stars: 7
commits: 14
commits: 17
languages:
- HTML
- Python
- ReScript
- Roff
- name: MultiSelect
url: https://multiselect.janosh.dev
repo: https://github.com/janosh/svelte-multiselect
Expand All @@ -181,7 +181,7 @@ projects:
- TypeScript
- Svelte
- CSS
- HTML
- JavaScript
stars: 263
commits: 271
- HTML
stars: 270
commits: 273
22 changes: 13 additions & 9 deletions src/lib/papers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -433,22 +433,26 @@ references:

- id: riebesell_matbench_2023
accessed:
- year: 2023
month: 11
day: 24
- year: 2024
month: 4
day: 5
author:
- family: Riebesell
given: Janosh
- family: Goodall
given: Rhys E. A.
- family: Jain
given: Anubhav
- family: Benner
given: Philipp
- family: Persson
given: Kristin A.
- family: Chiang
given: Yuan
- family: Deng
given: Bowen
- family: Lee
given: Alpha A.
- family: Jain
given: Anubhav
- family: Persson
given: Kristin A.
citation-key: riebesell_matbench_2023
DOI: 10.48550/arXiv.2308.14920
issued:
Expand All @@ -459,8 +463,8 @@ references:
publisher: arXiv
source: arXiv.org
title: >-
Matbench Discovery - An evaluation framework for machine learning crystal
stability prediction
Matbench Discovery -- A framework to evaluate machine learning crystal
stability predictions
URL: http://arxiv.org/abs/2308.14920

- id: riebesell_pushing_2024
Expand Down
21 changes: 10 additions & 11 deletions src/routes/cv/Papers.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,18 @@
return (idx1 - idx2) * dir
} else throw `Unknown sort_by: ${sort_by}`
}) as { title, id, author, DOI, URL: href, issued } (id)}
{@const author_str = author
.map(({ given, family }) => {
const first_name = {
initial: `${given[0]}. `,
full: `${given} `,
none: ``,
}[first_name_mode]
return `${first_name ?? ``}${family}`
})
.join(`, `)}
{@const authors_formatted = author.map(({ given, family }) => {
if (!family) throw `No family name in author=${JSON.stringify(author)} of ${title}`
const first_name = {
initial: `${given[0]}. `,
full: `${given} `,
none: ``,
}[first_name_mode]
return `${first_name ?? ``}${family}`
})}
<li animate:flip={{ duration: 400 }}>
<h3 {id}>{title}</h3>
{truncate_authors(author_str, target_author)}
{truncate_authors(authors_formatted.join(`, `), target_author)}
<small>
&mdash;
{#if DOI}
Expand Down
Loading

0 comments on commit 89a28d4

Please sign in to comment.