From ce0dce1f932fcdbf903244d0ba4db4ff3eeb7e36 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Sun, 27 Nov 2022 12:03:28 +0300 Subject: [PATCH] Remove unneeded actions --- .github/workflows/bandit.yml | 27 ------------------------ .github/workflows/pyright.yml | 29 -------------------------- pyproject.toml | 39 +---------------------------------- 3 files changed, 1 insertion(+), 94 deletions(-) delete mode 100644 .github/workflows/bandit.yml delete mode 100644 .github/workflows/pyright.yml diff --git a/.github/workflows/bandit.yml b/.github/workflows/bandit.yml deleted file mode 100644 index fb40ed3..0000000 --- a/.github/workflows/bandit.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Bandit - -on: - - pull_request - - push - -env: - python-version: "3.10" - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout Repository - uses: actions/checkout@v3 - - - name: Set up Python ${{ env.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ env.python-version }} - - - name: Install Bandit - run: pip install -U pip bandit - - - name: Run Bandit - run: bandit --recursive ./ diff --git a/.github/workflows/pyright.yml b/.github/workflows/pyright.yml deleted file mode 100644 index afc76ae..0000000 --- a/.github/workflows/pyright.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: PyRight - -on: - - pull_request - - push - -env: - python-version: "3.10" - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout Repository - uses: actions/checkout@v3 - - - name: Set up Python ${{ env.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ env.python-version }} - - - name: Install PyRight & Dependencies - run: | - pip install -U pip pyright poetry - poetry install --only main - - - name: Run PyRight - run: poetry run pyright ./ diff --git a/pyproject.toml b/pyproject.toml index 1602b42..94667a9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,11 +12,9 @@ mcstatus = "*" uvloop = "*" [tool.poetry.dev-dependencies] -black = "*" flynt = "*" isort = "*" unimport = "*" -pyright = "*" [tool.poetry.scripts] bot = "minearchy_bot.__main__:main" @@ -28,42 +26,7 @@ preview = true [tool.isort] py_version = 310 add_imports = ["from __future__ import annotations"] -line_length = 79 +line_length = 100 profile = "black" combine_as_imports = true combine_star = true - -[tool.pyright] -pythonVersion = "3.10" -typeCheckingMode = "basic" -strictListInference = true -strictDictionaryInference = true -strictSetInference = true -reportMissingModuleSource = "error" -reportAssertAlwaysTrue = "error" -reportInvalidStringEscapeSequence = "error" -reportInvalidTypeVarUse = "error" -reportSelfClsParameterName = "error" -reportUnsupportedDunderAll = "error" -reportUnusedExpression = "error" -reportWildcardImportFromLibrary = "error" -reportConstantRedefinition = "error" -reportDuplicateImport = "error" -reportImportCycles = "error" -reportIncompatibleVariableOverride = "error" -reportIncompleteStub = "error" -reportInconsistentConstructor = "error" -reportInvalidStubStatement = "error" -reportMatchNotExhaustive = "error" -reportMissingParameterType = "error" -reportTypeCommentUsage = "error" -reportUnnecessaryCast = "error" -reportUnnecessaryComparison = "error" -reportUnnecessaryIsInstance = "error" -reportUnusedClass = "error" -reportUnusedVariable = "error" -reportUntypedClassDecorator = "error" -reportUntypedNamedTuple = "error" -reportCallInDefaultInitializer = "error" -reportPropertyTypeMismatch = "error" -reportUnnecessaryTypeIgnoreComment = "error"