quax-blocks 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.
Files changed (34) hide show
  1. quax_blocks-0.1/.copier-answers.yml +12 -0
  2. quax_blocks-0.1/.git_archival.txt +4 -0
  3. quax_blocks-0.1/.gitattributes +1 -0
  4. quax_blocks-0.1/.github/CONTRIBUTING.md +86 -0
  5. quax_blocks-0.1/.github/dependabot.yml +11 -0
  6. quax_blocks-0.1/.github/matchers/pylint.json +32 -0
  7. quax_blocks-0.1/.github/workflows/cd.yml +69 -0
  8. quax_blocks-0.1/.github/workflows/ci.yml +88 -0
  9. quax_blocks-0.1/.gitignore +158 -0
  10. quax_blocks-0.1/.pre-commit-config.yaml +94 -0
  11. quax_blocks-0.1/.python-version +1 -0
  12. quax_blocks-0.1/CODE_OF_CONDUCT.md +128 -0
  13. quax_blocks-0.1/LICENSE +29 -0
  14. quax_blocks-0.1/PKG-INFO +183 -0
  15. quax_blocks-0.1/README.md +150 -0
  16. quax_blocks-0.1/SECURITY.md +12 -0
  17. quax_blocks-0.1/conftest.py +24 -0
  18. quax_blocks-0.1/noxfile.py +50 -0
  19. quax_blocks-0.1/pyproject.toml +178 -0
  20. quax_blocks-0.1/src/quax_blocks/__init__.py +236 -0
  21. quax_blocks-0.1/src/quax_blocks/_src/__init__.py +3 -0
  22. quax_blocks-0.1/src/quax_blocks/_src/binary.py +1777 -0
  23. quax_blocks-0.1/src/quax_blocks/_src/container.py +130 -0
  24. quax_blocks-0.1/src/quax_blocks/_src/copy.py +65 -0
  25. quax_blocks-0.1/src/quax_blocks/_src/example.py +22 -0
  26. quax_blocks-0.1/src/quax_blocks/_src/rich.py +385 -0
  27. quax_blocks-0.1/src/quax_blocks/_src/round.py +221 -0
  28. quax_blocks-0.1/src/quax_blocks/_src/unary.py +201 -0
  29. quax_blocks-0.1/src/quax_blocks/_version.py +16 -0
  30. quax_blocks-0.1/src/quax_blocks/_version.pyi +2 -0
  31. quax_blocks-0.1/src/quax_blocks/py.typed +0 -0
  32. quax_blocks-0.1/tests/__init__.py +1 -0
  33. quax_blocks-0.1/tests/test_package.py +10 -0
  34. quax_blocks-0.1/uv.lock +902 -0
