Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Follow Contribution Guidelines | Making and Reviewing Contributions
Git for Open Source Contributors

bookFollow Contribution Guidelines

When you contribute to an open source project, it is essential to ensure your work aligns with the project's standards. Most projects include a CONTRIBUTING.md file at the root of the repository, which outlines steps and expectations for contributors. This file explains how to submit issues, propose changes, and details any coding conventions to follow. You may also find a code of conduct file, often named CODE_OF_CONDUCT.md, which describes the expected behavior within the project's community. Reading these files carefully helps you understand not only the technical requirements but also the social norms and collaborative spirit of the project.

12345678910111213141516171819
# Before submitting your changes, check your code style and run tests. # Many Python projects use tools like 'flake8' for style and 'pytest' for tests. # Check code style (assuming flake8 is used in the project): # In your terminal, run: # flake8 your_changed_file.py # Run project tests (assuming pytest is used): # In your terminal, run: # pytest # If the project uses unittest: import unittest # Example test discovery and running all tests in the project loader = unittest.TestLoader() suite = loader.discover('.') runner = unittest.TextTestRunner() runner.run(suite)
copy

If you discover that your contribution does not meet the project's guidelines—perhaps your code style does not match, tests are failing, or your pull request is missing required details—the best approach is to review the feedback, revisit the CONTRIBUTING.md, and make the necessary changes. Update your branch with fixes, rerun tests, and check that all requirements are satisfied before resubmitting. This process not only increases the chance your contribution will be accepted but also demonstrates your respect for the project's standards and the time of its maintainers.

question mark

What should you do if your contribution does not meet the project's guidelines?

Select the correct answer

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 3. Kapitel 3

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

bookFollow Contribution Guidelines

Svep för att visa menyn

When you contribute to an open source project, it is essential to ensure your work aligns with the project's standards. Most projects include a CONTRIBUTING.md file at the root of the repository, which outlines steps and expectations for contributors. This file explains how to submit issues, propose changes, and details any coding conventions to follow. You may also find a code of conduct file, often named CODE_OF_CONDUCT.md, which describes the expected behavior within the project's community. Reading these files carefully helps you understand not only the technical requirements but also the social norms and collaborative spirit of the project.

12345678910111213141516171819
# Before submitting your changes, check your code style and run tests. # Many Python projects use tools like 'flake8' for style and 'pytest' for tests. # Check code style (assuming flake8 is used in the project): # In your terminal, run: # flake8 your_changed_file.py # Run project tests (assuming pytest is used): # In your terminal, run: # pytest # If the project uses unittest: import unittest # Example test discovery and running all tests in the project loader = unittest.TestLoader() suite = loader.discover('.') runner = unittest.TextTestRunner() runner.run(suite)
copy

If you discover that your contribution does not meet the project's guidelines—perhaps your code style does not match, tests are failing, or your pull request is missing required details—the best approach is to review the feedback, revisit the CONTRIBUTING.md, and make the necessary changes. Update your branch with fixes, rerun tests, and check that all requirements are satisfied before resubmitting. This process not only increases the chance your contribution will be accepted but also demonstrates your respect for the project's standards and the time of its maintainers.

question mark

What should you do if your contribution does not meet the project's guidelines?

Select the correct answer

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 3. Kapitel 3
some-alt