Commit Graph

11 Commits

Author SHA1 Message Date
Chen Qian
eabdb87f9f Add some numpy ops (#1)
* Add numpy ops (initial batch) and some config

* Add unit test

* fix call

* Revert "fix call"

This reverts commit 6748ad183029ff4b97317b77ceed8661916bb9a0.

* full unit test coverage

* fix setup.py
2023-04-12 11:31:58 -07:00
Francois Chollet
ac9aadc47a Clearing existing files 2023-04-07 00:00:00 +00:00
Haifeng Jin
4b0c7f791b ignore flake8 W605 for invalid skip character.
PiperOrigin-RevId: 504411321
2023-01-24 16:53:29 -08:00
Fabien Hertschuh
bffc22f612 Make formatting and linting scripts more flexible.
* Allow the scripts to be run from any directory, not just the root of the Keras repo. This can be subdirectories or parent directories.
* Allow `format.sh` to take multiple files as input and glob patterns.
* Move the isort `--sl` option to the `setup.cfg` file instead of repeating it on the command line.
* Remove redundant `-c` option in `isort --check`
* `format.sh hg` and `format.sh g4` handle all the modified files in one go instead of file by file to get an output that is more consistent with the other ways of running `format.sh`.
* Simplify `format.sh hg` and `format.sh g4` by taking advantage of the filtering option of `hg` and `g4`.

PiperOrigin-RevId: 477848955
2022-09-29 16:22:00 -07:00
Haifeng Jin
59ba620214 fix setup.cfg. The root directory's __init__.py was not ignored for F401.
PiperOrigin-RevId: 452313169
2022-06-01 09:24:15 -07:00
Haifeng Jin
5cf72f4934 fix the rest 2022-05-31 23:30:58 +00:00
Haifeng Jin
253dc46044 Reformatting the code base with isort.
PiperOrigin-RevId: 451564271
2022-05-27 22:01:15 -07:00
Haifeng Jin
7c46f91441 let the linter ignore certain lines, prepare to enforce line length 2022-05-28 03:20:00 +00:00
Haifeng Jin
a0a0b54612 Update the contributing guide for formatting the code.
PiperOrigin-RevId: 450994467
2022-05-25 12:59:02 -07:00
Qianli Scott Zhu
33c4e162e3
Cleanup legacy Keras files (#14256)
* Cleanup legacy Keras [1/N]

All the new docs should be located in keras-team/keras-io

* Cleanup legacy Keras [2/N]

Remove all the examples, and new examples should be located in keras-team/keras-io

* Cleanup legacy Keras code [3/N]

Delete all the py srcs and test files.
2020-10-20 14:55:05 -07:00
fchollet
b82ab804da Update setup.py and setup.cfg for pypi release 2015-06-13 17:26:18 -07:00