GitHub Copilot을 활용한 소프트웨어 개발
Thalia Barrera
AI Engineering Curriculum Manager, DataCamp




$$
정의:

$$
정의:

.github/copilot-instructions.md에 포함하십시오
## Project context Python project for processing data pipelines with Airflow.## Coding style - Use type hints for all functions- Follow PEP8- Use snake_case naming- Write Google-style docstrings## Testing - Use pytest- Include one test per function## More instructions...
$$
✅ 효과적인 지침:
$$
❌ 비효과적인 지침:
$$
$$
## Style guidelines
- Conform to the coding styles defined
in styleguide.md in repo my-org/my-repo
- Answer in the style of a friendly
colleague, using informal language
- Answer in fewer than 1,000 characters

$$
$$
## Style guidelines
- Conform to the coding styles defined
in styleguide.md in repo my-org/my-repo
- Answer in the style of a friendly
colleague, using informal language
- Answer in fewer than 1,000 characters

copilot-instructions.md 파일을 저장합니다
copilot-instructions.md 파일을 저장합니다



$$


$$

$$
회사 공통 규칙 예:
$$

$$
$$
| Scope | Priority |
|---|---|
| Personal instructions | Highest |
| Project instructions | Medium |
| Organization instructions | Lowest |
$$
예시 프롬프트: "숫자 리스트의 평균을 계산하는 함수를 작성하시오."
def calculate_average(numbers: List[float]) -> float:
"""Calculate the average of a list of numbers.
Args:
numbers (List[float]): A list of numbers to average.
Returns:
float: The average value of the numbers.
Raises:
ValueError: If the list is empty.
"""
if not numbers:
raise ValueError("The list of numbers cannot be empty.")
return sum(numbers) / len(numbers)
$$
예시 프롬프트: "숫자 리스트의 평균을 계산하는 함수를 작성하시오."
def calculate_average(numbers: List[float]) -> float:
"""Calculate the average of a list of numbers.
Args:
numbers (List[float]): A list of numbers to average.
Returns:
float: The average value of the numbers.
Raises:
ValueError: If the list is empty.
"""
if not numbers:
raise ValueError("The numbers list cannot be empty.")
return sum(numbers) / len(numbers)
$$

GitHub Copilot을 활용한 소프트웨어 개발