Skip to content

Commit

Permalink
Added rye
Browse files Browse the repository at this point in the history
  • Loading branch information
nfearnley committed May 27, 2024
1 parent 2cc51ad commit 7d9a919
Show file tree
Hide file tree
Showing 31 changed files with 510 additions and 1,760 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
*.pyc
.pytest_cache
build
dist

# Python Virtual Envs
.venv

# Visual Studio
.vs
Expand Down
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12.3
43 changes: 0 additions & 43 deletions Pipfile

This file was deleted.

1,533 changes: 0 additions & 1,533 deletions Pipfile.lock

This file was deleted.

110 changes: 110 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
[project]
name = "sizebot"
version = "3.8.0"
description = "sizebot"
readme = "README.md"
license = {file = "LICENSE"}
authors = [
{ name = "DigiDuncan", email = "[email protected]" },
{ name = "Natalie Fearnley", email = "[email protected]" }
]
classifiers = [
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
]
requires-python = ">= 3.12"
dependencies = [
"colored==1.4.2",
"discord-py==2.3.2",
"appdirs==1.4.4",
"toml==0.10.2",
"numpy==1.26.4",
"pynacl==1.5.0",
"digiformatter==0.5.7.2",
"python-dateutil==2.9.0.post0",
"requests==2.31.0",
"inflect==7.0.0",
"arrow==1.3.0",
"validator-collection==1.5.0",
"flask==3.0.2",
"jinja2==3.1.3",
"itsdangerous==2.1.2",
"werkzeug==3.0.1",
"pytz==2024.1",
"pillow==10.2.0",
"tqdm==4.66.2",
"aiohttp-requests==0.2.3",
"asyncstdlib==3.12.1",
"ndjson==0.3.1",
"packaging==24.0",
"sizeroyale==1.0.5",
"numexpr==2.9.0",
]

[tool.rye]
managed = true
dev-dependencies = [
"pytest==8.1.1",
"flake8==7.0.0",
"autopep8==2.0.4",
"pytest-asyncio==0.23.5.post1",
"flake8-annotations==3.1.0",
]

[project.urls]
Homepage = "https://github.com/sizedev/sizebot"
Repository = "https://github.com/sizedev/sizebot.git"
Issues = "https://github.com/sizedev/sizebot/issues"
Changelog = "https://github.com/sizedev/sizebot/blob/master/changelogs/3.8.md"

[project.scripts]
sizebot = "sizebot.main:main"
sizebotapi = "sizebotapi.main:main"

[tool.hatch.metadata]
allow-direct-references = true

[tool.hatch.build.targets.wheel]
packages = ["sizebot"]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.ruff.lint]
select = [
"F", # Pyflakes
"E", "W", # pycodestyle
"C90", # mccabe
"N", # pep8-naming
"UP", # pyupgrade
"ANN", # flake8-annotations
"ASYNC", # flake8-async
"BLE", # flake8-blind-except
"FBT", # flake8-boolean-trap
"B", # flake8-bugbear
"A", # flake8-builtins
"COM", # flake8-commas
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez
"ICN", # flake8-import-conventions
"LOG", # flake8-logging
"PIE", # flake8-pie
"T20", # flake8-print
"PYI", # flake8-pyi
"PT", # flake8-pytest-style
"RSE", # flake8-raise
"RET", # flake8-return
"SLF", # flake8-self
"PTH", # flake8-use-pathlib
"FIX", # flake8-fixme
"ERA", # eradicate
"PGH", # pygrep-hooks
"RUF", # Ruff-specific rules

]
ignore = ["E501", "COM812", "PIE790", "RET504", "RUF001", "RUF013"]

[tool.ruff.lint.pep8-naming]
ignore-names = ["fromJSON", "toJSON"]
156 changes: 156 additions & 0 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
# generated by rye
# use `rye lock` or `rye sync` to update this lockfile
#
# last locked with the following flags:
# pre: false
# features: []
# all-features: false
# with-sources: false
# generate-hashes: false

-e file:.
aiohttp==3.9.5
# via aiohttp-requests
# via discord-py
aiohttp-requests==0.2.3
# via sizebot
aiosignal==1.3.1
# via aiohttp
annotated-types==0.7.0
# via pydantic
appdirs==1.4.4
# via sizebot
arrow==1.3.0
# via sizebot
asyncstdlib==3.12.1
# via sizebot
attrs==23.2.0
# via aiohttp
# via flake8-annotations
# via jsonschema
# via referencing
autopep8==2.0.4
blinker==1.8.2
# via flask
brotli==1.1.0
# via aiohttp
certifi==2024.2.2
# via requests
cffi==1.16.0
# via pynacl
charset-normalizer==3.3.2
# via requests
click==8.1.7
# via flask
colorama==0.4.6
# via click
# via pytest
# via tqdm
colored==1.4.2
# via digiformatter
# via sizebot
coworker==2.0.1
# via aiohttp-requests
digiformatter==0.5.7.2
# via sizebot
discord-py==2.3.2
# via sizebot
flake8==7.0.0
# via flake8-annotations
flake8-annotations==3.1.0
flask==3.0.2
# via sizebot
frozenlist==1.4.1
# via aiohttp
# via aiosignal
idna==3.7
# via requests
# via yarl
inflect==7.0.0
# via sizebot
iniconfig==2.0.0
# via pytest
itsdangerous==2.1.2
# via flask
# via sizebot
jinja2==3.1.3
# via flask
# via sizebot
jsonschema==4.22.0
# via validator-collection
jsonschema-specifications==2023.12.1
# via jsonschema
markupsafe==2.1.5
# via jinja2
# via werkzeug
mccabe==0.7.0
# via flake8
multidict==6.0.5
# via aiohttp
# via yarl
ndjson==0.3.1
# via sizebot
numexpr==2.9.0
# via sizebot
numpy==1.26.4
# via numexpr
# via sizebot
packaging==24.0
# via pytest
# via sizebot
pillow==10.2.0
# via sizebot
pluggy==1.5.0
# via pytest
pycodestyle==2.11.1
# via autopep8
# via flake8
pycparser==2.22
# via cffi
pydantic==2.7.1
# via inflect
pydantic-core==2.18.2
# via pydantic
pyflakes==3.2.0
# via flake8
pynacl==1.5.0
# via sizebot
pytest==8.1.1
# via pytest-asyncio
pytest-asyncio==0.23.5.post1
python-dateutil==2.9.0.post0
# via arrow
# via sizebot
pytz==2024.1
# via sizebot
referencing==0.35.1
# via jsonschema
# via jsonschema-specifications
requests==2.31.0
# via sizebot
rpds-py==0.18.1
# via jsonschema
# via referencing
six==1.16.0
# via python-dateutil
sizeroyale==1.0.5
# via sizebot
toml==0.10.2
# via sizebot
tqdm==4.66.2
# via sizebot
types-python-dateutil==2.9.0.20240316
# via arrow
typing-extensions==4.12.0
# via inflect
# via pydantic
# via pydantic-core
urllib3==2.2.1
# via requests
validator-collection==1.5.0
# via sizebot
werkzeug==3.0.1
# via flask
# via sizebot
yarl==1.9.4
# via aiohttp
Loading

0 comments on commit 7d9a919

Please sign in to comment.