# CI/CD และคุณภาพโค้ด (Data Engineering) > Ruff, Pylint, Poetry, GitHub Actions, ไปป์ไลน์ CI/CD, การทดสอบอัตโนมัติ, pre-commit hooks, code coverage - 20 คำถามสัมภาษณ์ - Mid-Level - [คำถามสัมภาษณ์: Data Engineering](https://sharpskill.dev/th/technologies/data-engineering/interview-questions.md) ## 1. Ruff ในระบบนิเวศ Python คืออะไร? **คำตอบ** Ruff เป็น linter และ formatter ของ Python ที่เร็วมาก เขียนด้วย Rust มันสามารถแทนที่เครื่องมือเช่น Flake8, isort และ Black โดยให้ประสิทธิภาพสูงกว่า 10 ถึง 100 เท่า Ruff รองรับกฎ linting มากกว่า 700 ข้อ และสามารถรวมเข้ากับไปป์ไลน์ CI/CD และ pre-commit hooks ได้อย่างง่ายดาย ## 2. บทบาทหลักของไฟล์ pyproject.toml กับ Poetry คืออะไร? **คำตอบ** ไฟล์ pyproject.toml เป็นไฟล์การกำหนดค่าหลักของโปรเจกต์ Python ที่ใช้ Poetry มันกำหนด metadata ของโปรเจกต์ (ชื่อ, เวอร์ชัน, คำอธิบาย), dependencies สำหรับ production และ development, scripts และการกำหนดค่าเครื่องมือเช่น Ruff หรือ pytest ไฟล์มาตรฐานนี้แทนที่ setup.py, requirements.txt และ setup.cfg ## 3. คำสั่ง Poetry ใดที่ติดตั้ง dependencies ทั้งหมดของโปรเจกต์ที่มีอยู่? **คำตอบ** คำสั่ง poetry install อ่านไฟล์ pyproject.toml และ poetry.lock เพื่อติดตั้ง dependencies ทั้งหมดของโปรเจกต์ในสภาพแวดล้อมเสมือนที่แยกออกมา หาก poetry.lock มีอยู่ จะใช้เวอร์ชันที่แน่นอนเพื่อรับประกันความสามารถในการสร้างซ้ำ มิฉะนั้น Poetry จะแก้ไข dependencies และสร้างไฟล์ lock ## มีอีก 17 คำถาม - Pre-commit hook ในบริบทของ Git คืออะไร? - โครงสร้างพื้นฐานของ workflow GitHub Actions คืออะไร? สมัครฟรี: https://sharpskill.dev/th/login ## หัวข้อสัมภาษณ์ Data Engineering อื่นๆ - [Linux & Shell - พื้นฐาน](https://sharpskill.dev/th/technologies/data-engineering/interview-questions/linux-shell-basics.md): 20 คำถาม, Junior - [Git & GitHub - พื้นฐาน](https://sharpskill.dev/th/technologies/data-engineering/interview-questions/git-github-fundamentals.md): 20 คำถาม, Junior - [Python ขั้นสูงสำหรับ Data Engineering](https://sharpskill.dev/th/technologies/data-engineering/interview-questions/python-advanced-de.md): 25 คำถาม, Junior - [Docker - พื้นฐาน](https://sharpskill.dev/th/technologies/data-engineering/interview-questions/docker-fundamentals.md): 25 คำถาม, Junior - [Google Cloud Platform - พื้นฐาน](https://sharpskill.dev/th/technologies/data-engineering/interview-questions/gcp-fundamentals.md): 20 คำถาม, Junior - [Docker Compose](https://sharpskill.dev/th/technologies/data-engineering/interview-questions/docker-compose.md): 20 คำถาม, Mid-Level - [FastAPI - Data API](https://sharpskill.dev/th/technologies/data-engineering/interview-questions/fastapi.md): 20 คำถาม, Mid-Level - [SQL ขั้นสูงสำหรับ Data Engineering](https://sharpskill.dev/th/technologies/data-engineering/interview-questions/sql-advanced-de.md): 20 คำถาม, Mid-Level - [Data Lake - สถาปัตยกรรมและการนำเข้าข้อมูล](https://sharpskill.dev/th/technologies/data-engineering/interview-questions/data-lake.md): 20 คำถาม, Mid-Level - [BigQuery สำหรับ Data Engineering](https://sharpskill.dev/th/technologies/data-engineering/interview-questions/bigquery-de.md): 20 คำถาม, Mid-Level - [PostgreSQL - การดูแลระบบ](https://sharpskill.dev/th/technologies/data-engineering/interview-questions/postgresql-admin.md): 20 คำถาม, Mid-Level - [Data Modeling สำหรับ Data Engineering](https://sharpskill.dev/th/technologies/data-engineering/interview-questions/data-modeling-de.md): 20 คำถาม, Mid-Level - [Fivetran & Airbyte - การนำเข้าข้อมูล](https://sharpskill.dev/th/technologies/data-engineering/interview-questions/fivetran-airbyte.md): 20 คำถาม, Mid-Level - [dbt - พื้นฐาน](https://sharpskill.dev/th/technologies/data-engineering/interview-questions/dbt-fundamentals-de.md): 20 คำถาม, Mid-Level - [Apache Airflow - พื้นฐาน](https://sharpskill.dev/th/technologies/data-engineering/interview-questions/airflow-fundamentals.md): 20 คำถาม, Mid-Level - [Kubernetes - พื้นฐาน](https://sharpskill.dev/th/technologies/data-engineering/interview-questions/kubernetes-fundamentals.md): 20 คำถาม, Mid-Level - [dbt - ฟีเจอร์ขั้นสูง](https://sharpskill.dev/th/technologies/data-engineering/interview-questions/dbt-advanced-de.md): 20 คำถาม, Senior - [รูปแบบ ETL / ELT / ETLT](https://sharpskill.dev/th/technologies/data-engineering/interview-questions/etl-elt-patterns.md): 20 คำถาม, Senior - [Apache Airflow - ขั้นสูง](https://sharpskill.dev/th/technologies/data-engineering/interview-questions/airflow-advanced.md): 20 คำถาม, Senior - [Airflow + dbt - การจัดการ Pipeline](https://sharpskill.dev/th/technologies/data-engineering/interview-questions/airflow-dbt-integration.md): 20 คำถาม, Senior - [PySpark - การประมวลผลขนาดใหญ่](https://sharpskill.dev/th/technologies/data-engineering/interview-questions/pyspark.md): 20 คำถาม, Senior - [Google Pub/Sub - การสตรีมข้อมูล](https://sharpskill.dev/th/technologies/data-engineering/interview-questions/pubsub-streaming.md): 20 คำถาม, Senior - [Apache Beam & Dataflow](https://sharpskill.dev/th/technologies/data-engineering/interview-questions/apache-beam-dataflow.md): 20 คำถาม, Senior - [Kubernetes - Production และ Scaling](https://sharpskill.dev/th/technologies/data-engineering/interview-questions/kubernetes-advanced.md): 20 คำถาม, Senior - [Terraform - Infrastructure as Code](https://sharpskill.dev/th/technologies/data-engineering/interview-questions/terraform.md): 20 คำถาม, Senior - [ฐานข้อมูล NoSQL](https://sharpskill.dev/th/technologies/data-engineering/interview-questions/nosql-databases.md): 20 คำถาม, Senior - [Data Architecture สมัยใหม่](https://sharpskill.dev/th/technologies/data-engineering/interview-questions/data-architecture.md): 20 คำถาม, Senior - [การมอนิเตอร์และการสังเกตการณ์](https://sharpskill.dev/th/technologies/data-engineering/interview-questions/monitoring-observability.md): 20 คำถาม, Senior - [IAM และความปลอดภัยของข้อมูล](https://sharpskill.dev/th/technologies/data-engineering/interview-questions/iam-security-de.md): 20 คำถาม, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/th/technologies/data-engineering/interview-questions/ci-cd-code-quality