-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from kiraum/kiraum/pyproject_precommit_docstring
chore: Adding pyproject, pre-commit, updating docstring/requirements, and others
- Loading branch information
Showing
7 changed files
with
191 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: 'v4.5.0' | ||
hooks: | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- repo: local | ||
hooks: | ||
- id: isort | ||
name: isort | ||
entry: isort -m3 --tc | ||
language: system | ||
- repo: local | ||
hooks: | ||
- id: black | ||
name: black | ||
entry: black | ||
language: python | ||
types_or: [python, pyi] | ||
- repo: local | ||
hooks: | ||
- id: ruff | ||
name: ruff | ||
entry: ruff check --force-exclude | ||
language: python | ||
types_or: [python, pyi] | ||
- repo: local | ||
hooks: | ||
- id: pylint | ||
name: pylint | ||
entry: pylint | ||
args: | ||
- --rcfile=pyproject.toml | ||
- -d format | ||
language: system | ||
types: [python] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,15 +43,15 @@ pip install -r requirements.txt | |
``` | ||
i% ./peering_gossip.py -lg https://alice-rs.linx.net | ||
rs1-in2-lon1-linx-net-v4 | ||
rs1-in2-lon1-linx-net-v6 | ||
rs1-in2-lon1-linx-net-v6 | ||
rs3-tch-lon1-linx-net-v4 | ||
rs3-tch-lon1-linx-net-v6 | ||
rs2-in2-lon2-linx-net-v4 | ||
rs2-in2-lon2-linx-net-v6 | ||
rs1-tcw-man1-linx-net-v4 | ||
rs1-tcw-man1-linx-net-v6 | ||
rs1-pue-sco1-linx-net-v4 | ||
rs1-pue-sco1-linx-net-v6 | ||
rs1-pue-sco1-linx-net-v4 | ||
rs1-pue-sco1-linx-net-v6 | ||
rs1-ngd-car1-linx-net-v4 | ||
rs1-ngd-car1-linx-net-v6 | ||
rs1-imm-nva1-linx-net-v4 | ||
|
@@ -68,7 +68,7 @@ rs2-tcj-man1-linx-net-v4 | |
rs2-tcj-man1-linx-net-v6 | ||
Filtered prefixes @ https://alice-rs.linx.net | ASN | NAME | Contacts | PeeringDB link | ||
3066 | 3216 | SOVAM-AS | [email protected],[email protected],[email protected],[email protected],[email protected] | https://www.peeringdb.com/asn/3216 | ||
1182 | 39386 | STC-IGW-AS | [email protected],[email protected],[email protected] | https://www.peeringdb.com/asn/39386 | ||
1182 | 39386 | STC-IGW-AS | [email protected],[email protected],[email protected] | https://www.peeringdb.com/asn/39386 | ||
783 | 7713 | telkomnet-as-ap | [email protected],[email protected],[email protected],[email protected] | https://www.peeringdb.com/asn/7713 | ||
546 | 57463 | NetIX | [email protected],[email protected] | https://www.peeringdb.com/asn/57463 | ||
... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ ixps: | |
- https://lg.ams-ix.net | ||
- https://lg.de-cix.net | ||
- https://alice-rs.linx.net | ||
- https://lg.ix.br |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[project] | ||
name = "peering_gossip" | ||
description = "The idea is to have a gossip tool generating a Hall of Shame for Autonomous Systems that are not so polite." | ||
version = "0.0.1" | ||
authors = [{ name = "Tiago Felipe Goncalves", email = "[email protected]" }] | ||
readme = "README.md" | ||
requires-python = ">=3.12" | ||
keywords = ["peering", "tool", "shame", "hall"] | ||
dependencies = [ | ||
"requests", | ||
"black", | ||
"isort", | ||
"pylint", | ||
"ruff", | ||
"pytest", | ||
"yamllint", | ||
"uv", | ||
] | ||
|
||
[project.urls] | ||
documentation = "https://github.com/kiraum/peering_buddy/blob/main/README.md" | ||
repository = "https://github.com/kiraum/peering_buddy/" | ||
|
||
[tool.pylint.messages_control] | ||
disable = [ | ||
"format", | ||
] | ||
|
||
[tool.isort] | ||
profile = "black" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,49 @@ | ||
astroid==2.15.5 | ||
black==23.3.0 | ||
certifi==2023.5.7 | ||
charset-normalizer==3.1.0 | ||
click==8.1.3 | ||
dill==0.3.6 | ||
idna==3.4 | ||
isort==5.12.0 | ||
lazy-object-proxy==1.9.0 | ||
# This file was autogenerated by uv via the following command: | ||
# uv pip compile pyproject.toml | ||
astroid==3.1.0 | ||
# via pylint | ||
black==24.4.2 | ||
certifi==2024.2.2 | ||
# via requests | ||
charset-normalizer==3.3.2 | ||
# via requests | ||
click==8.1.7 | ||
# via black | ||
dill==0.3.8 | ||
# via pylint | ||
idna==3.7 | ||
# via requests | ||
iniconfig==2.0.0 | ||
# via pytest | ||
isort==5.13.2 | ||
# via pylint | ||
mccabe==0.7.0 | ||
# via pylint | ||
mypy-extensions==1.0.0 | ||
packaging==23.1 | ||
pathspec==0.11.1 | ||
platformdirs==3.5.1 | ||
pyaml==23.5.9 | ||
pylint==2.17.4 | ||
PyYAML==6.0 | ||
# via black | ||
packaging==24.0 | ||
# via | ||
# black | ||
# pytest | ||
pathspec==0.12.1 | ||
# via | ||
# black | ||
# yamllint | ||
platformdirs==4.2.1 | ||
# via | ||
# black | ||
# pylint | ||
pluggy==1.5.0 | ||
# via pytest | ||
pylint==3.1.0 | ||
pytest==8.2.0 | ||
pyyaml==6.0.1 | ||
# via yamllint | ||
requests==2.31.0 | ||
tomli==2.0.1 | ||
tomlkit==0.11.8 | ||
typing_extensions==4.6.3 | ||
urllib3==1.26.16 | ||
wrapt==1.15.0 | ||
ruff==0.4.3 | ||
tomlkit==0.12.5 | ||
# via pylint | ||
urllib3==2.2.1 | ||
# via requests | ||
uv==0.1.41 | ||
yamllint==1.35.1 |