You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+19-25Lines changed: 19 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -1,41 +1,35 @@
1
1
## How to contribute
2
2
3
-
Thank you for considering contributing to htmldate!
4
3
5
-
Here are some important resources:
4
+
If you value this software or depend on it for your product,
5
+
consider sponsoring it and contributing to its codebase.
6
+
Your support will help ensure the sustainability and growth of the project.
6
7
7
-
-[List of currently open issues](https://github.com/adbar/htmldate/issues) (no pretention to exhaustivity!)
8
-
-[How to Contribute to Open Source](https://opensource.guide/how-to-contribute/)
8
+
There are many ways to contribute:
9
9
10
-
There are many ways to contribute, you could:
10
+
* Sponsor the project: Show your appreciation [on GitHub](https://github.com/sponsors/adbar) or [ko-fi.com](https://ko-fi.com/adbarbaresi)
11
+
* Find bugs and submit bug reports: Help making Htmldate an even more robust tool
12
+
* Write code: Fix bugs or add new features by writing [pull requests](https://docs.github.com/en/pull-requests) with a list of what you have done
11
13
12
-
- Improve the documentation
13
-
- Find bugs and submit bug reports
14
-
- Submit feature requests
15
-
- Write tutorials or blog posts
16
-
- Write code
14
+
A special thanks to the [contributors](https://github.com/adbar/htmldate/graphs/contributors) who have played a part in Htmldate.
17
15
18
-
## Installing and Running Pre-commit
19
16
20
-
### Introduction
17
+
##Testing and evaluating the code
21
18
22
-
Pre-commit is a tool that helps maintain a consistent code style and quality in our project by running a set of hooks before each commit. These hooks perform checks such as code formatting, linting, and ensuring compliance with project-specific guidelines.
23
19
24
-
### Installation and Running
20
+
Here is how you can run the tests and code quality checks.
21
+
Pull requests will only be accepted if the changes are tested
22
+
and if there are no errors.
25
23
26
-
To install and set up pre-commit in your development environment, follow these steps:
24
+
1. Install the necessary packages with `pip install htmldate[dev]`
25
+
2. Run the tests and code quality tools:
26
+
- Tests with `pytest`
27
+
- Type checking with `mypy` on the directory: `mypy htmldate/`
28
+
- Code formatting with `black` on the directory as well
29
+
- Optional: install `pre-commit` to use the corresponding commit hooks
27
30
28
-
1. Run `pip install pre-commit` to your terminal to install pre-commit using pip.
29
-
2. Navigate to your project directory and run `pre-commit install` to initialize pre-commit hooks.
30
-
3. Run it manually on your changes using `git ls-files -- 'htmldate/*.py' | xargs pre-commit run --files`
31
31
32
-
## Submitting changes
33
-
34
-
Please send a [GitHub Pull Request to htmldate](https://github.com/adbar/htmldate/pull/new/master) with a clear list of what you've done (read more about [pull requests](http://help.github.com/pull-requests/)).
35
-
36
-
**Working on your first Pull Request?** You can learn how from this series: [How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github)
37
-
38
-
For further questions you can contact me on [GitHub issues](https://github.com/adbar/htmldate/issues), [Twitter](https://twitter.com/adbarbaresi) or by [E-Mail](http://adrien.barbaresi.eu/contact.html)
32
+
For further questions you can use [GitHub issues](https://github.com/adbar/htmldate/issues) or [E-Mail](https://adrien.barbaresi.eu/).
@@ -28,7 +28,7 @@ htmldate: find the publication date of web pages
28
28
|
29
29
30
30
.. image:: htmldate-logo.png
31
-
:alt:Logo as PNG image
31
+
:alt:Htmldate Logo
32
32
:align:center
33
33
:width:60%
34
34
@@ -52,7 +52,7 @@ In a nutshell
52
52
.. image:: htmldate-demo.gif
53
53
:alt:Demo as GIF image
54
54
:align:center
55
-
:width:95%
55
+
:width:80%
56
56
:target:https://htmldate.readthedocs.org/
57
57
58
58
|
@@ -253,18 +253,20 @@ This package is distributed under the `Apache 2.0 license <https://www.apache.or
253
253
Versions prior to v1.8.0 are under GPLv3+ license.
254
254
255
255
256
-
Context
257
-
-------
256
+
Context and contributions
257
+
-------------------------
258
258
259
259
Initially launched to create text databases for research purposes
260
260
at the Berlin-Brandenburg Academy of Sciences (DWDS and ZDL units),
261
261
this project continues to be maintained but its future development
262
262
depends on community support.
263
263
264
264
**If you value this software or depend on it for your product, consider
265
-
sponsoring it and contributing to its codebase**. Your support will
266
-
help maintain and enhance this popular package, ensuring its growth,
267
-
robustness, and accessibility for developers and users around the world.
265
+
sponsoring it and contributing to its codebase**. Your support
266
+
`on GitHub <https://github.com/sponsors/adbar>`_ or `ko-fi.com <https://ko-fi.com/adbarbaresi>`_
267
+
will help maintain and enhance this package.
268
+
Visit the `Contributing page <https://github.com/adbar/htmldate/blob/master/CONTRIBUTING.md>`_
269
+
for more information.
268
270
269
271
Reach out via the software repository or the `contact page
270
272
<https://adrien.barbaresi.eu/>`_ for inquiries, collaborations, or feedback.
@@ -298,19 +300,6 @@ Reach out via the software repository or the `contact page
298
300
- Barbaresi, A. "`Efficient construction of metadata-enhanced web corpora <https://hal.archives-ouvertes.fr/hal-01371704v2/document>`_", Proceedings of the `10th Web as Corpus Workshop (WAC-X) <https://www.sigwac.org.uk/wiki/WAC-X>`_, 2016.
299
301
300
302
301
-
Contributing
302
-
------------
303
-
304
-
`Contributions <https://github.com/adbar/htmldate/blob/master/CONTRIBUTING.md>`_ are welcome!
305
-
306
-
Feel free to file issues on the `dedicated page <https://github.com/adbar/htmldate/issues>`_. Thanks to the `contributors <https://github.com/adbar/htmldate/graphs/contributors>`_ who submitted features and bugfixes!
- A few patterns are derived from the `python-goose <https://github.com/grangier/python-goose>`_, `metascraper <https://github.com/ianstormtaylor/metascraper>`_, `newspaper <https://github.com/codelucas/newspaper>`_ and `articleDateExtractor <https://github.com/Webhose/article-date-extractor>`_ libraries. This module extends their coverage and robustness significantly.
0 commit comments