Skip to content

Commit 53ea789

Browse files
authored
Merge pull request innogames#24 from hasegeli/master
Improve code documentation
2 parents 7aa7178 + 7328c18 commit 53ea789

File tree

12 files changed

+85
-20
lines changed

12 files changed

+85
-20
lines changed

‎LICENSE‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2020 InnoGames GmbH
3+
Copyright (c) 2021 InnoGames GmbH
4+
Portions Copyright (c) 2021 Emre Hasegeli
45

56
Permission is hereby granted, free of charge, to any person obtaining a copy
67
of this software and associated documentation files (the "Software"), to deal

‎README.rst‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,17 @@ configuration files has to be on the top level of the Git repository.
8989
============== ========================================== ========
9090
Syntax Checker Configuration File
9191
============== ========================================== ========
92+
coffeelint coffeelint.json, or package.json optional
9293
csslint .csslintrc optional
93-
htmlhint .htmlhintrc optional
94-
puppet-lint .puppet-lint.rc optional
95-
flake8 .flake8, setup.cfg, or tox.ini optional
96-
pycodestyle setup.cfg, or tox.ini optional
9794
eslint eslint.(js|yaml|yml|json), or package.json required
98-
jshint .jshintrc, or package.json optional
95+
flake8 .flake8, setup.cfg, or tox.ini optional
96+
htmlhint .htmlhintrc optional
9997
jscs .jscsrc, .jscs.json, or package.json required
100-
coffeelintcoffeelint.json, or package.json optional
98+
jshint .jshintrc, or package.json optional
10199
phpcs phpcs.xml, or phpcs.xml.dist optional
100+
puppet-lint .puppet-lint.rc optional
101+
pycodestyle setup.cfg, or tox.ini optional
102+
rubocop .rubocop.yml optional
102103
============== ========================================== ========
103104

104105

‎igcommit-receive‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env python
22
"""igcommit - The Git pre-receive hook to validate commits
33
4-
Copyright (c) 2020 InnoGames GmbH
4+
Copyright (c) 2021 InnoGames GmbH
5+
Portions Copyright (c) 2021 Emre Hasegeli
56
"""
67
# NOTE: This binary is provided for convenience. It is nice to be able to run
78
# the checks from the repository. This is not included on the releases. We

‎igcommit/__init__.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""igcommit - The main module
22
3-
Copyright (c) 2020 InnoGames GmbH
3+
Copyright (c) 2021 InnoGames GmbH
4+
Portions Copyright (c) 2021 Emre Hasegeli
45
"""
56

67
VERSION= (3, 1)

‎igcommit/base_check.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""igcommit - The base check class
22
3-
Copyright (c) 2020 InnoGames GmbH
3+
Copyright (c) 2021 InnoGames GmbH
4+
Portions Copyright (c) 2021 Emre Hasegeli
45
"""
56

67
fromenumimportIntEnum

‎igcommit/commit_checks.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""igcommit - Checks on Git commits
22
3-
Copyright (c) 2020 InnoGames GmbH
3+
Copyright (c) 2021 InnoGames GmbH
4+
Portions Copyright (c) 2021 Emre Hasegeli
45
"""
56

67
fromigcommit.base_checkimportBaseCheck, Severity

‎igcommit/commit_list_checks.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""igcommit - Checks on Git commit lists
22
3-
Copyright (c) 2020 InnoGames GmbH
3+
Copyright (c) 2021 InnoGames GmbH
4+
Portions Copyright (c) 2021 Emre Hasegeli
45
"""
56

67
fromtimeimporttime

‎igcommit/config.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""igcommit - Configuration of the checks
22
3-
Copyright (c) 2020 InnoGames GmbH
3+
Copyright (c) 2021 InnoGames GmbH
4+
Portions Copyright (c) 2021 Emre Hasegeli
45
"""
56

67
fromjsonimportloads

‎igcommit/file_checks.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""igcommit - Checks on files committed to Git
22
3-
Copyright (c) 2020 InnoGames GmbH
3+
Copyright (c) 2021 InnoGames GmbH
4+
Portions Copyright (c) 2021 Emre Hasegeli
45
"""
56

6-
fromjson.decoderimportJSONDecodeError
77
fromosimportremove
88
fromos.pathimportexists
99
fromsubprocessimportPIPE, Popen, STDOUT

‎igcommit/git.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""igcommit - Git routines
22
3-
Copyright (c) 2020 InnoGames GmbH
3+
Copyright (c) 2021 InnoGames GmbH
4+
Portions Copyright (c) 2021 Emre Hasegeli
45
"""
56

67
fromos.pathimportisabs, joinasjoinpath, normpath

0 commit comments

Comments
(0)