Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Community leaders are responsible for clarifying and enforcing our standards of
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces.

## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the project team at contributors@neural-sdk.dev. All complaints will be reviewed and investigated promptly and fairly.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the project team at hudson@intelip.co. All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the reporter of any incident.

Expand All @@ -42,4 +42,4 @@ Community leaders will follow these Community Impact Guidelines in determining t
## Attribution
This Code of Conduct is adapted from the Contributor Covenant, version 2.1, available at https://www.contributor-covenant.org/version/2/1/code_of_conduct.html

For answers to common questions about this code of conduct, see https://www.contributor-covenant.org/faq.
For answers to common questions about this code of conduct, see https://www.contributor-covenant.org/faq.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,4 @@ The SDK documentation lives in `docs/` and uses Mintlify. When you update docs a

- Documentation: https://neural-sdk.mintlify.app
- Discussions: https://github.com/IntelIP/Neural/discussions
- Email: contributors@neural-sdk.dev
- Email: hudson@intelip.co
2 changes: 1 addition & 1 deletion docs/mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"topbarLinks": [
{
"name": "Support",
"url": "mailto:support@neural-sdk.com"
"url": "mailto:hudson@intelip.co"
}
],
"topbarCtaButton": {
Expand Down
4 changes: 2 additions & 2 deletions docs/openapi/authentication-schemes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ info:
version: 1.0.0
contact:
name: Neural SDK Support
email: support@neural-sdk.com
email: hudson@intelip.co
url: https://github.com/IntelIP/Neural
license:
name: MIT
Expand Down Expand Up @@ -495,4 +495,4 @@ tags:
- name: Authorization
description: Authorization flows and permissions
- name: Security
description: Security best practices and error handling
description: Security best practices and error handling
4 changes: 2 additions & 2 deletions docs/openapi/data-collection-apis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ info:
version: 1.0.0
contact:
name: Neural SDK Support
email: support@neural-sdk.com
email: hudson@intelip.co
url: https://github.com/IntelIP/Neural
license:
name: MIT
Expand Down Expand Up @@ -806,4 +806,4 @@ tags:
- name: ESPN Sports Data
description: Real-time sports scores and team information from ESPN API
- name: Twitter API
description: Social media data and sentiment analysis from Twitter API
description: Social media data and sentiment analysis from Twitter API
4 changes: 2 additions & 2 deletions docs/openapi/data-models.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ info:
version: 1.0.0
contact:
name: Neural SDK Support
email: support@neural-sdk.com
email: hudson@intelip.co
url: https://github.com/IntelIP/Neural
license:
name: MIT
Expand Down Expand Up @@ -1022,4 +1022,4 @@ components:
ErrorCategory:
type: string
enum: [validation, authentication, authorization, rate_limit, server, network]
description: Error category enumeration
description: Error category enumeration
4 changes: 2 additions & 2 deletions docs/openapi/fix-protocol.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ info:
version: 5.0.2
contact:
name: Neural SDK Support
email: support@neural-sdk.com
email: hudson@intelip.co
url: https://github.com/IntelIP/Neural
license:
name: MIT
Expand Down Expand Up @@ -889,4 +889,4 @@ tags:
- name: Market Data
description: Real-time market data subscriptions and updates
- name: System Messages
description: System-level messages and error handling
description: System-level messages and error handling
4 changes: 2 additions & 2 deletions docs/openapi/kalshi-trading-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ info:
version: 2.0.0
contact:
name: Neural SDK Support
email: support@neural-sdk.com
email: hudson@intelip.co
url: https://github.com/IntelIP/Neural
license:
name: MIT
Expand Down Expand Up @@ -922,4 +922,4 @@ tags:
- name: Order Management
description: Order creation, modification, and cancellation
- name: Historical Data
description: Historical market data for analysis
description: Historical market data for analysis
4 changes: 2 additions & 2 deletions docs/openapi/websocket-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ info:
version: 2.0.0
contact:
name: Neural SDK Support
email: support@neural-sdk.com
email: hudson@intelip.co
url: https://github.com/IntelIP/Neural

servers:
Expand Down Expand Up @@ -615,4 +615,4 @@ tags:
- name: Trading
description: Order and position update channels
- name: System
description: System messages and errors
description: System messages and errors
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@ keywords = [
]
authors = [
{ name = "Hudson Aikins", email = "hudson@intelip.co" },
{ name = "Neural Contributors", email = "contributors@neural-sdk.dev" }
{ name = "Neural Contributors" }
]
maintainers = [
{ name = "Advanced Intellectual Labs LLC", email = "hudson@intelip.co" },
{ name = "Neural Contributors", email = "contributors@neural-sdk.dev" }
{ name = "Advanced Intellectual Labs LLC", email = "hudson@intelip.co" }
]
classifiers = [
"Development Status :: 4 - Beta",
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate_openapi_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __init__(self, output_dir: Path = Path("docs/openapi")):
"title": "Neural SDK API",
"version": "0.3.0",
"description": "REST API for Neural SDK trading and data collection functionality",
"contact": {"name": "Neural SDK Team", "email": "support@neural-sdk.com"},
"contact": {"name": "Neural SDK Team", "email": "hudson@intelip.co"},
"license": {
"name": "MIT",
"url": "https://github.com/IntelIP/Neural/blob/main/LICENSE",
Expand Down
36 changes: 36 additions & 0 deletions tests/test_contact_security.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
from pathlib import Path

REPO_ROOT = Path(__file__).resolve().parents[1]
CONTACT_SURFACES = (
"pyproject.toml",
"CONTRIBUTING.md",
"CODE_OF_CONDUCT.md",
"docs/mint.json",
"docs/openapi/authentication-schemes.yaml",
"docs/openapi/data-collection-apis.yaml",
"docs/openapi/data-models.yaml",
"docs/openapi/fix-protocol.yaml",
"docs/openapi/kalshi-trading-api.yaml",
"docs/openapi/websocket-api.yaml",
"scripts/generate_openapi_specs.py",
)
UNCONTROLLED_CONTACT_DOMAINS = tuple("neural-sdk" + suffix for suffix in (".dev", ".com"))


def test_public_contact_surfaces_do_not_use_uncontrolled_domains() -> None:
violations = []

for relative_path in CONTACT_SURFACES:
content = (REPO_ROOT / relative_path).read_text(encoding="utf-8")
for domain in UNCONTROLLED_CONTACT_DOMAINS:
if domain in content:
violations.append(f"{relative_path}: {domain}")

assert not violations, "Uncontrolled contact domains found: " + ", ".join(violations)


def test_package_metadata_uses_accountable_maintainer_contact() -> None:
metadata = (REPO_ROOT / "pyproject.toml").read_text(encoding="utf-8")

assert '{ name = "Hudson Aikins", email = "hudson@intelip.co" }' in metadata
assert '{ name = "Advanced Intellectual Labs LLC", email = "hudson@intelip.co" }' in metadata
Loading