-
Notifications
You must be signed in to change notification settings - Fork 77
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 #440 from EsupPortail/dev
Dev #2.8
- Loading branch information
Showing
177 changed files
with
15,759 additions
and
10,391 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,14 @@ | ||
|
||
[report] | ||
# Here you can exclude a file from coverage testing | ||
|
||
# nb : you can also add a "# pragma: no cover" | ||
# on each function you don't want to be covered | ||
[run] | ||
source = pod/ | ||
omit = pod/*/settings*.py | ||
pod/wsgi.py | ||
*/tests/* | ||
*/commands/* | ||
*/migrations/* | ||
|
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 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 |
---|---|---|
|
@@ -52,6 +52,7 @@ settings_local.py | |
pod/static/ | ||
*.bak | ||
.coverage | ||
htmlcov | ||
|
||
# IDE Files # | ||
############# | ||
|
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 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,116 @@ | ||
|
||
# Code de conduite _Esup-Pod_ | ||
|
||
## Notre engagement | ||
|
||
En tant que membres, contributeur·trice·s et dirigeant·e·s, nous nous | ||
engageons à faire de la participation à notre communauté | ||
une expérience sans harcèlement, quel que soit l'âge, | ||
la taille corporelle, le handicap visible ou invisible, l'appartenance ethnique, | ||
les caractéristiques sexuelles, l'identité et l'expression de genre, | ||
le niveau d'expérience, l'éducation, le statut socio-économique, | ||
la nationalité, l'apparence personnelle, la race, la religion, | ||
ou l'identité et l'orientation sexuelle. | ||
|
||
Nous nous engageons à agir et interagir de manière à contribuer à une communauté ouverte, accueillante, diversifiée, inclusive et saine. | ||
|
||
## Nos critères | ||
|
||
Exemples de comportements qui contribuent à créer un environnement positif : | ||
|
||
* Faire preuve d'empathie et de bienveillance envers les autres | ||
* Être respectueux des opinions, points de vue et expériences divergents | ||
* Donner et recevoir avec grâce les critiques constructives | ||
* Assumer ses responsabilités et s'excuser auprès des personnes affectées par nos erreurs et apprendre de ces expériences | ||
* Se concentrer sur ce qui est le meilleur non pas uniquement pour nous en tant qu'individu, mais aussi pour l'ensemble de la communauté | ||
|
||
Exemples de comportements inacceptables : | ||
|
||
* L'utilisation de langage ou d'images sexualisés et d'attentions ou d'avances sexuelles de toute nature | ||
* Le _trolling_, les commentaires insultants ou désobligeants et les attaques | ||
personnelles ou d'ordre politique | ||
* Le harcèlement en public ou en privé | ||
* La publication d'informations privées d'autrui, telle qu'une | ||
adresse postale ou une adresse électronique, sans leur autorisation explicite | ||
* Toute autre conduite qui pourrait raisonnablement être considérée comme inappropriée | ||
dans un cadre professionnel | ||
|
||
## Responsabilités d'application | ||
|
||
Les dirigeant·e·s de la communauté sont chargé·e·s de clarifier et de faire respecter nos normes de | ||
comportements acceptables et prendront des mesures correctives appropriées et équitables en | ||
réponse à tout comportement qu'ils ou elles jugent inapproprié, menaçant, offensant ou nuisible. | ||
|
||
Les dirigeant·e·s de la communauté ont le droit et la responsabilité de supprimer, modifier ou rejeter | ||
les commentaires, les contributions, le code, les modifications de wikis, les rapports d'incidents ou de bogues et autres contributions qui | ||
ne sont pas alignés sur ce code de conduite, et communiqueront les raisons des décisions de modération | ||
le cas échéant. | ||
|
||
## Portée d'application | ||
|
||
Ce code de conduite s'applique à la fois au sein des espaces du projet ainsi que dans les espaces publics lorsqu'un individu représente officiellement le projet ou sa communauté. | ||
Font parties des exemples de représentation d'un projet ou d'une | ||
communauté l'utilisation d'une adresse électronique officielle, la publication sur les réseaux sociaux à l'aide d'un compte officiel ou le fait d'agir en tant que représentant·e désigné·e lors d'un événement en ligne ou hors-ligne. | ||
|
||
## Application | ||
|
||
Les cas de comportements abusifs, harcelants ou tout autre comportement | ||
inacceptables peuvent être signalés aux dirigeant·e·s de la communauté responsables de l'application du code de conduite à | ||
[Esup-Pod](https://github.com/EsupPortail/Esup-Pod). | ||
Toutes les plaintes seront examinées et feront l'objet d'une enquête rapide et équitable. | ||
|
||
Tou·te·s les dirigeant·e·s de la communauté sont tenu·e·s de respecter la vie privée et la sécurité des personnes ayant signalé un incident. | ||
|
||
## Directives d'application | ||
|
||
Les dirigeant·e·s de communauté suivront ces directives d'application sur l'impact communautaire afin de déterminer les conséquences de toute action qu'ils jugent contraire au présent code de conduite : | ||
|
||
### 1. Correction | ||
|
||
**Impact communautaire** : utilisation d'un langage inapproprié ou tout autre comportement jugé non professionnel ou indésirable dans la communauté. | ||
|
||
**Conséquence** : un avertissement écrit et privé de la part des dirigeant·e·s de la communauté, clarifiant la nature du non-respect et expliquant pourquoi | ||
le comportement était inapproprié. Des excuses publiques peuvent être demandées. | ||
|
||
### 2. Avertissement | ||
|
||
**Impact communautaire** : un non-respect par un seul incident ou une série d'actions. | ||
|
||
**Conséquence** : un avertissement avec des conséquences dû à la poursuite du comportement. | ||
Aucune interaction avec les personnes concernées, y compris l'interaction non sollicitée avec celles et ceux qui sont chargé·e·s de l'application de ce code de conduite, pendant une période déterminée. | ||
Cela comprend le fait d'éviter les interactions dans les espaces communautaires ainsi que sur les canaux externes comme les médias sociaux. | ||
Le non-respect de ces conditions peut entraîner un bannissement temporaire ou permanent. | ||
|
||
### 3. Bannissement temporaire | ||
|
||
**Impact communautaire** : un non-respect grave des normes communautaires, notamment un comportement inapproprié soutenu. | ||
|
||
**Conséquence** : un bannissement temporaire de toutes formes d'interactions ou de communications avec la communauté pendant une période déterminée. | ||
Aucune interaction publique ou privée avec les personnes concernées, y compris les interactions non sollicitées avec celles et ceux qui appliquent ce code de conduite, n'est autorisée pendant cette période. | ||
Le non-respect de ces conditions peut entraîner un bannissement permanent. | ||
|
||
### 4. Bannissement permanent | ||
|
||
**Impact communautaire** : démontrer un schéma récurrent de non-respect des normes de la communauté y compris un comportement inapproprié soutenu, le harcèlement d'un individu ainsi que l'agression ou le dénigrement de catégories d'individus. | ||
|
||
**Conséquence** : un bannissement permanent de toutes formes d'interactions publiques au sein de la communauté. | ||
|
||
## Attributions | ||
|
||
Ce code de conduite est adapté du | ||
[Contributor Covenant](https://www.contributor-covenant.org), version 2.0, | ||
disponible à | ||
[https://www.contributor-covenant.org/version/2/0/code_of_conduct.html][v2.0]. | ||
|
||
Les Directives d'application ont été inspirées par le | ||
[Code of conduct enforcement ladder][Mozilla CoC] de Mozilla. | ||
|
||
Pour obtenir des réponses aux questions courantes sur ce code de conduite, consultez la FAQ à [https://www.contributor-covenant.org/faq][FAQ]. | ||
Les traductions sont disponibles sur [https://www.contributor-covenant.org/translations][translations]. | ||
|
||
[homepage]: https://www.contributor-covenant.org | ||
[v2.0]: https://www.contributor-covenant.org/version/2/0/code_of_conduct.html | ||
[Mozilla CoC]: https://github.com/mozilla/diversity | ||
[FAQ]: https://www.contributor-covenant.org/faq | ||
[translations]: https://www.contributor-covenant.org/translations | ||
|
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,142 @@ | ||
# Contributing to Esup-Pod | ||
|
||
:+1::tada: First off, thanks for taking the time to contribute! :tada::+1: | ||
|
||
The following is a set of guidelines for contributing to Pod, which is hosted in the [Esup Organization](https://github.com/EsupPortail) on GitHub. | ||
These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request. | ||
|
||
#### Table Of Contents | ||
|
||
* [Code of Conduct](#code-of-conduct) | ||
|
||
* [How Can I Contribute?](#how-can-i-contribute) | ||
* [Reporting Bugs](#reporting-bugs) | ||
* [Suggesting Enhancements](#suggesting-enhancements) | ||
* [Pull Requests](#pull-requests) | ||
|
||
* [Styleguides](#styleguides) | ||
* [Git Commit Messages](#git-commit-messages) | ||
|
||
* [Coding conventions](#coding-conventions) | ||
* [JavaScript Styleguide](#javascript-styleguide) | ||
* [Python Styleguide](#python-styleguide) | ||
|
||
|
||
## Code of Conduct | ||
|
||
This project and everyone participating in it is governed by the [Pod Code of Conduct](CODE_OF_CONDUCT.md). | ||
By participating, you are expected to uphold this code. Please report unacceptable behavior to us. | ||
|
||
## I don't want to read this whole thing I just have a question!!! | ||
|
||
If chat is more your speed, you can join the Pod team on Rocket chat: https://rocket.esup-portail.org/channel/esup_-_pod | ||
|
||
|
||
|
||
## How Can I Contribute? | ||
|
||
### Reporting Bugs | ||
|
||
This section guides you through submitting a bug report. | ||
Following these guidelines helps maintainers and the community understand your report :pencil:, reproduce the behavior :computer: :computer:, | ||
and find related reports :mag_right:. | ||
|
||
When you are creating a bug report, please [include as many details as possible](#how-do-i-submit-a-good-bug-report). | ||
|
||
> **Note:** If you find a **Closed** issue that seems like it is the same thing that you're experiencing, open a new issue and include a link to the original issue in the body of your new one. | ||
|
||
#### How Do I Submit A (Good) Bug Report? | ||
|
||
Bugs are tracked as [GitHub issues](https://guides.github.com/features/issues/). | ||
Create an issue and explain the problem and include additional details to help maintainers reproduce the problem: | ||
|
||
* **Use a clear and descriptive title** for the issue to identify the problem. | ||
* **Describe the exact steps which reproduce the problem** in as many details as possible. | ||
* **Provide specific examples to demonstrate the steps**. Include links to files or GitHub projects, or copy/pasteable snippets, which you use in those examples. | ||
* **Describe the behavior you observed after following the steps** and point out what exactly is the problem with that behavior. | ||
* **Explain which behavior you expected to see instead and why.** | ||
* **Include screenshots and animated GIFs** which show you following the described steps and clearly demonstrate the problem. You can use [this tool](https://www.cockos.com/licecap/) to record GIFs on macOS and Windows, and [this tool](https://github.com/colinkeenan/silentcast) or [this tool](https://github.com/GNOME/byzanz) on Linux. | ||
* **If the problem wasn't triggered by a specific action**, describe what you were doing before the problem happened and share more information using the guidelines below. | ||
* **Can you reliably reproduce the issue?** If not, provide details about how often the problem happens and under which conditions it normally happens. | ||
|
||
Include details about your configuration and environment: | ||
|
||
* **Which version of Pod are you using?** | ||
* **What's the name and version of the browser you're using**? | ||
|
||
|
||
### Suggesting Enhancements | ||
|
||
This section guides you through submitting an enhancement suggestion for Pod, including completely new features and minor improvements to existing functionality. Following these guidelines helps maintainers and the community understand your suggestion :pencil: and find related suggestions :mag_right:. | ||
|
||
|
||
#### How Do I Submit A (Good) Enhancement Suggestion? | ||
|
||
Enhancement suggestions are tracked as [GitHub issues](https://guides.github.com/features/issues/). Create an issue and provide the following information: | ||
|
||
* **Use a clear and descriptive title** for the issue to identify the suggestion. | ||
* **Provide a step-by-step description of the suggested enhancement** in as many details as possible. | ||
* **Provide specific examples to demonstrate the steps**. Include copy/pasteable snippets which you use in those examples, as [Markdown code blocks](https://help.github.com/articles/markdown-basics/#multiple-lines). | ||
* **Describe the current behavior** and **explain which behavior you expected to see instead** and why. | ||
* **Include screenshots and animated GIFs** which help you demonstrate the steps or point out the part which the suggestion is related to. You can use [this tool](https://www.cockos.com/licecap/) to record GIFs on macOS and Windows, and [this tool](https://github.com/colinkeenan/silentcast) or [this tool](https://github.com/GNOME/byzanz) on Linux. | ||
* **Specify which version of Pod you're using.** | ||
* **Specify the name and version of the browser you're using.** | ||
|
||
|
||
### Pull Requests | ||
|
||
The process described here has several goals: | ||
|
||
- Maintain quality | ||
- Fix problems that are important to users | ||
- Engage the community in working toward the best possible Pod | ||
- Enable a sustainable system for maintainers to review contributions | ||
|
||
Please follow these steps to have your contribution considered by the maintainers: | ||
|
||
1. Follow all instructions in [the template](PULL_REQUEST_TEMPLATE.md) | ||
2. Follow the [styleguides](#styleguides) | ||
3. After you submit your pull request, verify that all [status checks](https://help.github.com/articles/about-status-checks/) are passing <details><summary>What if the status checks are failing?</summary>If a status check is failing, and you believe that the failure is unrelated to your change, please leave a comment on the pull request explaining why you believe the failure is unrelated. A maintainer will re-run the status check for you. If we conclude that the failure was a false positive, then we will open an issue to track that problem with our status check suite.</details> | ||
|
||
While the prerequisites above must be satisfied prior to having your pull request reviewed, the reviewer(s) may ask you to complete additional design work, tests, or other changes before your pull request can be ultimately accepted. | ||
|
||
## Styleguides | ||
|
||
### Git Commit Messages | ||
|
||
* Use the present tense ("Add feature" not "Added feature") | ||
* Use the imperative mood ("Move cursor to..." not "Moves cursor to...") | ||
* Limit the first line to 72 characters or less | ||
* Reference issues and pull requests liberally after the first line | ||
* When only changing documentation, include `[ci skip]` in the commit title | ||
* Consider starting the commit message with an applicable emoji: | ||
* :art: `:art:` when improving the format/structure of the code | ||
* :racehorse: `:racehorse:` when improving performance | ||
* :non-potable_water: `:non-potable_water:` when plugging memory leaks | ||
* :memo: `:memo:` when writing docs | ||
* :bug: `:bug:` when fixing a bug | ||
* :fire: `:fire:` when removing code or files | ||
* :green_heart: `:green_heart:` when fixing the CI build | ||
* :white_check_mark: `:white_check_mark:` when adding tests | ||
* :lock: `:lock:` when dealing with security | ||
* :arrow_up: `:arrow_up:` when upgrading dependencies | ||
* :arrow_down: `:arrow_down:` when downgrading dependencies | ||
* :shirt: `:shirt:` when removing linter warnings | ||
|
||
|
||
## Coding conventions | ||
|
||
Start reading our code and you'll get the hang of it. We optimize for readability: | ||
|
||
* We indent using two spaces (soft tabs) | ||
* This is open source software. Consider the people who will read your code, and make it look nice for them. It's sort of like driving a car: Perhaps you love doing donuts when you're alone, but with passengers the goal is to make the ride as smooth as possible. | ||
|
||
### JavaScript Styleguide | ||
|
||
All JavaScript code is linted with [eslint](https://eslint.org/). | ||
|
||
### Python Styleguide | ||
|
||
All python code is linted with [flake8](https://flake8.pycqa.org/en/latest/) | ||
|
Oops, something went wrong.