Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
chore: remove much unneeded ci
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentRPS committed Feb 14, 2023
1 parent 95ec52e commit 20d35e9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 186 deletions.
76 changes: 0 additions & 76 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,6 @@ repos:
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/PyCQA/autoflake
rev: v1.7.7
hooks:
- id: autoflake
# args:
# - --in-place
# - --remove-all-unused-imports
# - --expand-star-imports
# - --remove-duplicate-keys
# - --remove-unused-variables
- repo: https://github.com/asottile/pyupgrade
rev: v3.1.0
hooks:
- id: pyupgrade
args: [--py310-plus]
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
Expand All @@ -27,65 +12,4 @@ repos:
rev: 0.2.7
hooks:
- id: brunette
# See https://github.com/psf/black/issues/2188#issuecomment-1289317647 for why we can't use the --preview flag.
args: [--safe, --quiet, --single-quotes]
- repo: https://github.com/Pierre-Sassoulas/black-disable-checker
rev: 1.0.1
hooks:
- id: black-disable-checker
# - repo: https://github.com/PyCQA/flake8
# rev: 4.0.1
# hooks:
# - id: flake8
# additional_dependencies: [flake8-typing-imports==1.12.0]
# - repo: local
# hooks:
# - id: pylint
# name: pylint
# entry: pylint
# language: system
# types: [python]
# args: ["-rn", "-sn", "--rcfile=.pylintrc", "--fail-on=I"]
# # We define an additional manual step to allow running pylint with a spelling
# # checker in CI.
# - id: pylint
# alias: pylint-with-spelling
# name: pylint
# entry: pylint
# language: system
# types: [python]
# args: ["-rn", "-sn", "--rcfile=.pylintrc", "--fail-on=I", "--spelling-dict=en"]
# stages: [manual]
# - id: mypy
# name: mypy
# entry: mypy
# language: system
# types: [python]
# args: ["--non-interactive"]
# - repo: https://github.com/myint/rstcheck
# rev: "v5.0.0"
# hooks:
# - id: rstcheck
# args: ["--ignore-roles=func,class,mod", "--report=warning"]
# types: [text]
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v0.950
# hooks:
# - id: mypy

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.3
hooks:
- id: prettier
args: [--prose-wrap=always, --print-width=88]
- repo: https://github.com/DanielNoord/pydocstringformatter
rev: 93b15ca # TODO: Change this when v8.0 is released
hooks:
- id: pydocstringformatter
args:
[
--style=numpydoc,
--no-numpydoc-name-type-spacing,
--no-final-period,
--no-capitalize-first-letter,
]
110 changes: 0 additions & 110 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,82 +1,3 @@
[build-system]
requires = [
"setuptools>=62.6,<66",
"setuptools-scm>=6.2,<8",
]
build-backend = "setuptools.build_meta"

[project]
name = "py-cord"
authors = [
{name = "Pycord Development"}
]
description = "A Python wrapper for the Discord API"
readme = "README.rst"
requires-python = ">=3.10"
license = {text = "MIT"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Internet",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
"Typing :: Typed",
]
dynamic = ["version", "dependencies"]

[project.urls]
Homepage = "https://pycord.dev"
Changelog = "https://github.com/Pycord-Development/pycord/blob/master/CHANGELOG.md"
Source = "https://github.com/Pycord-Development/pycord"
Documentation = "https://docs.pycord.dev"
Tracker = "https://github.com/Pycord-Development/pycord/issues"
Funding = "https://patreon.com/pycord"

[project.optional-dependencies]
voice = [
"PyNaCl>=1.3.0,<1.6",
]
docs = [
"sphinx==5.3.0",
"sphinxcontrib_trio==1.1.2",
"sphinxcontrib-websupport",
"myst-parser",
"sphinxext-opengraph==0.8.1",
"sphinx-copybutton==0.5.1",
"furo@ git+https://github.com/BobDotCom/furo@temp",
]
speed = [
"orjson>=3.5.4",
"aiodns>=1.1",
"Brotlipy",
# cchardet does not support 3.10+, see https://github.com/PyYoshi/cChardet/pull/78
"cchardet>=2.1.5,<=2.1.7; python_version<'3.10'",
]

[tool.setuptools]
packages = [
'pycord',
'pycord.types',
'pycord.api',
'pycord.api.execution',
'pycord.gateway',
'pycord.commands',
'pycord.api.routers',
'pycord.ext',
'pycord.ext.gears',
]

[tool.setuptools.dynamic]
dependencies = {file = "requirements.txt"}

[tool.setuptools_scm]

[tool.brunette]
target-version = ["py310", "py311"]
single-quotes = true
Expand All @@ -86,38 +7,7 @@ profile = "black"
combine_as_imports = true
combine_star = true

[tool.mypy]
namespace_packages = true
install_types = true
strict = true
show_error_codes = true
#allow_untyped_decorators = true
#allow_untyped_calls = true
#ignore_errors = true

[tool.pylint.main]
extension-pkg-whitelist = [
"pydantic",
"ujson"
]
py-version = 3.10

[tool.pylint.messages_control]
enable = [
"bad-indentation",
"line-too-long"
]
disable = [
"protected-access",
"fixme"
]

[tool.pylint.format]
indent-string = ' '
max-line-length = 120

[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
]

0 comments on commit 20d35e9

Please sign in to comment.