summaryrefslogtreecommitdiff
path: root/tools/format.py
AgeCommit message (Collapse)Author
2020-11-05build: rewrite tools/ scripts to deno (#8247)Bartek Iwańczuk
This commit rewrites scripts in "tools/" directory to use Deno instead of Python. In return it allows to remove huge number of Python packages in "third_party/".
2020-07-14Use dprint for internal formatting (#6682)David Sherret
2020-06-09fix(tools): prettier formatting (#6206)Mark Tiedemann
2020-06-06Chunk prettier invocation (#6129)Mark Tiedemann
This avoids failures due to exceeding the maximum command line length. Fixes: #5017
2020-05-09add option to lint and format only staged files (#5172)Michał Zdunek
2020-01-05Replace libdeno with rusty_v8 (#3556)Ry Dahl
2020-01-02Add missing year ranges to copyright notices (#3582)Waldir Pimenta
2019-09-15Move GN root into //core/libdeno (#2943)Christian Moritz
2019-09-15tools: refactor lint.py and format.py (#2950)Bert Belder
2019-09-15tools: clean up third_party.py, and merge prebuilt.py into it (#2950)Bert Belder
* Remove reference to removed dir 'third_party/rust_crates'. * Remove reference to unused environment variable 'DENO_NINJA_PATH'. * Remove helper functions 'root()' and 'tp()'. * Move definition of 'third_party_path' to build.py. * Move definition of 'gn_exe()' to setup.py. * Move 'download_sccache()' and 'download_hyperfine()' from prebuilt.py to third_party.py, and delete prebuilt.py. * Add helper function 'get_platform_dir_name()' to locate the platform-specific 'v8/buildtools/<platform>' and 'prebuilt/<platform>' directories. * Add helper function 'get_prebuilt_tool_path()' that returns the full path to a platform-specific executable in //prebuilt. * Cosmetic improvements.
2019-09-11Upgrade pylint (#2917)Ryan Dahl
depot_tools is removing pylint from its distribution so we must maintain our own copy.
2019-09-02Refactor snapshot build (#2825)Ryan Dahl
Instead of using core/snapshot_creator.rs, instead two crates are introduced which allow building the snapshot during build.rs. Rollup is removed and replaced with our own bundler. This removes the Node build dependency. Modules in //js now use Deno-style imports with file extensions, rather than Node style extensionless imports. This improves incremental build time when changes are made to //js files by about 40 seconds.
2019-07-31Use system rustfmt instead of fixed binary (#2701)Ryan Dahl
2019-07-18Reorder tools/format.py so slowest are last (#2661)Ryan Dahl
2019-05-16tools: format .gn files in the 'cli' directoryBert Belder
2019-03-30Call ninja directly from build.rs (#2020)Ryan Dahl
2019-03-30Move //libdeno to //core/libdeno (#2015)Ryan Dahl
Fixes some sed errors introduced in c43cfe. Unfortunately moving libdeno required splitting build.rs into two parts, one for cli and one for core. I've also removed the arm64 build - it's complicating things at this re-org and we're not even testing it. I need to swing back to it and get tools/test.py running for it.
2019-03-19Rename //src/ to //cli/ (#1962)Ryan Dahl
To better distinguish the deno_core crate from the executable deno, which will now be called "the cli" internally.
2019-03-04tools: remove fix_symlinks() functionBert Belder
This fixes an issue on Windows that causes build to fails when fix_symlinks() is called concurrently with another build step. It is also no longer necessary, since recent versions of git know how to properly create symbolic links on checkout.
2019-02-26deno_core (#1827)Ryan Dahl
A new low-level crate with focus on speed. This doesn't yet hook into the existing code base.
2019-02-12Revert "Rewrite tools/format.py in deno (#1528)" (#1752)Ryan Dahl
tools/format.ts is making CI flaky and it's difficult to run right now. Reverting to tools/format.py This reverts commit f19622e7681b7753788137706e535f72c3ebb38e.
2019-01-17Rewrite tools/format.py in deno (#1528)Yoshiya Hinosawa
Note: findFiles and findFilesWalk are borrowed from the previous attempt of @pseudo-su (#1434)
2018-12-24deno_net -> deno_std renameRyan Dahl
Also don't format external js/deps
2018-11-29Move libdeno build config to libdeno/BUILD.gnRyan Dahl
2018-10-31Support cargo check (#1128)Ryan Dahl
- Based on code from @qti3e and @piscisaureus in #724 and #1125 respectively. - TODO The DENO_BUILD_PATH env var must be supplied and must be an absolute path, this restriction should be removed in future work.
2018-10-30Make format.py less verbose.Ryan Dahl
2018-10-23format: don't format files in third_partyBert Belder
It's annoying, and it also makes appveyor slow because it will re-upload the third_party cache every time something changes in there.
2018-10-23third_party: install yapf with pipBert Belder
2018-10-21Add yapf to third_party.Ryan Dahl
2018-10-20Add rustfmt to third_party.Ryan Dahl
2018-10-19Add missing copyrights (#1024)ztplz
2018-10-11Replace globals.d.ts with lib.deno_runtime.d.tsKitson Kelly
2018-10-04tools/format: format markdown files with prettierBert Belder
2018-09-22Add benchmark tools (#777)Yoshiya Hinosawa
2018-09-21Revert "Add benchmark tools (#777)"Bert Belder
This reverts commit 3ad48bdb3e6372f55579808535ce2c17809178ff.
2018-09-21Add benchmark tools (#777)Yoshiya Hinosawa
2018-09-10tools/format: don't format files in third_party on WindowsBert Belder
2018-08-26tools/format: fix clang-format glob patternBert Belder
2018-08-17chore: download clang-format from google storageYoshiya Hinosawa
2018-08-17chore: format files in tests/Yoshiya Hinosawa
2018-08-08Remove RUSTFMT_FLAGSRyan Dahl
2018-08-08Change rustfmt flags. For v0.8.2.Ryan Dahl
2018-07-25Remove msg_generated hack (#409)Kitson Kelly
2018-07-25Clean up and fix toolsBert Belder
* Make sync_third_party work in general * Un-break build.py and run_hooks.py on windows * Partially fix format.py on windows * Reduce code duplication between run_hooks and sync_third_party
2018-07-24Fix recursive globbing in tools/format.pyRyan Dahl
And use third_party/depot_tools/gn.
2018-07-20Wrap rust at 80 columns.Ryan Dahl
2018-07-19Link rust_test targets with external linker, fix handlers_test linkageBert Belder
2018-07-10Remove -f option from rustfmt. (#356)Ryan Dahl
And add support for RUSTFMT_FLAGS (Some people might need -f option)
2018-07-09chore: use local prettierYoshiya Hinosawa
2018-07-08tools: fix windowsBert Belder
This fixes most things, but format.py doesn't work yet, because yapf is broken due to some depot_tools shimming python.