@@ -0,0 +1,12 @@
1
+ # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2
+ _commit: 2023.11.17
3
+ _src_path: gh:scientific-python/cookie
4
+ backend: hatch
5
+ email: nstarman@users.noreply.github.com
6
+ full_name: Nathaniel Starkman
7
+ license: BSD
8
+ org: GalacticDynamics
9
+ project_name: quax_blocks
10
+ project_short_description: Building blocks for Quax classes
11
+ url: https://github.com/GalacticDynamics/quax-blocks
12
+ vcs: true
@@ -0,0 +1,4 @@
1
+ node: $Format:%H$
2
+ node-date: $Format:%cI$
3
+ describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$
4
+ ref-names: $Format:%D$
@@ -0,0 +1 @@
1
+ .git_archival.txt export-subst
@@ -0,0 +1,86 @@
1
+ See the [Scientific Python Developer Guide][spc-dev-intro] for a detailed
2
+ description of best practices for developing scientific packages.
3
+
4
+ [spc-dev-intro]: https://learn.scientific-python.org/development/
5
+
6
+ # Quick development
7
+
8
+ The fastest way to start with development is to use nox. If you don't have nox,
9
+ you can use `pipx run nox` to run it without installing, or `pipx install nox`.
10
+ If you don't have pipx (pip for applications), then you can install with
11
+ `pip install pipx` (the only case were installing an application with regular
12
+ pip is reasonable). If you use macOS, then pipx and nox are both in brew, use
13
+ `brew install pipx nox`.
14
+
15
+ To use, run `nox`. This will lint and test using every installed version of
16
+ Python on your system, skipping ones that are not installed. You can also run
17
+ specific jobs:
18
+
19
+ ```console
20
+ $ nox -s lint # Lint only
21
+ $ nox -s tests # Python tests
22
+ $ nox -s build # Make an SDist and wheel
23
+ ```
24
+
25
+ Nox handles everything for you, including setting up an temporary virtual
26
+ environment for each run.
27
+
28
+ # Setting up a development environment manually
29
+
30
+ You can set up a development environment by running:
31
+
32
+ ```bash
33
+ python3 -m venv .venv
34
+ source ./.venv/bin/activate
35
+ pip install -v -e .[dev]
36
+ ```
37
+
38
+ If you have the
39
+ [Python Launcher for Unix](https://github.com/brettcannon/python-launcher), you
40
+ can instead do:
41
+
42
+ ```bash
43
+ py -m venv .venv
44
+ py -m install -v -e .[dev]
45
+ ```
46
+
47
+ # Post setup
48
+
49
+ You should prepare pre-commit, which will help you by checking that commits pass
50
+ required checks:
51
+
52
+ ```bash
53
+ pip install pre-commit # or brew install pre-commit on macOS
54
+ pre-commit install # Will install a pre-commit hook into the git repo
55
+ ```
56
+
57
+ You can also/alternatively run `pre-commit run` (changes only) or
58
+ `pre-commit run --all-files` to check even without installing the hook.
59
+
60
+ # Testing
61
+
62
+ Use pytest to run the unit checks:
63
+
64
+ ```bash
65
+ pytest
66
+ ```
67
+
68
+ # Coverage
69
+
70
+ Use pytest-cov to generate coverage reports:
71
+
72
+ ```bash
73
+ pytest --cov=quax-blocks
74
+ ```
75
+
76
+ # Pre-commit
77
+
78
+ This project uses pre-commit for all style checking. While you can run it with
79
+ nox, this is such an important tool that it deserves to be installed on its own.
80
+ Install pre-commit and run:
81
+
82
+ ```bash
83
+ pre-commit run -a
84
+ ```
85
+
86
+ to check all files.
@@ -0,0 +1,11 @@
1
+ version: 2
2
+ updates:
3
+ # Maintain dependencies for GitHub Actions
4
+ - package-ecosystem: "github-actions"
5
+ directory: "/"
6
+ schedule:
7
+ interval: "monthly"
8
+ groups:
9
+ actions:
10
+ patterns:
11
+ - "*"
@@ -0,0 +1,32 @@
1
+ {
2
+ "problemMatcher": [
3
+ {
4
+ "severity": "warning",
5
+ "pattern": [
6
+ {
7
+ "regexp": "^([^:]+):(\\d+):(\\d+): ([A-DF-Z]\\d+): \\033\\[[\\d;]+m([^\\033]+).*$",
8
+ "file": 1,
9
+ "line": 2,
10
+ "column": 3,
11
+ "code": 4,
12
+ "message": 5
13
+ }
14
+ ],
15
+ "owner": "pylint-warning"
16
+ },
17
+ {
18
+ "severity": "error",
19
+ "pattern": [
20
+ {
21
+ "regexp": "^([^:]+):(\\d+):(\\d+): (E\\d+): \\033\\[[\\d;]+m([^\\033]+).*$",
22
+ "file": 1,
23
+ "line": 2,
24
+ "column": 3,
25
+ "code": 4,
26
+ "message": 5
27
+ }
28
+ ],
29
+ "owner": "pylint-error"
30
+ }
31
+ ]
32
+ }
@@ -0,0 +1,69 @@
1
+ name: CD
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ pull_request:
6
+ push:
7
+ branches:
8
+ - main
9
+ release:
10
+ types:
11
+ - published
12
+
13
+ concurrency:
14
+ group: ${{ github.workflow }}-${{ github.ref }}
15
+ cancel-in-progress: true
16
+
17
+ env:
18
+ FORCE_COLOR: 3
19
+
20
+ jobs:
21
+ dist:
22
+ name: Distribution build
23
+ runs-on: ubuntu-latest
24
+
25
+ steps:
26
+ - uses: actions/checkout@v4
27
+ with:
28
+ fetch-depth: 0
29
+ - uses: hynek/build-and-inspect-python-package@v2
30
+
31
+ test-publish:
32
+ needs: [dist]
33
+ name: Publish to TestPyPI
34
+ environment:
35
+ name: testpypi
36
+ permissions:
37
+ id-token: write
38
+ runs-on: ubuntu-latest
39
+ if: github.event_name == 'release' && github.event.action == 'published'
40
+
41
+ steps:
42
+ - uses: actions/download-artifact@v4.1.8
43
+ with:
44
+ name: Packages
45
+ path: dist
46
+
47
+ - uses: pypa/gh-action-pypi-publish@release/v1
48
+ if: github.event_name == 'release' && github.event.action == 'published'
49
+ with:
50
+ # Remember to tell (test-)pypi about this repo before publishing
51
+ # Remove this line to publish to PyPI
52
+ repository-url: https://test.pypi.org/legacy/
53
+
54
+ publish:
55
+ needs: [test-publish]
56
+ name: Publish to PyPI
57
+ environment: pypi
58
+ permissions:
59
+ id-token: write
60
+ runs-on: ubuntu-latest
61
+ if: github.event_name == 'release' && github.event.action == 'published'
62
+
63
+ steps:
64
+ - uses: actions/download-artifact@v4.1.8
65
+ with:
66
+ name: Packages
67
+ path: dist
68
+
69
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,88 @@
1
+ name: CI
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ pull_request:
6
+ push:
7
+ branches:
8
+ - main
9
+
10
+ concurrency:
11
+ group: ${{ github.workflow }}-${{ github.ref }}
12
+ cancel-in-progress: true
13
+
14
+ env:
15
+ FORCE_COLOR: 3
16
+
17
+ jobs:
18
+ checks:
19
+ name: Check Python ${{ matrix.python-version }} on ${{ matrix.runs-on }}
20
+ runs-on: ${{ matrix.runs-on }}
21
+ strategy:
22
+ fail-fast: false
23
+ matrix:
24
+ python-version: ["3.11", "3.12", "3.13"]
25
+ runs-on: [ubuntu-latest, macos-latest, windows-latest]
26
+
27
+ # include:
28
+ # - python-version: pypy-3.10
29
+ # runs-on: ubuntu-latest
30
+
31
+ steps:
32
+ - uses: actions/checkout@v4
33
+
34
+ - name: Install uv
35
+ uses: astral-sh/setup-uv@v5
36
+ with:
37
+ enable-cache: true
38
+ cache-dependency-glob: "uv.lock"
39
+
40
+ - name: Set up Python ${{ matrix.python-version }}
41
+ run: uv python install ${{ matrix.python-version }}
42
+
43
+ - name: Install the project
44
+ run: uv sync --group test
45
+
46
+ - name: Test package
47
+ run: >-
48
+ uv run python -m pytest tests/ src/ -ra --cov --cov-report=xml
49
+ --cov-report=term --durations=20
50
+
51
+ - name: Upload coverage report
52
+ uses: codecov/codecov-action@v5.3.1
53
+ with:
54
+ token: ${{ secrets.CODECOV_TOKEN }}
55
+
56
+ check_oldest:
57
+ name: Check Oldest Dependencies
58
+ runs-on: ${{ matrix.runs-on }}
59
+ strategy:
60
+ fail-fast: false
61
+ matrix:
62
+ python-version: ["3.11"]
63
+ runs-on: [ubuntu-latest]
64
+
65
+ steps:
66
+ - uses: actions/checkout@v4
67
+
68
+ - name: Install uv
69
+ uses: astral-sh/setup-uv@v5
70
+ with:
71
+ enable-cache: true
72
+ cache-dependency-glob: "uv.lock"
73
+
74
+ - name: Set up Python ${{ matrix.python-version }}
75
+ run: uv python install ${{ matrix.python-version }}
76
+
77
+ - name: Install the project
78
+ run: uv sync --extra all --group test --resolution lowest
79
+
80
+ - name: Test package
81
+ run: >-
82
+ uv run python -m pytest tests/ src/ -ra --cov --cov-report=xml
83
+ --cov-report=term --durations=20
84
+
85
+ - name: Upload coverage report
86
+ uses: codecov/codecov-action@v5.3.1
87
+ with:
88
+ token: ${{ secrets.CODECOV_TOKEN }}
@@ -0,0 +1,158 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
98
+ __pypackages__/
99
+
100
+ # Celery stuff
101
+ celerybeat-schedule
102
+ celerybeat.pid
103
+
104
+ # SageMath parsed files
105
+ *.sage.py
106
+
107
+ # Environments
108
+ .env
109
+ .venv
110
+ env/
111
+ venv/
112
+ ENV/
113
+ env.bak/
114
+ venv.bak/
115
+
116
+ # Spyder project settings
117
+ .spyderproject
118
+ .spyproject
119
+
120
+ # Rope project settings
121
+ .ropeproject
122
+
123
+ # mkdocs documentation
124
+ /site
125
+
126
+ # mypy
127
+ .mypy_cache/
128
+ .dmypy.json
129
+ dmypy.json
130
+
131
+ # Pyre type checker
132
+ .pyre/
133
+
134
+ # pytype static type analyzer
135
+ .pytype/
136
+
137
+ # Cython debug symbols
138
+ cython_debug/
139
+
140
+ # setuptools_scm
141
+ src/*/_version.py
142
+
143
+
144
+ # ruff
145
+ .ruff_cache/
146
+
147
+ # OS specific stuff
148
+ .DS_Store
149
+ .DS_Store?
150
+ ._*
151
+ .Spotlight-V100
152
+ .Trashes
153
+ ehthumbs.db
154
+ Thumbs.db
155
+
156
+ # Common editor files
157
+ *~
158
+ *.swp
@@ -0,0 +1,94 @@
1
+ ci:
2
+ autoupdate_schedule: "quarterly"
3
+ autoupdate_commit_msg: "👷: update pre-commit hooks"
4
+ autofix_commit_msg: "🎨: pre-commit fixes"
5
+
6
+ default_stages: [pre-commit, pre-push]
7
+
8
+ repos:
9
+ - repo: https://github.com/commitizen-tools/commitizen
10
+ rev: v4.1.0
11
+ hooks:
12
+ - id: commitizen
13
+ additional_dependencies: [cz-conventional-gitmoji]
14
+
15
+ - repo: meta
16
+ hooks:
17
+ - id: check-useless-excludes
18
+
19
+ - repo: https://github.com/scientific-python/cookie
20
+ rev: 2024.08.19
21
+ hooks:
22
+ - id: sp-repo-review
23
+
24
+ - repo: https://github.com/pre-commit/pre-commit-hooks
25
+ rev: "v5.0.0"
26
+ hooks:
27
+ - id: check-added-large-files
28
+ - id: check-case-conflict
29
+ - id: check-merge-conflict
30
+ - id: check-symlinks
31
+ - id: check-yaml
32
+ - id: debug-statements
33
+ - id: end-of-file-fixer
34
+ - id: mixed-line-ending
35
+ - id: name-tests-test
36
+ args: ["--pytest-test-first"]
37
+ - id: trailing-whitespace
38
+
39
+ - repo: https://github.com/pre-commit/pygrep-hooks
40
+ rev: "v1.10.0"
41
+ hooks:
42
+ - id: rst-backticks
43
+ - id: rst-directive-colons
44
+ - id: rst-inline-touching-normal
45
+
46
+ - repo: https://github.com/python-jsonschema/check-jsonschema
47
+ rev: 0.30.0
48
+ hooks:
49
+ - id: check-dependabot
50
+ - id: check-github-workflows
51
+
52
+ - repo: https://github.com/astral-sh/ruff-pre-commit
53
+ rev: "v0.8.6"
54
+ hooks:
55
+ # Run the linter
56
+ - id: ruff
57
+ types_or: [python, pyi, jupyter]
58
+ args: ["--fix", "--show-fixes"]
59
+ # Run the formatter
60
+ - id: ruff-format
61
+ types_or: [python, pyi, jupyter]
62
+
63
+ - repo: https://github.com/adamchainz/blacken-docs
64
+ rev: "1.19.1"
65
+ hooks:
66
+ - id: blacken-docs
67
+ additional_dependencies: [black==23.*]
68
+
69
+ - repo: https://github.com/rbubley/mirrors-prettier
70
+ rev: "v3.4.2"
71
+ hooks:
72
+ - id: prettier
73
+ types_or: [yaml, markdown, html, css, scss, javascript, json]
74
+ args: [--prose-wrap=always]
75
+
76
+ - repo: https://github.com/pre-commit/mirrors-mypy
77
+ rev: "v1.14.1"
78
+ hooks:
79
+ - id: mypy
80
+ files: src
81
+
82
+ - repo: https://github.com/codespell-project/codespell
83
+ rev: "v2.3.0"
84
+ hooks:
85
+ - id: codespell
86
+ args: ["--toml pyproject.toml"]
87
+ additional_dependencies:
88
+ - tomli
89
+
90
+ - repo: https://github.com/abravalheri/validate-pyproject
91
+ rev: v0.23
92
+ hooks:
93
+ - id: validate-pyproject
94
+ additional_dependencies: ["validate-pyproject-schema-store[all]"]
@@ -0,0 +1 @@
1
+ 3.11
@@ -0,0 +1,128 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socioeconomic status,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ - Demonstrating empathy and kindness toward other people
21
+ - Being respectful of differing opinions, viewpoints, and experiences
22
+ - Giving and gracefully accepting constructive feedback
23
+ - Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ - Focusing on what is best not just for us as individuals, but for the overall
26
+ community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ - The use of sexualized language or imagery, and sexual attention or advances of
31
+ any kind
32
+ - Trolling, insulting or derogatory comments, and personal or political attacks
33
+ - Public or private harassment
34
+ - Publishing others' private information, such as a physical or email address,
35
+ without their explicit permission
36
+ - Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ nstarkman@protonmail.com. All complaints will be reviewed and investigated
64
+ promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series of
86
+ actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or permanent
93
+ ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within the
113
+ community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.0, available at
119
+ https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120
+
121
+ Community Impact Guidelines were inspired by
122
+ [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
123
+
124
+ [homepage]: https://www.contributor-covenant.org
125
+
126
+ For answers to common questions about this code of conduct, see the FAQ at
127
+ https://www.contributor-covenant.org/faq. Translations are available at
128
+ https://www.contributor-covenant.org/translations.