-
Notifications
You must be signed in to change notification settings - Fork 405
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Andrew Schonfeld
committed
Sep 9, 2019
0 parents
commit a6cb770
Showing
179 changed files
with
40,057 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"presets" : ["@babel/env", "@babel/react", "@babel/flow"], | ||
"env": { | ||
"test": { | ||
"plugins": ["istanbul"] | ||
}, | ||
"production": { | ||
"compact" : true | ||
} | ||
} | ||
} |
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,134 @@ | ||
defaults: &defaults | ||
parallelism: 1 | ||
shell: /bin/bash --login | ||
environment: | ||
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts | ||
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results | ||
COVERALLS_REPO_TOKEN: WnzSri2b3no9Fh0buPancG1krS4jVfQiG | ||
COVERALLS_PARALLEL: true | ||
notify: | ||
webhooks: | ||
- url: https://coveralls.io/webhook?repo_token=WnzSri2b3no9Fh0buPancG1krS4jVfQiG | ||
steps: | ||
- checkout | ||
- run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS | ||
# Restore the dependency cache | ||
- restore_cache: | ||
keys: | ||
# This branch if available | ||
- v1-dep-{{ .Branch }}- | ||
# Default branch if not | ||
- v1-dep-master- | ||
# Any branch if there are none on the default branch - this should be unnecessary if you have your default branch configured correctly | ||
- v1-dep- | ||
- restore_cache: | ||
name: Restore Yarn Package Cache | ||
keys: | ||
- yarn-packages-{{ checksum "yarn.lock" }} | ||
- run: | ||
name: Install Dependencies | ||
command: | | ||
yarn install --frozen-lockfile | ||
- save_cache: | ||
name: Save Yarn Package Cache | ||
key: yarn-packages-{{ checksum "yarn.lock" }} | ||
paths: | ||
- ~/.cache/yarn | ||
- run: | ||
name: Lint & Format JS Code | ||
command: | | ||
yarn run lint | ||
yarn run format | ||
- run: | ||
name: Check for JS Formatting Diffs | ||
command: | | ||
git diff --name-status | ||
git diff-files --quiet || (echo 'The files above have not been formatted!' && (exit 1)) | ||
- run: | ||
name: Run JS Tests & Coverage | ||
command: | | ||
yarn run test-with-coverage | ||
yarn run report-duplicate-code | ||
cat ./JS_coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js | ||
cp -r ./JS_coverage /tmp/circleci-test-results | ||
- run: | ||
name: Build JS | ||
command: | | ||
yarn run build | ||
- run: sudo apt-get install pandoc | ||
- run: | ||
name: Create and activate virtualenv | ||
command: | | ||
virtualenv ci | ||
. ci/bin/activate | ||
pip install six | ||
pip install lxml | ||
pip install coveralls | ||
pip install flake8 | ||
pip install isort | ||
pip install -r docs/source/requirements.txt | ||
python setup.py develop | ||
# Save dependency cache | ||
- save_cache: | ||
key: v1-dep-{{ .Branch }}-{{ epoch }} | ||
paths: | ||
- ~/ci | ||
- run: | ||
name: Run Flake8 | ||
command: | | ||
. ci/bin/activate | ||
flake8 | ||
- run: | ||
name: Run isort | ||
command: | | ||
. ci/bin/activate | ||
isort --recursive -c -vb setup.py dtale tests | ||
# Test | ||
- run: | ||
name: Run all tests | ||
command: | | ||
set -e | ||
. ci/bin/activate | ||
export TZ=America/New_York | ||
python setup.py test | ||
cp -r ./htmlcov /tmp/circleci-test-results | ||
cp ./coverage.xml /tmp/circleci-test-results | ||
python setup.py build_sphinx | ||
cp -r ./build /tmp/circleci-artifacts | ||
- run: | ||
name: Get Python code coverage | ||
command: | | ||
. ci/bin/activate | ||
coveralls | ||
- run: | ||
name: Copy test artifacts | ||
command: | | ||
cp -r ./JS_coverage /tmp/circleci-test-results | ||
# Save test results | ||
- store_test_results: | ||
path: /tmp/circleci-test-results | ||
# Save artifacts | ||
- store_artifacts: | ||
path: /tmp/circleci-artifacts | ||
- store_artifacts: | ||
path: /tmp/circleci-test-results | ||
|
||
|
||
version: 2 | ||
jobs: | ||
build_2_7: | ||
working_directory: ~/manahl/dtale_2_7 | ||
docker: | ||
- image: circleci/python:2.7-stretch-node-browsers | ||
<<: *defaults | ||
build_3: | ||
working_directory: ~/manahl/dtale_3 | ||
docker: | ||
- image: circleci/python:3.6-stretch-node-browsers | ||
<<: *defaults | ||
workflows: | ||
version: 2 | ||
build_all: | ||
jobs: | ||
- build_2_7 | ||
- build_3 |
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,8 @@ | ||
[report] | ||
omit = | ||
setup.py | ||
dtale/static/** | ||
dtale/templates/** | ||
|
||
exclude_lines = | ||
if __name__ == .__main__.: |
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 @@ | ||
node_modules |
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,75 @@ | ||
{ | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"ecmaFeatures": { | ||
"jsx": true, | ||
"impliedStrict": true | ||
}, | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"arrow-parens": ["warn", "as-needed"], | ||
"arrow-spacing": "warn", | ||
"array-bracket-spacing": "warn", | ||
"block-spacing": "warn", | ||
"comma-dangle": ["warn", "always-multiline"], | ||
"comma-spacing": "warn", | ||
"computed-property-spacing": "warn", | ||
"dot-location": ["warn", "property"], | ||
"eol-last": "warn", | ||
"indent": ["warn", 2], | ||
"key-spacing": "warn", | ||
"keyword-spacing": "warn", | ||
"linebreak-style": "warn", | ||
"lodash/preferred-alias": "warn", | ||
"no-extra-parens": "warn", | ||
"no-extra-semi": "warn", | ||
"no-floating-decimal": "warn", | ||
"no-implicit-coercion": "warn", | ||
"no-irregular-whitespace": "warn", | ||
"no-mixed-spaces-and-tabs": "warn", | ||
"no-multiple-empty-lines": ["warn", {"max": 1}], | ||
"no-multi-spaces": "warn", | ||
"no-spaced-func": "warn", | ||
"no-trailing-spaces": "warn", | ||
"no-undef-init": "warn", | ||
"no-useless-computed-key": "warn", | ||
"no-useless-rename": "warn", | ||
"no-var": "warn", | ||
"no-whitespace-before-property": "warn", | ||
"object-curly-spacing": "warn", | ||
"object-shorthand" : "warn", | ||
"prefer-arrow-callback": "warn", | ||
"prefer-const": ["warn", {"destructuring": "all"}], | ||
"prefer-numeric-literals": "warn", | ||
"quote-props": ["warn", "as-needed"], | ||
"react/jsx-boolean-value": "warn", | ||
"react/jsx-closing-bracket-location": ["warn", {"selfClosing": "after-props", "nonEmpty": "after-props"}], | ||
"react/jsx-curly-spacing": "warn", | ||
"react/jsx-equals-spacing": "warn", | ||
"react/jsx-indent": ["warn", 2], | ||
"react/jsx-indent-props": ["warn", 2], | ||
"react/jsx-space-before-closing": "warn", | ||
"react/no-unknown-property": "warn", | ||
"rest-spread-spacing": "warn", | ||
"semi": "warn", | ||
"semi-spacing": "warn", | ||
"space-before-blocks": "warn", | ||
"space-before-function-paren": ["warn", "never"], | ||
"space-in-parens": "warn", | ||
"space-infix-ops": "warn", | ||
"space-unary-ops": "warn", | ||
"spaced-comment": "warn", | ||
"template-curly-spacing": "warn", | ||
"yoda" : "warn" | ||
}, | ||
"plugins": [ | ||
"lodash", | ||
"promise", | ||
"react", | ||
"tape", | ||
"prettier", | ||
"flowtype", | ||
"babel" | ||
] | ||
} |
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,97 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"jest": true | ||
}, | ||
"globals": { | ||
"Promise": true | ||
}, | ||
"parser": "babel-eslint", | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"ecmaFeatures": { | ||
"jsx": true, | ||
"impliedStrict": true | ||
}, | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"arrow-body-style": ["error", "as-needed"], | ||
"babel/no-invalid-this": "error", | ||
"block-scoped-var": "error", | ||
"camelcase": ["error", {"properties": "never"}], | ||
"complexity": "error", | ||
"consistent-this": ["error", "me"], | ||
"consistent-return": "error", | ||
"curly": "error", | ||
"dot-notation": "error", | ||
"lodash/chaining": "off", | ||
"lodash/import-scope": "off", | ||
"lodash/prefer-constant": "off", | ||
"lodash/prefer-includes": "error", | ||
"lodash/prefer-lodash-chain": "off", | ||
"lodash/prefer-lodash-method": "off", | ||
"lodash/path-style": ["error", "as-needed"], | ||
"max-len": ["error", {"code": 120}], | ||
"max-lines": ["error", 300], | ||
"max-params": ["error", 8], | ||
"max-statements": ["error", 25], | ||
"max-statements-per-line": ["error", {"max": 2}], | ||
"new-cap": "error", | ||
"no-alert": "error", | ||
"no-console": ["error", {"allow": ["error"]}], | ||
"no-constant-condition": ["error", {"checkLoops": false}], | ||
"no-eq-null": "error", | ||
"no-eval": "error", | ||
"no-extra-label": "error", | ||
"no-extra-bind": "error", | ||
"no-extend-native": "error", | ||
"no-fallthrough": "error", | ||
"no-invalid-this": "off", | ||
"no-lone-blocks": "error", | ||
"no-lonely-if": "error", | ||
"no-mixed-spaces-and-tabs": "off", | ||
"no-negated-condition": "error", | ||
"no-return-assign": "error", | ||
"no-restricted-globals": ["error", "fetch", "self", "module"], | ||
"no-self-compare": "error", | ||
"no-sequences": "error", | ||
"no-unused-expressions": "error", | ||
"no-unused-vars": ["error", {"args": "all", "argsIgnorePattern": "^_"}], | ||
"no-useless-computed-key": "error", | ||
"no-useless-escape": "error", | ||
"no-use-before-define": "error", | ||
"no-unreachable": "error", | ||
"no-useless-call": "error", | ||
"no-useless-concat": "error", | ||
"no-void": "error", | ||
"no-with": "error", | ||
"prefer-const": ["error", {"destructuring": "all"}], | ||
"prefer-rest-params": "error", | ||
"prefer-spread": "error", | ||
"prettier/prettier": ["error", {"trailingComma": "es5", "printWidth": 120, "jsxBracketSameLine": true}], | ||
"promise/catch-or-return": "error", | ||
"react/no-unused-prop-types": "error", | ||
"react/jsx-key": "error", | ||
"strict": "error", | ||
"tape/no-ignored-test-files": ["error", {"files": ["static/__tests__/**/*test.js", "static/__tests__/**/*test.jsx"]}] | ||
}, | ||
"plugins": [ | ||
"lodash", | ||
"promise", | ||
"react", | ||
"tape", | ||
"prettier", | ||
"flowtype", | ||
"babel" | ||
], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:lodash/recommended", | ||
"plugin:react/recommended", | ||
"plugin:tape/recommended", | ||
"prettier", | ||
"plugin:flowtype/recommended" | ||
] | ||
} |
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,5 @@ | ||
[flake8] | ||
max_line_length = 120 | ||
select = E, W, F | ||
ignore = W503 | ||
exclude = node_modules,ci,build,docs |
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,9 @@ | ||
[ignore] | ||
node_modules/* | ||
|
||
[include] | ||
|
||
[libs] | ||
|
||
[options] | ||
esproposal.class_instance_fields=enable |
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 @@ | ||
dtale/static/* linguist-vendored |
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,29 @@ | ||
*.pyc | ||
*.egg-info | ||
|
||
# test output files | ||
.cache | ||
.coverage | ||
.nyc_output | ||
js_junit.xml | ||
duplicates.xml | ||
tap-output | ||
results.tap | ||
TEST-dtale-tests.xml | ||
coverage.xml | ||
htmlcov/ | ||
JS_coverage/ | ||
|
||
build/ | ||
dist/ | ||
node_modules/ | ||
npm-debug.log | ||
.idea | ||
.tern-port | ||
.vscode | ||
.project | ||
.pydevproject | ||
|
||
# built JS files | ||
dtale/static/dist | ||
jest_tmp |
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,6 @@ | ||
[settings] | ||
not_skip=dtale/__init__.py | ||
default_section = THIRDPARTY | ||
known_first_party = dtale | ||
known_flask = flask | ||
sections = FUTURE,STDLIB,FLASK,THIRDPARTY,FIRSTPARTY,LOCALFOLDER |
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,5 @@ | ||
{ | ||
"postcss-sorting": { | ||
"preserve-empty-lines-between-children-rules": 1 | ||
} | ||
} |
Oops, something went wrong.