Steve Kowalik
784deb5f68
Run black over the entire tree ( #1386 )
...
It's been a while since black was run over the entire tree, and since CI
still doesn't check it, we can get behind.
2020-02-11 10:37:25 +11:00
Steve Kowalik
b7894ea00c
Drop Python 2 support ( #1329 )
...
With the Python 2 deadline gone, it's time to move with the times and
switch to Python 3 only.
2020-01-06 18:01:38 +11:00
Steve Kowalik
60464f6554
Allow sha=None for InputGitTreeElement ( #1327 )
...
InputGitTreeElement is used to build tree objects for
Repository.create_git_tree(). However, the GitHub API allows passing
sha=null to delete a file, which we don't allow. Extend the checking in
InputGitTreeElement to also allow None, and add a test for good measure.
Fixes #1318
2019-12-29 10:50:23 +11:00
Wan Liuyang
540a085001
Fix isort - add known first and third party
2019-12-11 00:54:59 +08:00
Wan Liuyang
6ceb9e9a15
Apply black to whole codebase ( #1303 )
2019-12-10 17:14:33 +08:00
Steve Kowalik
dc2f2ad8cb
Switch to using six ( #1189 )
...
With the Python 2.7 deadline fast approaching, modernize the codebase
making use of the modernize module to switch to using six, as well as
other upcoming features, such as absolute imports . Stop using 2to3
for Travis, yay!
2019-08-05 14:06:19 +10:00
sfdye
365a0a24d3
Apply fix_headers script to update copyright info
2018-03-17 20:06:16 +08:00
sfdye
58e1ef9ccb
Fix copyright formatting
2018-03-13 22:30:47 +08:00
sfdye
020c136a40
Update doc link in copyright text
2018-03-13 22:07:38 +08:00
Wan Liuyang
a32a17bf81
Fix broken Github reference link in class docstrings
2018-03-13 15:07:07 +08:00
Peter Buckley
cb0cf0a680
update doc url everywhere ( #420 )
2016-07-12 16:38:02 -04:00
Vincent Jacques
abca7a026e
pep8
...
This is strange, maybe Cygwin's version is stricter.
No time to investigate.
2014-05-04 12:54:05 -07:00
Vincent Jacques
06a3d87098
Change source file header format
2013-07-13 19:03:53 +02:00
Vincent Jacques
db5560bd65
Add a script to check copyrights with git log. And fix copyrights.
2013-03-29 16:54:15 +01:00
Vincent Jacques
7a415fda66
Change home page
2013-02-16 21:19:49 +01:00
Vincent Jacques
0bd00452e7
Improve documentation
2013-02-16 21:15:17 +01:00
Vincent Jacques
abf0867543
Generate some repetitive doc files
2012-12-29 08:47:23 +01:00
Vincent Jacques
131aeeab3f
Fix tests and some doc
2012-12-29 08:23:58 +01:00
Vincent Jacques
54554b280d
Improve
2012-11-27 21:14:30 +01:00
Vincent Jacques
9a03610f7b
Use absolute imports. May help with Python 3
2012-11-21 20:13:12 +01:00
Zearin
4c6a70c24a
Add encoding comment to source files
...
This is a minor thing. It’s a convention, not a rule (obviously)—but it’s also a best practice.
Many text editors look for this kind of comment as the first line—or second line, if there is a shebang (the `#!/usr/bin/env python`, or whatever else)—and make use of this to determine the file’s encoding.
2012-11-01 11:43:56 -04:00
Vincent Jacques
531c3f2d32
Improve comformance to pep8 (+dos2unix)
...
PyGithub is now a public projects with several public contibutors,
I have to abandon my very personal coding conventions.
2012-09-17 20:37:22 +02:00
Vincent Jacques
609b7b87cf
dos2unix, chmod +x
2012-08-04 07:58:30 +02:00
Vincent Jacques
41c2b94f95
Add a copyright and license notice (issue #16 )
2012-06-03 19:56:33 +01:00
Vincent Jacques
9820c58477
Move generated code to 'github' instead of 'src/github'
2012-06-02 13:06:28 +01:00