sphinx-source-tree 0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sphinx_source_tree-0.1/.coveralls.yml +1 -0
- sphinx_source_tree-0.1/.env +2 -0
- sphinx_source_tree-0.1/.github/workflows/test.yml +106 -0
- sphinx_source_tree-0.1/.gitignore +38 -0
- sphinx_source_tree-0.1/.pre-commit-config.yaml +54 -0
- sphinx_source_tree-0.1/.readthedocs.yaml +46 -0
- sphinx_source_tree-0.1/.secrets.baseline +148 -0
- sphinx_source_tree-0.1/CHANGELOG.rst +23 -0
- sphinx_source_tree-0.1/CODE_OF_CONDUCT.rst +144 -0
- sphinx_source_tree-0.1/CONTRIBUTING.rst +113 -0
- sphinx_source_tree-0.1/LICENSE +21 -0
- sphinx_source_tree-0.1/Makefile +105 -0
- sphinx_source_tree-0.1/PKG-INFO +301 -0
- sphinx_source_tree-0.1/README.rst +244 -0
- sphinx_source_tree-0.1/SECURITY.rst +32 -0
- sphinx_source_tree-0.1/conftest.py +25 -0
- sphinx_source_tree-0.1/docs/Makefile +20 -0
- sphinx_source_tree-0.1/docs/changelog.rst +1 -0
- sphinx_source_tree-0.1/docs/code_of_conduct.rst +1 -0
- sphinx_source_tree-0.1/docs/conf.py +103 -0
- sphinx_source_tree-0.1/docs/conf.py.distrib +103 -0
- sphinx_source_tree-0.1/docs/contributor_guidelines.rst +1 -0
- sphinx_source_tree-0.1/docs/documentation.rst +16 -0
- sphinx_source_tree-0.1/docs/index.rst +2 -0
- sphinx_source_tree-0.1/docs/index.rst.distrib +2 -0
- sphinx_source_tree-0.1/docs/llms.rst +21 -0
- sphinx_source_tree-0.1/docs/make.bat +35 -0
- sphinx_source_tree-0.1/docs/package.rst +15 -0
- sphinx_source_tree-0.1/docs/requirements.txt +192 -0
- sphinx_source_tree-0.1/docs/security.rst +1 -0
- sphinx_source_tree-0.1/docs/source_tree.rst +193 -0
- sphinx_source_tree-0.1/docs/sphinx_source_tree.rst +7 -0
- sphinx_source_tree-0.1/pyproject.toml +213 -0
- sphinx_source_tree-0.1/setup.cfg +4 -0
- sphinx_source_tree-0.1/sphinx_source_tree.egg-info/PKG-INFO +301 -0
- sphinx_source_tree-0.1/sphinx_source_tree.egg-info/SOURCES.txt +40 -0
- sphinx_source_tree-0.1/sphinx_source_tree.egg-info/dependency_links.txt +1 -0
- sphinx_source_tree-0.1/sphinx_source_tree.egg-info/entry_points.txt +2 -0
- sphinx_source_tree-0.1/sphinx_source_tree.egg-info/requires.txt +33 -0
- sphinx_source_tree-0.1/sphinx_source_tree.egg-info/top_level.txt +1 -0
- sphinx_source_tree-0.1/sphinx_source_tree.py +589 -0
- sphinx_source_tree-0.1/test_sphinx_source_tree.py +432 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
service_name: github-actions
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
name: test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
pull_request:
|
|
6
|
+
types: [review_requested, ready_for_review]
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
# *************************************
|
|
10
|
+
# ************* Pre-commit ************
|
|
11
|
+
# *************************************
|
|
12
|
+
pre-commit:
|
|
13
|
+
name: pre-commit ${{ matrix.python-version }} - ${{ matrix.os }}
|
|
14
|
+
runs-on: ${{ matrix.os }}
|
|
15
|
+
strategy:
|
|
16
|
+
fail-fast: true
|
|
17
|
+
max-parallel: 5
|
|
18
|
+
matrix:
|
|
19
|
+
os:
|
|
20
|
+
- ubuntu-22.04
|
|
21
|
+
python-version:
|
|
22
|
+
- "3.11"
|
|
23
|
+
# - "3.10"
|
|
24
|
+
# - "3.9"
|
|
25
|
+
# - "3.8"
|
|
26
|
+
# - "3.7"
|
|
27
|
+
steps:
|
|
28
|
+
- uses: actions/checkout@v4
|
|
29
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
30
|
+
uses: actions/setup-python@v5
|
|
31
|
+
with:
|
|
32
|
+
python-version: ${{ matrix.python-version }}
|
|
33
|
+
- name: Install detect-secrets
|
|
34
|
+
run: pip install --no-cache-dir detect-secrets doc8 isort
|
|
35
|
+
- name: Run pre-commit
|
|
36
|
+
uses: pre-commit/action@v3.0.1
|
|
37
|
+
|
|
38
|
+
# *************************************
|
|
39
|
+
# **************** Tests **************
|
|
40
|
+
# *************************************
|
|
41
|
+
test:
|
|
42
|
+
needs: pre-commit
|
|
43
|
+
name: test ${{ matrix.python-version }} - ${{ matrix.os }}
|
|
44
|
+
runs-on: ${{ matrix.os }}
|
|
45
|
+
strategy:
|
|
46
|
+
fail-fast: false
|
|
47
|
+
max-parallel: 5
|
|
48
|
+
matrix:
|
|
49
|
+
os:
|
|
50
|
+
- ubuntu-22.04
|
|
51
|
+
# - Windows
|
|
52
|
+
# - MacOs
|
|
53
|
+
python-version:
|
|
54
|
+
- "3.13"
|
|
55
|
+
- "3.12"
|
|
56
|
+
- "3.11"
|
|
57
|
+
- "3.10"
|
|
58
|
+
# - "3.9"
|
|
59
|
+
steps:
|
|
60
|
+
- name: Clean-up
|
|
61
|
+
run: sudo apt clean && sudo apt autoclean && sudo rm -rf /tmp/* && sudo rm -rf /usr/share/dotnet && sudo rm -rf /opt/ghc && sudo rm -rf "/usr/local/share/boost" && sudo rm -rf "$AGENT_TOOLSDIRECTORY"
|
|
62
|
+
- uses: actions/checkout@v4
|
|
63
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
64
|
+
uses: actions/setup-python@v5
|
|
65
|
+
with:
|
|
66
|
+
python-version: ${{ matrix.python-version }}
|
|
67
|
+
- name: Install Dependencies
|
|
68
|
+
run: |
|
|
69
|
+
python -m pip install --upgrade pip
|
|
70
|
+
- name: Install package
|
|
71
|
+
run: |
|
|
72
|
+
pip install -e .[all]
|
|
73
|
+
- name: Run test suite
|
|
74
|
+
run: pytest -vrx
|
|
75
|
+
env:
|
|
76
|
+
PYTEST_ADDOPTS: "-vv --durations=10"
|
|
77
|
+
- name: Coveralls
|
|
78
|
+
id: coveralls-setup
|
|
79
|
+
continue-on-error: true
|
|
80
|
+
uses: AndreMiras/coveralls-python-action@develop
|
|
81
|
+
with:
|
|
82
|
+
parallel: true
|
|
83
|
+
flag-name: Run Tests
|
|
84
|
+
|
|
85
|
+
# *************************************
|
|
86
|
+
# ************** Coveralls ************
|
|
87
|
+
# *************************************
|
|
88
|
+
coveralls_finish:
|
|
89
|
+
name: coveralls_finish
|
|
90
|
+
needs: test
|
|
91
|
+
runs-on: ubuntu-latest
|
|
92
|
+
steps:
|
|
93
|
+
- name: Install dependencies
|
|
94
|
+
run: |
|
|
95
|
+
python -m pip install pyyaml
|
|
96
|
+
- name: Coveralls Finished
|
|
97
|
+
id: coveralls-finish
|
|
98
|
+
continue-on-error: true
|
|
99
|
+
# if: steps.coveralls-setup.outcome == 'success'
|
|
100
|
+
env:
|
|
101
|
+
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
|
102
|
+
GITHUB_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
|
103
|
+
uses: AndreMiras/coveralls-python-action@develop
|
|
104
|
+
with:
|
|
105
|
+
parallel-finished: true
|
|
106
|
+
debug: true
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
*.py[cod]
|
|
2
|
+
.gitignore~
|
|
3
|
+
.tox/
|
|
4
|
+
.cache/
|
|
5
|
+
.coverage*
|
|
6
|
+
!.coveragerc
|
|
7
|
+
/htmlcov/
|
|
8
|
+
*.py,cover
|
|
9
|
+
.idea/
|
|
10
|
+
.vscode/
|
|
11
|
+
.pytest_cache/
|
|
12
|
+
/coverage.xml
|
|
13
|
+
.eggs/
|
|
14
|
+
|
|
15
|
+
codebin/
|
|
16
|
+
/tmp/
|
|
17
|
+
.zip
|
|
18
|
+
/examples/db/
|
|
19
|
+
/var/
|
|
20
|
+
/examples/tmp/
|
|
21
|
+
/examples/logs/
|
|
22
|
+
/builddocs/
|
|
23
|
+
/builddocs.zip
|
|
24
|
+
/build/
|
|
25
|
+
/dist/
|
|
26
|
+
sphinx_source_tree.egg-info/
|
|
27
|
+
matyan.log*
|
|
28
|
+
db.sqlite3
|
|
29
|
+
sample_db.sqlite
|
|
30
|
+
test_database.db
|
|
31
|
+
local_settings.py
|
|
32
|
+
/prof/
|
|
33
|
+
*.cast
|
|
34
|
+
.ipynb_checkpoints/
|
|
35
|
+
.scannerwork/
|
|
36
|
+
*db.sqlite3*
|
|
37
|
+
.mypy_cache/
|
|
38
|
+
uv.lock
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
exclude: "^docs/|/migrations/"
|
|
2
|
+
default_stages: [ pre-commit, pre-push ]
|
|
3
|
+
default_language_version:
|
|
4
|
+
python: python3
|
|
5
|
+
|
|
6
|
+
repos:
|
|
7
|
+
|
|
8
|
+
- repo: https://github.com/PyCQA/doc8
|
|
9
|
+
rev: v2.0.0
|
|
10
|
+
hooks:
|
|
11
|
+
- id: doc8
|
|
12
|
+
args: []
|
|
13
|
+
|
|
14
|
+
- repo: https://github.com/Yelp/detect-secrets
|
|
15
|
+
rev: v1.5.0
|
|
16
|
+
hooks:
|
|
17
|
+
- id: detect-secrets
|
|
18
|
+
args: ['--baseline', '.secrets.baseline']
|
|
19
|
+
|
|
20
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
21
|
+
rev: v6.0.0
|
|
22
|
+
hooks:
|
|
23
|
+
- id: trailing-whitespace
|
|
24
|
+
exclude: "data/"
|
|
25
|
+
|
|
26
|
+
- id: end-of-file-fixer
|
|
27
|
+
- id: check-yaml
|
|
28
|
+
- id: check-toml
|
|
29
|
+
- id: check-added-large-files
|
|
30
|
+
- id: debug-statements
|
|
31
|
+
- id: check-merge-conflict
|
|
32
|
+
|
|
33
|
+
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
|
34
|
+
rev: v0.14.5
|
|
35
|
+
hooks:
|
|
36
|
+
- id: ruff
|
|
37
|
+
name: lint
|
|
38
|
+
files: .
|
|
39
|
+
args: [ "--config", "pyproject.toml", "--fix" ]
|
|
40
|
+
- id: ruff-format
|
|
41
|
+
name: format
|
|
42
|
+
files: .
|
|
43
|
+
args: [ "--config", "pyproject.toml" ]
|
|
44
|
+
|
|
45
|
+
- repo: https://github.com/jsh9/pydoclint
|
|
46
|
+
rev: 0.8.1
|
|
47
|
+
hooks:
|
|
48
|
+
- id: pydoclint
|
|
49
|
+
|
|
50
|
+
# - repo: https://github.com/asottile/pyupgrade
|
|
51
|
+
# rev: v3.2.0
|
|
52
|
+
# hooks:
|
|
53
|
+
# - id: pyupgrade
|
|
54
|
+
# args: [ --py310-plus ]
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Read the Docs configuration file for Sphinx projects
|
|
2
|
+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
|
|
3
|
+
|
|
4
|
+
# Required
|
|
5
|
+
version: 2
|
|
6
|
+
|
|
7
|
+
# Set the OS, Python version and other tools you might need
|
|
8
|
+
build:
|
|
9
|
+
os: ubuntu-22.04
|
|
10
|
+
tools:
|
|
11
|
+
python: "3.14"
|
|
12
|
+
# You can also specify other tool versions:
|
|
13
|
+
# nodejs: "20"
|
|
14
|
+
# rust: "1.70"
|
|
15
|
+
# golang: "1.20"
|
|
16
|
+
jobs:
|
|
17
|
+
build:
|
|
18
|
+
# The default commands for generating the HTML and pdf formats will still run.
|
|
19
|
+
htmlzip:
|
|
20
|
+
- echo "Override default build command for htmlzip format"
|
|
21
|
+
- mkdir -p $READTHEDOCS_OUTPUT/html/
|
|
22
|
+
# - mkdir -p $READTHEDOCS_OUTPUT/markdown/
|
|
23
|
+
- sphinx-build -n -b text docs $READTHEDOCS_OUTPUT/html/
|
|
24
|
+
# - sphinx-build -n -b markdown docs $READTHEDOCS_OUTPUT/markdown/
|
|
25
|
+
# - cp -R $READTHEDOCS_OUTPUT/markdown/* $READTHEDOCS_OUTPUT/html/
|
|
26
|
+
|
|
27
|
+
# Build documentation in the "docs/" directory with Sphinx
|
|
28
|
+
sphinx:
|
|
29
|
+
configuration: docs/conf.py
|
|
30
|
+
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
|
|
31
|
+
# builder: "dirhtml"
|
|
32
|
+
# Fail on all warnings to avoid broken references
|
|
33
|
+
# fail_on_warning: true
|
|
34
|
+
|
|
35
|
+
# Optionally build your docs in additional formats such as PDF and ePub
|
|
36
|
+
formats:
|
|
37
|
+
- pdf
|
|
38
|
+
- epub
|
|
39
|
+
- htmlzip
|
|
40
|
+
|
|
41
|
+
# Optional but recommended, declare the Python requirements required
|
|
42
|
+
# to build your documentation
|
|
43
|
+
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
|
|
44
|
+
python:
|
|
45
|
+
install:
|
|
46
|
+
- requirements: docs/requirements.txt
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "1.5.0",
|
|
3
|
+
"plugins_used": [
|
|
4
|
+
{
|
|
5
|
+
"name": "ArtifactoryDetector"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"name": "AWSKeyDetector"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "AzureStorageKeyDetector"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "Base64HighEntropyString",
|
|
15
|
+
"limit": 4.5
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "BasicAuthDetector"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "CloudantDetector"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "DiscordBotTokenDetector"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "GitHubTokenDetector"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "GitLabTokenDetector"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "HexHighEntropyString",
|
|
34
|
+
"limit": 3.0
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "IbmCloudIamDetector"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "IbmCosHmacDetector"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "IPPublicDetector"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "JwtTokenDetector"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "KeywordDetector",
|
|
50
|
+
"keyword_exclude": ""
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "MailchimpDetector"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "NpmDetector"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "OpenAIDetector"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "PrivateKeyDetector"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "PypiTokenDetector"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "SendGridDetector"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "SlackDetector"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "SoftlayerDetector"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "SquareOAuthDetector"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "StripeDetector"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "TelegramBotTokenDetector"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "TwilioKeyDetector"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"filters_used": [
|
|
90
|
+
{
|
|
91
|
+
"path": "detect_secrets.filters.allowlist.is_line_allowlisted"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"path": "detect_secrets.filters.common.is_baseline_file",
|
|
95
|
+
"filename": ".secrets.baseline"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"path": "detect_secrets.filters.common.is_ignored_due_to_verification_policies",
|
|
99
|
+
"min_level": 2
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"path": "detect_secrets.filters.heuristic.is_indirect_reference"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"path": "detect_secrets.filters.heuristic.is_likely_id_string"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"path": "detect_secrets.filters.heuristic.is_lock_file"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"path": "detect_secrets.filters.heuristic.is_not_alphanumeric_string"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"path": "detect_secrets.filters.heuristic.is_potential_uuid"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"path": "detect_secrets.filters.heuristic.is_prefixed_with_dollar_sign"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"path": "detect_secrets.filters.heuristic.is_sequential_string"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"path": "detect_secrets.filters.heuristic.is_swagger_file"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"path": "detect_secrets.filters.heuristic.is_templated_secret"
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"results": {
|
|
130
|
+
"Makefile": [
|
|
131
|
+
{
|
|
132
|
+
"type": "Secret Keyword",
|
|
133
|
+
"filename": "Makefile",
|
|
134
|
+
"hashed_secret": "ee783f2421477b5483c23f47eca1f69a1f2bf4fb",
|
|
135
|
+
"is_verified": true,
|
|
136
|
+
"line_number": 49
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"type": "Secret Keyword",
|
|
140
|
+
"filename": "Makefile",
|
|
141
|
+
"hashed_secret": "1457a35245051927fac6fa556074300f4162ed66",
|
|
142
|
+
"is_verified": true,
|
|
143
|
+
"line_number": 52
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
"generated_at": "2026-02-11T23:39:38Z"
|
|
148
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Release history and notes
|
|
2
|
+
=========================
|
|
3
|
+
|
|
4
|
+
`Sequence based identifiers
|
|
5
|
+
<http://en.wikipedia.org/wiki/Software_versioning#Sequence-based_identifiers>`_
|
|
6
|
+
are used for versioning (schema follows below):
|
|
7
|
+
|
|
8
|
+
.. code-block:: text
|
|
9
|
+
|
|
10
|
+
major.minor[.revision]
|
|
11
|
+
|
|
12
|
+
- It's always safe to upgrade within the same minor version (for example, from
|
|
13
|
+
0.3 to 0.3.4).
|
|
14
|
+
- Minor version changes might be backwards incompatible. Read the
|
|
15
|
+
release notes carefully before upgrading (for example, when upgrading from
|
|
16
|
+
0.3.4 to 0.4).
|
|
17
|
+
- All backwards incompatible changes are mentioned in this document.
|
|
18
|
+
|
|
19
|
+
0.1
|
|
20
|
+
---
|
|
21
|
+
2026-02-12
|
|
22
|
+
|
|
23
|
+
- Initial beta release.
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
Contributor Covenant Code of Conduct
|
|
2
|
+
====================================
|
|
3
|
+
|
|
4
|
+
Our Pledge
|
|
5
|
+
----------
|
|
6
|
+
|
|
7
|
+
We as members, contributors, and leaders pledge to make participation in
|
|
8
|
+
our community a harassment-free experience for everyone, regardless of
|
|
9
|
+
age, body size, visible or invisible disability, ethnicity, sex
|
|
10
|
+
characteristics, gender identity and expression, level of experience,
|
|
11
|
+
education, socio-economic status, nationality, personal appearance,
|
|
12
|
+
race, religion, or sexual identity and orientation.
|
|
13
|
+
|
|
14
|
+
We pledge to act and interact in ways that contribute to an open,
|
|
15
|
+
welcoming, diverse, inclusive, and healthy community.
|
|
16
|
+
|
|
17
|
+
Our Standards
|
|
18
|
+
-------------
|
|
19
|
+
|
|
20
|
+
Examples of behavior that contributes to a positive environment for our
|
|
21
|
+
community include:
|
|
22
|
+
|
|
23
|
+
- Demonstrating empathy and kindness toward other people
|
|
24
|
+
- Being respectful of differing opinions, viewpoints, and experiences
|
|
25
|
+
- Giving and gracefully accepting constructive feedback
|
|
26
|
+
- Accepting responsibility and apologizing to those affected by our
|
|
27
|
+
mistakes, and learning from the experience
|
|
28
|
+
- Focusing on what is best not just for us as individuals, but for the
|
|
29
|
+
overall community
|
|
30
|
+
|
|
31
|
+
Examples of unacceptable behavior include:
|
|
32
|
+
|
|
33
|
+
- The use of sexualized language or imagery, and sexual attention or
|
|
34
|
+
advances of any kind
|
|
35
|
+
- Trolling, insulting or derogatory comments, and personal or political
|
|
36
|
+
attacks
|
|
37
|
+
- Public or private harassment
|
|
38
|
+
- Publishing others’ private information, such as a physical or email
|
|
39
|
+
address, without their explicit permission
|
|
40
|
+
- Other conduct which could reasonably be considered inappropriate in a
|
|
41
|
+
professional setting
|
|
42
|
+
|
|
43
|
+
Enforcement Responsibilities
|
|
44
|
+
----------------------------
|
|
45
|
+
|
|
46
|
+
Community leaders are responsible for clarifying and enforcing our
|
|
47
|
+
standards of acceptable behavior and will take appropriate and fair
|
|
48
|
+
corrective action in response to any behavior that they deem
|
|
49
|
+
inappropriate, threatening, offensive, or harmful.
|
|
50
|
+
|
|
51
|
+
Community leaders have the right and responsibility to remove, edit, or
|
|
52
|
+
reject comments, commits, code, wiki edits, issues, and other
|
|
53
|
+
contributions that are not aligned to this Code of Conduct, and will
|
|
54
|
+
communicate reasons for moderation decisions when appropriate.
|
|
55
|
+
|
|
56
|
+
Scope
|
|
57
|
+
-----
|
|
58
|
+
|
|
59
|
+
This Code of Conduct applies within all community spaces, and also
|
|
60
|
+
applies when an individual is officially representing the community in
|
|
61
|
+
public spaces. Examples of representing our community include using an
|
|
62
|
+
official e-mail address, posting via an official social media account,
|
|
63
|
+
or acting as an appointed representative at an online or offline event.
|
|
64
|
+
|
|
65
|
+
Enforcement
|
|
66
|
+
-----------
|
|
67
|
+
|
|
68
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may
|
|
69
|
+
be reported to the community leaders responsible for enforcement at
|
|
70
|
+
artur.barseghyan@gmail.com. All complaints will be reviewed and
|
|
71
|
+
investigated promptly and fairly.
|
|
72
|
+
|
|
73
|
+
All community leaders are obligated to respect the privacy and security
|
|
74
|
+
of the reporter of any incident.
|
|
75
|
+
|
|
76
|
+
Enforcement Guidelines
|
|
77
|
+
----------------------
|
|
78
|
+
|
|
79
|
+
Community leaders will follow these Community Impact Guidelines in
|
|
80
|
+
determining the consequences for any action they deem in violation of
|
|
81
|
+
this Code of Conduct:
|
|
82
|
+
|
|
83
|
+
1. Correction
|
|
84
|
+
~~~~~~~~~~~~~
|
|
85
|
+
|
|
86
|
+
**Community Impact**: Use of inappropriate language or other behavior
|
|
87
|
+
deemed unprofessional or unwelcome in the community.
|
|
88
|
+
|
|
89
|
+
**Consequence**: A private, written warning from community leaders,
|
|
90
|
+
providing clarity around the nature of the violation and an explanation
|
|
91
|
+
of why the behavior was inappropriate. A public apology may be
|
|
92
|
+
requested.
|
|
93
|
+
|
|
94
|
+
2. Warning
|
|
95
|
+
~~~~~~~~~~
|
|
96
|
+
|
|
97
|
+
**Community Impact**: A violation through a single incident or series of
|
|
98
|
+
actions.
|
|
99
|
+
|
|
100
|
+
**Consequence**: A warning with consequences for continued behavior. No
|
|
101
|
+
interaction with the people involved, including unsolicited interaction
|
|
102
|
+
with those enforcing the Code of Conduct, for a specified period of
|
|
103
|
+
time. This includes avoiding interactions in community spaces as well as
|
|
104
|
+
external channels like social media. Violating these terms may lead to a
|
|
105
|
+
temporary or permanent ban.
|
|
106
|
+
|
|
107
|
+
3. Temporary Ban
|
|
108
|
+
~~~~~~~~~~~~~~~~
|
|
109
|
+
|
|
110
|
+
**Community Impact**: A serious violation of community standards,
|
|
111
|
+
including sustained inappropriate behavior.
|
|
112
|
+
|
|
113
|
+
**Consequence**: A temporary ban from any sort of interaction or public
|
|
114
|
+
communication with the community for a specified period of time. No
|
|
115
|
+
public or private interaction with the people involved, including
|
|
116
|
+
unsolicited interaction with those enforcing the Code of Conduct, is
|
|
117
|
+
allowed during this period. Violating these terms may lead to a
|
|
118
|
+
permanent ban.
|
|
119
|
+
|
|
120
|
+
4. Permanent Ban
|
|
121
|
+
~~~~~~~~~~~~~~~~
|
|
122
|
+
|
|
123
|
+
**Community Impact**: Demonstrating a pattern of violation of community
|
|
124
|
+
standards, including sustained inappropriate behavior, harassment of an
|
|
125
|
+
individual, or aggression toward or disparagement of classes of
|
|
126
|
+
individuals.
|
|
127
|
+
|
|
128
|
+
**Consequence**: A permanent ban from any sort of public interaction
|
|
129
|
+
within the community.
|
|
130
|
+
|
|
131
|
+
Attribution
|
|
132
|
+
-----------
|
|
133
|
+
|
|
134
|
+
This Code of Conduct is adapted from the `Contributor
|
|
135
|
+
Covenant <https://www.contributor-covenant.org>`__, version 2.0,
|
|
136
|
+
available at
|
|
137
|
+
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
|
138
|
+
|
|
139
|
+
Community Impact Guidelines were inspired by `Mozilla’s code of conduct
|
|
140
|
+
enforcement ladder <https://github.com/mozilla/diversity>`__.
|
|
141
|
+
|
|
142
|
+
For answers to common questions about this code of conduct, see the FAQ
|
|
143
|
+
at https://www.contributor-covenant.org/faq. Translations are available
|
|
144
|
+
at https://www.contributor-covenant.org/translations.
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
Contributor guidelines
|
|
2
|
+
======================
|
|
3
|
+
|
|
4
|
+
.. _documentation: https://sphinx-source-tree.readthedocs.io/#writing-documentation
|
|
5
|
+
.. _testing: https://sphinx-source-tree.readthedocs.io/#testing
|
|
6
|
+
.. _pre-commit: https://pre-commit.com/#installation
|
|
7
|
+
.. _doc8: https://doc8.readthedocs.io/
|
|
8
|
+
.. _ruff: https://beta.ruff.rs/docs/
|
|
9
|
+
.. _issues: https://github.com/barseghyanartur/sphinx-source-tree/issues
|
|
10
|
+
.. _discussions: https://github.com/barseghyanartur/sphinx-source-tree/discussions
|
|
11
|
+
.. _pull request: https://github.com/barseghyanartur/sphinx-source-tree/pulls
|
|
12
|
+
.. _support: https://sphinx-source-tree.readthedocs.io/#support
|
|
13
|
+
.. _installation: https://sphinx-source-tree.readthedocs.io/#installation
|
|
14
|
+
.. _features: https://sphinx-source-tree.readthedocs.io/#features
|
|
15
|
+
.. _prerequisites: https://sphinx-source-tree.readthedocs.io/#prerequisites
|
|
16
|
+
.. _uv: https://github.com/astral-sh/uv
|
|
17
|
+
|
|
18
|
+
Developer prerequisites
|
|
19
|
+
-----------------------
|
|
20
|
+
pre-commit
|
|
21
|
+
~~~~~~~~~~
|
|
22
|
+
Refer to `pre-commit`_ for installation instructions.
|
|
23
|
+
|
|
24
|
+
TL;DR:
|
|
25
|
+
|
|
26
|
+
.. code-block:: sh
|
|
27
|
+
|
|
28
|
+
uv tool install pre-commit # Install pre-commit
|
|
29
|
+
pre-commit install # Install pre-commit hooks
|
|
30
|
+
|
|
31
|
+
Installing `pre-commit`_ will ensure you adhere to the project code quality
|
|
32
|
+
standards.
|
|
33
|
+
|
|
34
|
+
Code standards
|
|
35
|
+
--------------
|
|
36
|
+
`ruff`_ and `doc8`_ will be automatically triggered by
|
|
37
|
+
`pre-commit`_. Still, if you want to run checks manually:
|
|
38
|
+
|
|
39
|
+
.. code-block:: sh
|
|
40
|
+
|
|
41
|
+
make pre-commit
|
|
42
|
+
|
|
43
|
+
Requirements
|
|
44
|
+
------------
|
|
45
|
+
Requirements are compiled using `uv`_.
|
|
46
|
+
|
|
47
|
+
.. code-block:: sh
|
|
48
|
+
|
|
49
|
+
make compile-requirements
|
|
50
|
+
|
|
51
|
+
Virtual environment
|
|
52
|
+
-------------------
|
|
53
|
+
You are advised to work in virtual environment.
|
|
54
|
+
|
|
55
|
+
TL;DR:
|
|
56
|
+
|
|
57
|
+
.. code-block:: sh
|
|
58
|
+
|
|
59
|
+
uv sync
|
|
60
|
+
uv pip install -e .'[all]'
|
|
61
|
+
|
|
62
|
+
Documentation
|
|
63
|
+
-------------
|
|
64
|
+
Check `documentation`_.
|
|
65
|
+
|
|
66
|
+
Testing
|
|
67
|
+
-------
|
|
68
|
+
Check `testing`_.
|
|
69
|
+
|
|
70
|
+
If you introduce changes or fixes, make sure to test them locally using
|
|
71
|
+
all supported environments. For that use tox.
|
|
72
|
+
|
|
73
|
+
.. code-block:: sh
|
|
74
|
+
|
|
75
|
+
tox
|
|
76
|
+
|
|
77
|
+
In any case, GitHub Actions will catch potential errors, but using tox speeds
|
|
78
|
+
things up.
|
|
79
|
+
|
|
80
|
+
Pull requests
|
|
81
|
+
-------------
|
|
82
|
+
You can contribute to the project by making a `pull request`_.
|
|
83
|
+
|
|
84
|
+
For example:
|
|
85
|
+
|
|
86
|
+
- To fix documentation typos.
|
|
87
|
+
- To improve documentation (for instance, to add new rule or fix
|
|
88
|
+
an existing rule that doesn't seem to work).
|
|
89
|
+
- To introduce a new feature.
|
|
90
|
+
|
|
91
|
+
**General list to go through:**
|
|
92
|
+
|
|
93
|
+
- Does your change require documentation update?
|
|
94
|
+
- Does your change require update to tests?
|
|
95
|
+
|
|
96
|
+
**When fixing bugs (in addition to the general list):**
|
|
97
|
+
|
|
98
|
+
- Make sure to add regression tests.
|
|
99
|
+
|
|
100
|
+
**When adding a new feature (in addition to the general list):**
|
|
101
|
+
|
|
102
|
+
- Make sure to update the documentation (check whether the `installation`_
|
|
103
|
+
or `features`_ require changes).
|
|
104
|
+
|
|
105
|
+
Questions
|
|
106
|
+
---------
|
|
107
|
+
Questions can be asked on GitHub `discussions`_.
|
|
108
|
+
|
|
109
|
+
Issues
|
|
110
|
+
------
|
|
111
|
+
For reporting a bug or filing a feature request use GitHub `issues`_.
|
|
112
|
+
|
|
113
|
+
**Do not report security issues on GitHub**. Check the `support`_ section.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Artur Barseghyan
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|