Skip to content

Commit

Permalink
Merge pull request #86 from roskakori/54-detect-github-community-text…
Browse files Browse the repository at this point in the history
…-files

#54 Added detection of GitHub community files without suffix as text.
  • Loading branch information
roskakori committed Jan 5, 2022
2 parents 6b9de2f + 87df62b commit 40b609d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/changes.rst
Expand Up @@ -13,6 +13,11 @@ Version 1.3.0, 2022-xx-xx
* Added JSON as additional output :option:`--format`, see :doc:`json` for
details (issue `#62 <https://github.com/roskakori/pygount/issues/62>`_).

* Added detection of
`GitHub community files <https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions>`_
without suffix as text (issue
`#54 <https://github.com/roskakori/pygount/issues/54>`_).

* Changed build process to `poetry <https://python-poetry.org/>`_ to change
several messy configuration files into a single even more messy
configuration file.
Expand Down
7 changes: 7 additions & 0 deletions pygount/analysis.py
Expand Up @@ -111,6 +111,13 @@ class SourceState(Enum):
"news",
"readme",
"thanks",
# Github community recommendations, see
# <https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions>.
# By now, in practice most projects use a suffix like "*.md" but some older ones
# still might have such files without suffix.
"code_of_conduct",
"contributing",
"support",
# Other common text files.
"changes",
"faq",
Expand Down

0 comments on commit 40b609d

Please sign in to comment.