From 90573975f3399107f4507432f436cd5c155c27f0 Mon Sep 17 00:00:00 2001 From: Micha Reiser Date: Thu, 27 Jul 2023 11:32:12 +0200 Subject: [PATCH] Delete more unused files --- .cspell.json | 304 -------------------------------------- .gitattributes | 5 - .github/workflows/ci.yaml | 71 --------- .gitignore | 17 --- 4 files changed, 397 deletions(-) delete mode 100644 .cspell.json delete mode 100644 .gitattributes delete mode 100644 .github/workflows/ci.yaml delete mode 100644 .gitignore diff --git a/.cspell.json b/.cspell.json deleted file mode 100644 index 7c28311819..0000000000 --- a/.cspell.json +++ /dev/null @@ -1,304 +0,0 @@ -// See: https://github.com/streetsidesoftware/cspell/tree/master/packages/cspell -{ - "version": "0.2", - // language - current active spelling language - "language": "en", - // dictionaries - list of the names of the dictionaries to use - "dictionaries": [ - "en_US", - "softwareTerms", - "c", - "cpp", - "python", - "python-custom", - "rust", - "unix", - "posix", - "winapi" - ], - // dictionaryDefinitions - this list defines any custom dictionaries to use - "dictionaryDefinitions": [], - "ignorePaths": [ - "**/__pycache__/**", - "Lib/**" - ], - // words - list of words to be always considered correct - "words": [ - // Rust - "ahash", - "bidi", - "biguint", - "bindgen", - "bitflags", - "bstr", - "byteorder", - "chrono", - "consts", - "cstring", - "flate2", - "fract", - "hasher", - "hexf", - "idents", - "indexmap", - "insta", - "keccak", - "lalrpop", - "libc", - "libz", - "longlong", - "Manually", - "nbaz", - "maplit", - "memchr", - "memrchr", - "memmap", - "metas", - "modpow", - "nanos", - "peekable", - "powc", - "powf", - "prepended", - "punct", - "replacen", - "rsplitn", - "rustc", - "rustfmt", - "seekfrom", - "splitn", - "subsec", - "timsort", - "trai", - "ulonglong", - "unic", - "unistd", - "unsync", - "winapi", - "winsock", - // Python - "abstractmethods", - "aiter", - "anext", - "arrayiterator", - "arraytype", - "asend", - "athrow", - "basicsize", - "cformat", - "classcell", - "closesocket", - "codepoint", - "codepoints", - "cpython", - "decompressor", - "defaultaction", - "descr", - "dictcomp", - "dictitems", - "dictkeys", - "dictview", - "docstring", - "docstrings", - "dunder", - "eventmask", - "fdel", - "fget", - "fileencoding", - "fillchar", - "finallyhandler", - "frombytes", - "fromhex", - "fromunicode", - "fset", - "fspath", - "fstring", - "fstrings", - "genexpr", - "getattro", - "getformat", - "getnewargs", - "getweakrefcount", - "getweakrefs", - "hostnames", - "idiv", - "impls", - "infj", - "instancecheck", - "instanceof", - "isabstractmethod", - "itemiterator", - "itemsize", - "iternext", - "keyiterator", - "kwarg", - "kwargs", - "linearization", - "linearize", - "listcomp", - "mappingproxy", - "maxsplit", - "memoryview", - "memoryviewiterator", - "metaclass", - "metaclasses", - "metatype", - "mro", - "mros", - "nanj", - "ndigits", - "ndim", - "nonbytes", - "origname", - "posixsubprocess", - "pyexpat", - "PYTHONDEBUG", - "PYTHONHOME", - "PYTHONINSPECT", - "PYTHONOPTIMIZE", - "PYTHONPATH", - "PYTHONPATH", - "PYTHONVERBOSE", - "PYTHONWARNINGS", - "qualname", - "radd", - "rdiv", - "rdivmod", - "reconstructor", - "reversevalueiterator", - "rfloordiv", - "rlshift", - "rmod", - "rpow", - "rrshift", - "rsub", - "rtruediv", - "scproxy", - "setattro", - "setcomp", - "stacklevel", - "subclasscheck", - "subclasshook", - "unionable", - "unraisablehook", - "valueiterator", - "vararg", - "varargs", - "varnames", - "warningregistry", - "warnopts", - "weakproxy", - "xopts", - // RustPython - "baseclass", - "Bytecode", - "cfgs", - "codegen", - "dedentations", - "dedents", - "deduped", - "downcasted", - "dumpable", - "GetSet", - "internable", - "makeunicodedata", - "miri", - "nonterminal", - "notrace", - "pyarg", - "pyarg", - "pyargs", - "PyAttr", - "pyc", - "PyClass", - "PyClassMethod", - "PyException", - "PyFunction", - "pygetset", - "pyimpl", - "pymember", - "PyMethod", - "PyModule", - "pyname", - "pyobj", - "PyObject", - "pypayload", - "PyProperty", - "pyref", - "PyResult", - "pyslot", - "PyStaticMethod", - "pystr", - "pystruct", - "pystructseq", - "pytrace", - "reducelib", - "richcompare", - "RustPython", - "struc", - "tracebacks", - "typealiases", - "Unconstructible", - "unhashable", - "uninit", - "unraisable", - "wasi", - "zelf", - // cpython - "argtypes", - "asdl", - "asname", - "augassign", - "badsyntax", - "basetype", - "boolop", - "bxor", - "cellarg", - "cellvar", - "cellvars", - "cmpop", - "dictoffset", - "elts", - "excepthandler", - "finalbody", - "freevar", - "freevars", - "fromlist", - "heaptype", - "IMMUTABLETYPE", - "kwonlyarg", - "kwonlyargs", - "linearise", - "maxdepth", - "mult", - "nkwargs", - "orelse", - "patma", - "posonlyarg", - "posonlyargs", - "prec", - "significand", - "stackdepth", - "unaryop", - "unparse", - "unparser", - "VARKEYWORDS", - "varkwarg", - "wbits", - "withitem", - "withitems", - "withs" - ], - // flagWords - list of words to be always considered incorrect - "flagWords": [ - ], - "ignoreRegExpList": [ - ], - // languageSettings - allow for per programming language configuration settings. - "languageSettings": [ - { - "languageId": "python", - "locale": "en" - } - ] -} diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index e1a7c56f6e..0000000000 --- a/.gitattributes +++ /dev/null @@ -1,5 +0,0 @@ -parser/src/python.rs linguist-generated -**/*.snap linguist-generated -merge -**/*.lalrpop text eol=LF -**/*.py text working-tree-encoding=UTF-8 eol=LF -**/*.rs text working-tree-encoding=UTF-8 eol=LF diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index 68d70799e6..0000000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,71 +0,0 @@ -on: - push: - branches: [main, release] - pull_request: - types: [opened, synchronize, reopened] - merge_group: - -name: CI - -# Cancel previous workflows if they are the same workflow on same ref (branch/tags) -# with the same event (push/pull_request) even they are in progress. -# This setting will help reduce the number of duplicated workflows. -concurrency: - group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} - cancel-in-progress: true - -env: - CARGO_ARGS: --no-default-features --features stdlib,zlib,importlib,encodings,ssl,jit - -jobs: - rust_tests: - if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip:ci') }} - env: - RUST_BACKTRACE: full - name: Run rust tests - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, windows-latest] - fail-fast: false - steps: - - uses: actions/checkout@v3 - - uses: dtolnay/rust-toolchain@stable - - name: Set up the Mac environment - run: brew install autoconf automake libtool - if: runner.os == 'macOS' - - - uses: Swatinem/rust-cache@v2 - - - name: run tests - run: cargo test --all --all-features - - lint: - name: Check Rust code with rustfmt and clippy - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: dtolnay/rust-toolchain@stable - with: - components: rustfmt, clippy - - name: run rustfmt - run: cargo fmt --all -- --check - - name: run clippy - run: cargo clippy --all --all-features -- -Dwarnings - - - uses: actions/setup-python@v4 - with: - python-version: "3.11" - - name: install ruff - run: python -m pip install ruff - - name: run python lint - run: ruff --ignore=E501 ruff_python_ast --show-source - - - name: spell checker - uses: streetsidesoftware/cspell-action@v2 - with: - files: | - 'ast/**/*.rs' - 'core/**/*.rs' - 'literal/**/*.rs' - 'parser/**/*.rs' diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 89454b8efb..0000000000 --- a/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -Cargo.lock - -/target -/*/target -**/*.rs.bk -**/*.bytecode -__pycache__ -**/*.pytest_cache -.*sw* -.vscode -.idea/ -.venv/ - -flame-graph.html -flame.txt -flamescope.json -