From 8fd8399437608a1b13b832ebfa68f0c667badc4f Mon Sep 17 00:00:00 2001 From: George Hotz <72895+geohot@users.noreply.github.com> Date: Fri, 1 Dec 2023 09:48:41 -0800 Subject: [PATCH] remove flake8 (#2544) --- .flake8 | 8 -------- .github/workflows/test.yml | 2 -- .pre-commit-config.yaml | 6 ------ setup.py | 1 - 4 files changed, 17 deletions(-) delete mode 100644 .flake8 diff --git a/.flake8 b/.flake8 deleted file mode 100644 index 7ef3c2bc8..000000000 --- a/.flake8 +++ /dev/null @@ -1,8 +0,0 @@ -[flake8] # https://flake8.pycqa.org/en/6.0.0/user/options.html#cmdoption-flake8-select -filename = - */tinygrad/*.py, - */test/*.py -select=F,W6,E71,E72,E112,E113,E124,E203,E272,E303,E304,E502,E702,E703,E731,W191 -indent-size=2 -per-file-ignores = - test/*: F401, F403, F405, F541, E722, E731, F811, F821, F841 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 44e539b00..c9c9e6e39 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,8 +34,6 @@ jobs: run: python sz.py - name: Lint with pylint run: python -m pylint --disable=all -e W0311 -e C0303 --jobs=0 --indent-string=' ' **/*.py - - name: Lint with flake8 - run: python -m flake8 . --statistics -j4 - name: Lint with ruff run: | pip3 install --upgrade --force-reinstall ruff diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index de63e740b..92144a5e6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,12 +25,6 @@ repos: language: system always_run: true pass_filenames: false - - id: flake8 - name: flake8 - entry: flake8 --statistics -j4 - language: system - always_run: true - pass_filenames: false - id: tests name: subset of TORCH tests entry: env PYTHONPATH="." TORCH=1 python3 -m pytest -n=4 test/unit/ test/test_ops.py test/test_dtype.py test/test_schedule.py test/test_custom_function.py test/test_assign.py test/test_symbolic_shapetracker.py diff --git a/setup.py b/setup.py index 9ce42e8ca..2360b2aa2 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,6 @@ setup(name='tinygrad', 'triton': ["triton-nightly>=2.1.0.dev20231014192330"], 'webgpu': ["wgpu>=v0.12.0"], 'linting': [ - "flake8", "pylint", "mypy", "typing-extensions",