Skip to content

Commit 2239fd0

Browse files
author
Gerard Casas Saez
committed
remove innecessary files and add .editorconfig + .github
1 parent 1e7ecb2 commit 2239fd0

12 files changed

Lines changed: 221 additions & 111 deletions

.editorconfig

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
indent_size = 4
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
end_of_line = lf
11+
charset = utf-8
12+
13+
# Docstrings and comments use max_line_length = 79
14+
[*.py]
15+
max_line_length = 119
16+
17+
# Use 2 spaces for the HTML files
18+
[*.html]
19+
indent_size = 2
20+
21+
# The JSON files contain newlines inconsistently
22+
[*.json]
23+
indent_size = 2
24+
insert_final_newline = ignore
25+
26+
# Minified JavaScript files shouldn't be changed
27+
[**.min.js]
28+
indent_style = ignore
29+
insert_final_newline = ignore
30+
31+
# Makefiles always use tabs for indentation
32+
[Makefile]
33+
indent_style = tab
34+
35+
# Batch files use tabs for indentation
36+
[*.bat]
37+
indent_style = tab

.github/CODE_OF_CONDUCT.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28+
29+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
## Scope
32+
33+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34+
35+
## Enforcement
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting report@gerard.space. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38+
39+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44+
45+
[homepage]: http://contributor-covenant.org
46+
[version]: http://contributor-covenant.org/version/1/4/

.github/CONTRIBUTING.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Contributing Guidelines
2+
3+
Want to contribute to this repo? Great! We :heart: contributions. Just make sure to follow these guidelines.
4+
Read both the [general guidelines](#general-guidelines) and the [coding style guidelines](#coding-style-guidelines).
5+
By making a contribution, in any form (including, but not limited to, Issues and Pull Requests), you agree to abide by the [Code of Conduct](CODE_OF_CONDUCT.md).
6+
7+
## How to contribute
8+
9+
This platform is being used by several hackathons at the same time. To avoid conflicts between personalizations avoid editing constomizable fields like the stylesheet, hackathon_variables, form ordering or similar. Any Pull Request that could affect other hackathons will be deeply reviewed and could be rejected to avoid conflicts.
10+
11+
## General Guidelines
12+
13+
### New Feature or a Bug Fix?
14+
1. Fork the repo (you can ignore this step if you are a part of the maintainer team)
15+
2. Create a new branch with a descriptive name of the feature or the bug you are fixing.
16+
3. If you are a part of the maintainer team, push the branch to the remote so that others know that you are working on this branch. Otherwise, create a new issue mentioning that you would like to add a new feature or fix a bug you noticed. This lets us know that someone is already helping us fix the issue!
17+
4. Make changes and commit them. Your commit messages should be descriptive and imperative. Read [this](http://who-t.blogspot.com/2009/12/on-commit-messages.html) for guidelines.
18+
5. Create a pull request with a descriptive title. Clearly document any changes you made. You should be able to explain why you made those changes.
19+
6. Check Travis CI to see if there's any formatting errors and fix them
20+
21+
### Working on the Next Release?
22+
1. Work on the `dev` or `develop` branch
23+
2. Create a pull request with a descriptive title. Clearly document any changes you made. You should be able to explain why you made those changes.
24+
25+
## Coding Style Guidelines
26+
27+
This project applies the same coding style than [Django Project](https://docs.djangoproject.com/en/1.11/internals/contributing/writing-code/coding-style/) which follows almost all [PEP-8](https://www.python.org/dev/peps/pep-0008/) coding guidelines.
28+
29+
We allow up to 119 characters/line as this is the width of GitHub code review; anything longer requires horizontal scrolling which makes review more difficult. This check is included when you run flake8. Documentation, comments, and docstrings should be wrapped at 79 characters, even though PEP 8 suggests 72.
30+
31+
All of this is enforced with Travis CI. All PRs will need to success on Travis before being merged.
32+
33+
## Commit Message Guidelines
34+
35+
Commit Guidelines inspired by [Gnome Commit Guidelines](https://wiki.gnome.org/Git/CommitMessages).
36+
37+
Those are only general-purpose recommended guidelines, depending on the context of each PR the following rules can vary.
38+
39+
Remember: the commit message is mainly for the other people, so they should be able to understand the changes made at any point in time.
40+
41+
### Example
42+
43+
```
44+
short explanation of the commit
45+
46+
Longer (optional) explanation explaining exactly what's changed and why instead of how,
47+
whether any external or private interfaces changed, what bugs were fixed (with bug
48+
tracker reference if applicable) and so forth. Be concise but not too brief. Avoid writing long lines, use newlines when necessary.
49+
50+
[Reference to the issue solved, if any]
51+
```
52+
53+
### Details
54+
55+
- First line (the brief description) must only be one sentence in imperative mood. The message should be concise, less than 50 characters if possible. Do not end it with a period.
56+
- The long explanation is optional, although it is encouraged to be written if it helps clarify the issue tackled. Explain the "why", not the "how" there and try to wrap every line at 72 characters. Also, keep a blank like between the first line and the long explanation.
57+
- Remember to commit your code with a [username](https://help.github.com/articles/setting-your-username-in-git/) and [email](https://help.github.com/articles/setting-your-email-in-git/).
58+
- If there is an issue created for this commit, link it at the end of the commit message, in a new line. The issue should follow the [GitHub guidelines](https://help.github.com/articles/closing-issues-via-commit-messages/#closing-an-issue-in-the-same-repository).

.github/ISSUE_TEMPLATE.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!-- This form is for bug reports and feature requests-->
2+
3+
## Is this a BUG REPORT or FEATURE REQUEST?
4+
5+
6+
7+
## What happened
8+
(Include screenshots when possible)
9+
10+
## What you expected to happen
11+
12+
## How to reproduce it (as minimally and precisely as possible)
13+
14+
15+
## Anything else we need to know?
16+
17+
## Environment
18+
- Browser version (Ex: Google Chrome 62.0.3202.94 (64-bit)...):
19+
- Domain:
20+
- Others:
21+
22+
(Optional)
23+
- Python version (`python --version`)
24+
- OS (e.g. from /etc/os-release):
25+
- Kernel (e.g. `uname -a`):

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!-- Thanks for sending a pull request! Here are some tips for you:
2+
1. If this is your first time, read our contributor guidelines https://github.com/HackAssistant/registration/blob/master/.github/CONTRIBUTING.md
3+
-->
4+
5+
## What this PR does / Why we need it
6+
A few sentences describing the overall goals of the pull request's commits.
7+
8+
## Which issue(s) this PR fixes (optional)
9+
<!--Fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged)-->
10+
Fixes #
11+
12+
## Special notes for your reviewer (optional)
13+
14+
15+
16+
## Some questions
17+
- [ ] I have read the contributing guidelines
18+
- [ ] I abide by this repository Code of Conduct
19+
- [ ] I understand that my PR won't be merged until Travis gives a "green light"
20+
21+
<!--You can leave this and check them once the PR has been created.-->
22+
23+
## Additional Notes (optional)
24+
Do you want to add anything else? We :heart: to hear your opinions!

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.idea
2+
*.pyc
3+
__pycache__
4+
django_ha_hardware.egg-info
5+
dist/
6+

dist/django-ha-hardware-0.1.tar.gz

-371 KB
Binary file not shown.

django_ha_hardware.egg-info/PKG-INFO

Lines changed: 0 additions & 50 deletions
This file was deleted.

django_ha_hardware.egg-info/SOURCES.txt

Lines changed: 0 additions & 36 deletions
This file was deleted.

django_ha_hardware.egg-info/dependency_links.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)