Skip to content

Commit

Permalink
Cleanup project files
Browse files Browse the repository at this point in the history
  • Loading branch information
0x2b3bfa0 authored May 9, 2024
1 parent 1c49104 commit 003fe0b
Show file tree
Hide file tree
Showing 9 changed files with 170 additions and 135 deletions.
22 changes: 0 additions & 22 deletions .eslintrc.js

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/trigger-external.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ on:
release:
types: [published]
pull_request_target:
branches: [master]
branches: [main]
push:
branches: [master]
branches: [main]
jobs:
push:
if: ${{ github.event_name == 'push' && github.ref_name == 'master' }}
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -26,7 +26,7 @@ jobs:
--header "Authorization: token ${{ secrets.TEST_GITHUB_TOKEN }}" \
--header "Accept: application/vnd.github.v3+json" \
--url "https://api.github.com/repos/iterative/${{ matrix.repos }}/dispatches" \
--data '{"event_type":"push", "client_payload": {"branch":"master"}}'
--data '{"event_type":"push", "client_payload": {"branch":"main"}}'
pr:
if: ${{ github.event_name == 'pull_request_target' }}
runs-on: ubuntu-latest
Expand Down
142 changes: 129 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,130 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
.terraform/
.cml/
.DS_Store

main.tf
terraform.*
!terraform.js
!terraform.test.js
crash.log
/build
/coverage

.idea/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
54 changes: 0 additions & 54 deletions .gitlab-ci.yml

This file was deleted.

1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
## Usage
We helpfully provide CML and other useful libraries pre-installed on our
[custom Docker images](https://github.com/iterative/cml/blob/master/Dockerfile).
[custom Docker images](https://github.com/iterative/cml/blob/mains/Dockerfile).
In the above example, uncommenting the field
`container: ghcr.io/iterative/cml:0-dvc2-base1`) will make the runner pull the
CML Docker image. The image already has NodeJS, Python 3, DVC and CML set up on
Expand Down Expand Up @@ -215,7 +215,7 @@ git push origin experiment
```

5. In GitHub, open up a pull request to compare the `experiment` branch to
`master`.
`main`.

![](https://static.iterative.ai/img/cml/make_pr.png)

Expand Down Expand Up @@ -272,18 +272,18 @@ jobs:
# Report metrics
echo "## Metrics" >> report.md
git fetch --prune
dvc metrics diff master --show-md >> report.md
dvc metrics diff main --show-md >> report.md
# Publish confusion matrix diff
echo "## Plots" >> report.md
echo "### Class confusions" >> report.md
dvc plots diff --target classes.csv --template confusion -x actual -y predicted --show-vega master > vega.json
dvc plots diff --target classes.csv --template confusion -x actual -y predicted --show-vega main > vega.json
vl2png vega.json -s 1.5 > confusion_plot.png
echo "![](./confusion_plot.png)" >> report.md
# Publish regularization function diff
echo "### Effects of regularization" >> report.md
dvc plots diff --target estimators.csv -x Regularization --show-vega master > vega.json
dvc plots diff --target estimators.csv -x Regularization --show-vega main > vega.json
vl2png vega.json -s 1.5 > plot.png
echo "![](./plot.png)" >> report.md
Expand Down
26 changes: 0 additions & 26 deletions bitbucket-pipelines.yml

This file was deleted.

33 changes: 32 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,41 @@
"dvc"
],
"license": "Apache-2.0",
"main": "index.js",
"engines": {
"node": ">=16.0.0"
},
"eslintConfig": {
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jest": true
},
"extends": ["standard", "prettier"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2020
},
"ignorePatterns": ["assets/", "dist/", "node_modules/"],
"rules": {
"camelcase": [1, { "properties": "never" }],
"prettier/prettier": "error"
},
"plugins": ["prettier"]
},
"prettier": {
"arrowParens": "always",
"singleQuote": true,
"trailingComma": "none",
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"proseWrap": "always"
},
"main": "index.js",
"bin": {
"cml": "bin/cml.js",
"cml-send-github-check": "bin/legacy/link.js",
Expand Down
9 changes: 0 additions & 9 deletions prettier.config.js

This file was deleted.

0 comments on commit 003fe0b

Please sign in to comment.