Skip to main content

Extensible tools for parsing annotations in codebases

Project description

PyPI CI Codecov Documentation Supported Python versions License

Extensible tools for parsing annotations in codebases

Overview

This package provides configurable and extensible tools for parsing and summarizing annotations in a wide range of codebases. Originally intended for annotating code which stores personally identifiable information (PII), these tools are optimized for that use case but can be generalized for other types of annotations.

Additionally, a logically separate part of this repository will contain specific annotation configurations and supporting tools, such as Sphinx extensions for documenting specific annotation types. See the contrib folder.

Documentation

The full documentation is at https://code-annotations.readthedocs.org.

License

The code in this repository is licensed under the Apache Software License 2.0 unless otherwise noted.

Please see LICENSE.txt for details.

How To Contribute

Contributions are very welcome.

Please read How To Contribute for details.

PR description template should be automatically applied if you are sending PR from github interface; otherwise you can find it it at PULL_REQUEST_TEMPLATE.md

Issue report template should be automatically applied if you are sending it from github UI as well; otherwise you can find it at ISSUE_TEMPLATE.md

Reporting Security Issues

Please do not report security issues in public. Please email security@openedx.org.

Getting Help

Have a question about this repository, or about Open edX in general? Please refer to this list of resources if you need any assistance.

Change Log

Unreleased

[1.8.1] - 2024-07-11

  • Fix elapsed-time calculations to always use UTC. Other clocks can be altered partway through by Django config settings being loaded while the timer is running, resulting in reporting elapsed time of “-17999.895582 seconds” or similar.

  • Fix report filename to use year-month-day order, not year-day-month. (Also more compact, now.)

[1.8.0] - 2024-03-31

  • Added python3.11 and 3.12 support. Dropped django32 support.

[1.6.0] - 2024-01-31

  • Added new annotation toggle_removal_ticket

[1.5.0] - 2023-07-21

  • Switch from edx-sphinx-theme to sphinx-book-theme since the former is deprecated

  • Added Support for Django 4.2

[1.4.0] - 2022-05-23

  • Rename toggle_warnings to toggle_warning for consistency with setting_warning.

[1.3.0] - 2022-02-07

  • Dropped Django 22, 30 and 31 Support

  • Added Django40 Support in CI

[1.2.0] - 2021-07-26

  • Added Django 3.0, 3.1 & 3.2 Support

[1.1.2] - 2021-05-21

  • Django is not a base requirement for the package now.

  • Removed the click constraint from base requirements.

[1.1.1] - 2021-03-30

  • Internal refactoring of the sphinx utilities and the report generation code

[1.1.0] - 2021-01-28

  • Refactor annotation checking to make it possible to expose errors via pylint

[1.0.2] - 2021-01-22

  • Make setting_warning annotation optional.

[1.0.1] - 2021-01-22

  • Fix grouping of safelisted annotations

[1.0.0] - 2021-01-21

  • BREAKING CHANGE: Improvement of some error messages

  • BREAKING CHANGE: Refactor linting in a way that breaks backward compatibility of certain edge cases

  • Implement optional annotation fields

[0.10.3] - 2020-12-15

  • Updated the travis-badge in README.rst to point to travis-ci.com

[0.10.1] - 2020-11-09

  • Fix Github links generated by the sphinx extension for settings.

[0.10.0] - 2020-10-12

  • Fix table of contents generated by sphinx extensions

[0.9.0] - 2020-09-25

  • Get rid of the documented_elsewhere annotation, which is used nowhere

[0.8.0] - 2020-09-10

  • Add settings Sphinx extension with setting annotation configuration file

[0.7.0] - 2020-09-07

  • Simplify the feature toggle annotation format

[0.6.0] - 2020-08-27

  • Add support for multiline annotations for lines prefixed with single-line comment signs (“#”)

[0.5.1] - 2020-08-25

  • Add support for warnings in the featuretoggles Sphinx extension

[0.5.0] - 2020-08-06

  • Add featuretoggles Sphinx extension

  • Include contrib folder in pip-installable package

  • Add ADR 0001-config-and-tools.rst for adding a place in this repository for shared annotation configs and supporting tools.

[0.4.0] - 2020-07-22

  • Add support for multi-line code annotations

[0.3.4] - 2020-05-06

  • Removed support for Django<2.2

  • Removed support for Python2.7 and Python3.6

  • Added support for Python3.8

[0.3.2] - 2019-06-21

Added

  • Add RST anchors throughout annotation report docs

[0.3.1] - 2019-03-20

Added

  • Bump pyyaml to version 5.1 to address unsafe load() CVE.

[0.1.0] - 2018-11-16

Added

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

code-annotations-1.8.1.tar.gz (41.7 kB view details)

Uploaded Source

Built Distribution

code_annotations-1.8.1-py2.py3-none-any.whl (39.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file code-annotations-1.8.1.tar.gz.

File metadata

  • Download URL: code-annotations-1.8.1.tar.gz
  • Upload date:
  • Size: 41.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for code-annotations-1.8.1.tar.gz
Algorithm Hash digest
SHA256 e449640033642d8c5e88a1f67dd6117fe319647ed5d7e095db20bbcf8ba34720
MD5 c68819123e24a94548a0368565c05d85
BLAKE2b-256 79b2c97cb8dc3776850df825ca16b9babc80b20633761d6052793d42aabfe666

See more details on using hashes here.

File details

Details for the file code_annotations-1.8.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for code_annotations-1.8.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3f2cc35f6d8b3a9bba7d77887ca5d861fda41585cf67b233c84ae1e1f964a4a1
MD5 c5893bfcac884cd97047f5bed86c1cf6
BLAKE2b-256 04214f85fa48f7ffa3e5266a51b4497ce16e0827d1aeeea05423124765f33ff7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page