-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from shenxianpeng/master
Support Python 3.9
- Loading branch information
Showing
11 changed files
with
1,762 additions
and
1,337 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: Run pre-commit | ||
|
||
on: | ||
push: | ||
pull_request: | ||
types: opened | ||
|
||
jobs: | ||
pre-commit: | ||
uses: shenxianpeng/.github/.github/workflows/pre-commit.yml@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
venv/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v5.0.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: check-toml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: requirements-txt-fixer | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.13.0 | ||
hooks: | ||
- id: mypy | ||
- repo: https://github.com/psf/black | ||
rev: 24.10.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/codespell-project/codespell | ||
rev: v2.3.0 | ||
hooks: | ||
- id: codespell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# gitstats | ||
|
||
gitstats is a statistics generator for git repositories. It is mostly intended | ||
for developers, as a way to check some development statistics for a project. | ||
|
||
Currently it produces only HTML output with tables and graphs. | ||
|
||
> [!NOTE] | ||
> This project is a fork of [gitstats](https://github.com/hoxu/gitstats), which only supports Python 2.7 and is no longer maintained. | ||
> | ||
> I forked the project to update it for compatibility with Python 3.9+ and to introduce new features. | ||
Requirements | ||
============ | ||
- Python 3.9+ | ||
- Gnuplot (http://www.gnuplot.info/) | ||
|
||
Usage | ||
===== | ||
|
||
./gitstats --help | ||
|
||
Usage: gitstats [options] <gitpath..> <outputpath> | ||
|
||
Options: | ||
-c key=value Override configuration value | ||
|
||
Default config values: | ||
{'max_domains': 10, 'max_ext_length': 10, 'style': 'gitstats.css', 'max_authors': 20, 'authors_top': 5, 'commit_begin': '', 'commit_end': 'HEAD', 'linear_linestats': 1, 'project_name': '', 'processes': 8, 'start_date': ''} | ||
|
||
Please see the manual page for more details. | ||
|
||
Examples | ||
-------- | ||
|
||
./gitstats ../gitstats ~/public_html | ||
|
||
The output will be generated in the given directory. | ||
|
||
Contributions | ||
============= | ||
Patches should be sent under "GPLv2 or later" license - this will allow | ||
upgrading to newer GPL versions if they are sensible. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,4 +74,3 @@ | |
- Commits (% of all) | ||
- Author top ten | ||
- Month statistics | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,4 +112,3 @@ http://gitstats.sourceforge.net/ | |
=head1 SEE ALSO | ||
|
||
L<git(1)> | ||
|
Oops, something went wrong.