<commit_before>.. doctest-skip-all
.. _code-guide:

*****************
Coding Guidelines
*****************

This section describes requirements and guidelines that should be followed both
by the core package and by coordinated packages, and these are also recommended
for affiliated packages.

Interface and Dependencies
==========================

* All code must be compatible with Python 3.6 and later.
  Usage of ``six``, ``__future__``, and ``2to3`` is no longer acceptable.

* `f-strings <https://docs.python.org/3/reference/lexical_analysis.html#f-strings>`_<commit_msg>Avoid hard-coding minimum Python version in developer documentation<commit_after>.. doctest-skip-all
.. _code-guide:

*****************
Coding Guidelines
*****************

This section describes requirements and guidelines that should be followed both
by the core package and by coordinated packages, and these are also recommended
for affiliated packages.

Interface and Dependencies
==========================

* All code must be compatible with the versions of Python indicated by the
  ``python_requires`` key in the `setup.cfg
  <https://github.com/astropy/astropy/blob/master/setup.cfg>`_ file of the
  core package.

* Usage of ``six``, ``__future__``, and ``2to3`` is no longer acceptable.

* `f-strings <https://docs.python.org/3/reference/lexical_analysis.html#f-strings>`_
{'fraction_non_alphanumeric': 0.17352941176470588, 'fraction_numerical': 0.0058823529411764705, 'mean_word_length': 5.243119266055046, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2621359', 'n_tokens_mistral': 376, 'n_tokens_neox': 351, 'n_words': 134}