Skip to content

Commit

Permalink
update and format
Browse files Browse the repository at this point in the history
  • Loading branch information
grizz committed Oct 18, 2024
1 parent 056f692 commit 0de5668
Show file tree
Hide file tree
Showing 5 changed files with 234 additions and 224 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exclude: |
)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
rev: v5.0.0
hooks:
- id: check-yaml
- id: trailing-whitespace
Expand All @@ -18,7 +18,7 @@ repos:
types: [python]
pass_filenames: true
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.14
rev: v0.7.0
hooks:
- id: ruff
args: [--fix]
Expand Down
31 changes: 12 additions & 19 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name = "peeringdb"
version = "2.2.0"
description = "PeeringDB Django models"
readme = "README.md"
repository = "https://github.com/peeringdb/peeringdb-py"
authors = [{ name = "PeeringDB", email = "[email protected]" }]
license = "Apache-2.0"
requires-python = ">=3.8"
Expand All @@ -24,24 +23,28 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Internet"
"Topic :: Internet",
]
dependencies = [
"confu>=1",
"munge[toml,tomlkit,yaml]>=1.2.0",
"twentyc.rpc>=1",
"pyyaml>=6.0.1",
"httpx>=0.24.1"
"httpx>=0.24.1",
]

[project.optional-dependencies]
dev = [
[project.urls]
repository = "https://github.com/peeringdb/peeringdb-py"


[tool.uv]
dev-dependencies = [
"django_peeringdb>=3.1.0",
"django>=4.2",
"pytest>=8",
"pytest-cov >= 5",
"pytest-cov>=5",
"tox>=4",
"tox-gh-actions >= 3",
"tox-gh-actions>=3",
"tox-uv>=1.13.0",
"mypy>=0.950",
"pre-commit>=2.13",
Expand All @@ -53,22 +56,12 @@ dev = [
"ctl>=1",
"jinja2>=3",
"tmpl>=1",
"twine>=3"
"twine>=3",
]

[project.scripts]
peeringdb = "peeringdb.cli:main"

[[project.packages]]
include = "peeringdb"
from = "src"

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

[project.plugins."markdown.extensions"]
pymdgen = "pymdgen.md:Extension"

[[project.source]]
name = "pypi-public"
url = "https://pypi.org/simple/"
1 change: 0 additions & 1 deletion src/peeringdb/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from peeringdb.output._dict import dump_python_dict
from peeringdb.util import load_failed_entries, save_failed_entries
from peeringdb.whois import WhoisFormat
from peeringdb.util import load_failed_entries, save_failed_entries


_log = logging.getLogger(__name__)
Expand Down
6 changes: 0 additions & 6 deletions src/peeringdb/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,6 @@ class LogSchema(_schema.Schema):
)
level = _schema.Str("log_level", default=os.environ.get("LOG_LEVEL", "INFO"))

class LogSchema(_schema.Schema):
allow_other_loggers = _schema.Int(
"allow_other_loggers", default=os.environ.get("ALLOW_OTHER_LOGGERS", 0)
)
level = _schema.Str("log_level", default=os.environ.get("LOG_LEVEL", "INFO"))

sync = SyncSchema()
orm = OrmSchema()
log = LogSchema()
Expand Down
Loading

0 comments on commit 0de5668

Please sign in to comment.