Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added prime_checker.py for checking prime numbers #1879

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
24 changes: 7 additions & 17 deletions .hound.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
fail_on_violations: true

rubocop:
config_file: .rubocop.yml
version: 0.75.0

scss:
enabled: false

stylelint:
config_file: .stylelintrc.json
enabled: true

eslint:
enabled: true
version: 5.7.0
config_file: .eslintrc
linters:
rubocop:
enabled: true
config_file: .rubocop.yml
eslint:
enabled: true
config_file: .eslintrc.json
Empty file added 1.2.2'
Empty file.
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Use an official Node.js runtime as the base image
FROM node:20

# Set the working directory inside the container
WORKDIR /app

# Copy package.json and yarn.lock to the working directory
COPY package.json yarn.lock ./

# Install Yarn globally (specific version)
RUN npm install -g [email protected] --force

# Install dependencies using Yarn and clean up
RUN yarn install --frozen-lockfile && \
yarn cache clean

# Copy the rest of the application code to the working directory
COPY . .

# Expose the port on which your application listens (if applicable)
# EXPOSE 3000

# Command to start your application
# CMD ["node", "app.js"]
29 changes: 29 additions & 0 deletions Dockerfile.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Use a base image with Ruby version 3.0 or higher (adjust the version as needed)
FROM ruby:3.0

# Set the working directory inside the container
WORKDIR /app

# Copy the Gemfile and Gemfile.lock into the container
COPY Gemfile Gemfile.lock ./

# Install Bundler 2.4.22 explicitly
RUN gem install bundler -v 2.4.22

# Install Ruby dependencies using Bundler
RUN bundle install

# Copy the rest of your application files
COPY . .

# Install npm dependencies and build (if needed)
# Replace these commands with your specific npm commands if applicable
# Example commands for npm-based frontend project:
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get install -y nodejs
RUN npm install --global yarn
RUN yarn install
RUN yarn build

# Specify the command to run your application (if applicable)
CMD ["bundle", "exec", "rails", "server"]
7 changes: 6 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source "https://rubygems.org"

ruby "2.7.1"
ruby "3.1.4"

gem "active_link_to"
gem "active_model_serializers", "0.10.10"
Expand Down Expand Up @@ -57,3 +57,8 @@ group :test do
gem "shoulda-matchers"
gem "webmock"
end
gem 'tzinfo-data'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Trailing whitespace detected.

gem 'did_you_mean'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gems should be sorted in an alphabetical order within their section of the Gemfile. Gem did_you_mean should appear before tzinfo-data.
Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

gem 'hound'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.


Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 trailing blank lines detected.