Skip to content

Commit

Permalink
Merge pull request #37 from ninoseki/v0.4.0
Browse files Browse the repository at this point in the history
v0.4.0
  • Loading branch information
ninoseki committed Jun 25, 2022
2 parents da16d49 + f786d4d commit 6541da3
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 43 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Expand Up @@ -11,7 +11,7 @@ repos:
]

- repo: https://github.com/asottile/pyupgrade
rev: v2.32.0
rev: v2.34.0
hooks:
- id: pyupgrade
args: [--py37-plus]
Expand Down
28 changes: 0 additions & 28 deletions README.md
Expand Up @@ -44,18 +44,6 @@ get_abuse_contacts("foo@example.com")

```bash
$ abuse_whois 1.1.1.1 | jq .
{
"address": "1.1.1.1",
"hostname": "1.1.1.1",
"ipAddress": "1.1.1.1",
"sharedHostingProvider": null,
"registrar": null,
"hostingProvider": {
"provider": "Cloudflare",
"address": "https://www.cloudflare.com/abuse/form",
"type": "form"
}
}
```

### As a REST API
Expand All @@ -68,22 +56,6 @@ INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)

$ http localhost:8000/api/whois/ address=https://github.com
{
"address": "https://github.com",
"hostingProvider": {
"address": "abuse@amazonaws.com",
"provider": "",
"type": "email"
},
"hostname": "github.com",
"ipAddress": "52.192.72.89",
"registrar": {
"address": "abusecomplaints@markmonitor.com",
"provider": "MarkMonitor, Inc.",
"type": "email"
},
"sharedHostingProvider": null
}
```

### With Docker
Expand Down
18 changes: 10 additions & 8 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 9 additions & 6 deletions pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "abuse_whois"
version = "0.3.1"
version = "0.4.0"
description = "Find where to report a domain for abuse"
authors = ["Manabu Niseki <manabu.niseki@gmail.com>"]
license = "MIT"
Expand Down Expand Up @@ -35,14 +35,14 @@ black = "^22.3.0"
coveralls = "^3.3.1"
isort = "^5.10.1"
mypy = "^0.942"
pre-commit = "^2.18.1"
pre-commit = "^2.19.0"
pytest = "^6.2.5"
pytest-asyncio = "^0.16.0"
pytest-asyncio = "^0.18.3"
pytest-cov = "^3.0.0"
pytest-mock = "^3.7.0"
pytest-randomly = "^3.11.0"
pytest-mock = "^3.8.1"
pytest-randomly = "^3.12.0"
pytest-sugar = "^0.9.4"
pyupgrade = "^2.32.0"
pyupgrade = "^2.34.0"

[tool.poetry.extras]
api = ["uvicorn", "gunicorn"]
Expand All @@ -53,3 +53,6 @@ abuse_whois = "abuse_whois.cli:app"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.pytest.ini_options]
asyncio_mode = "auto"

0 comments on commit 6541da3

Please sign in to comment.